]> pd.if.org Git - pdclib/blob - functions/math/mod.c
Re-import from Subversion.
[pdclib] / functions / math / mod.c
1 /* ----------------------------------------------------------------------------
2  * $Id$
3  * ----------------------------------------------------------------------------
4  * Public Domain C Library - http://pdclib.sourceforge.net
5  * This code is Public Domain. Use, modify, and redistribute at will.
6  * --------------------------------------------------------------------------*/
7
8 double fmod( double x, double y ) { /* TODO */ };
9
10 /* Therx code
11 {
12     return (int) ( ( ( ( x / y ) - ( (int) ( x / y ) ) ) * y ) + 0.5 );
13 }
14 */
15
16 /* PDPC code - unreviewed
17 {
18     return (x / y);
19 }
20 */
21
22 float fmodf( float x, float y ) { /* TODO */ };
23 long double fmodl( long double x, long double y ) { /* TODO */ };
24
25 double modf( double x, double * integer ) { /* TODO */ };
26 float modff( float x, float * integer ) { /* TODO */ };
27 long double modfl( long double x, long double * integer ) { /* TODO */ };