]> pd.if.org Git - pdclib/blobdiff - functions/math/mod.c
Re-import from Subversion.
[pdclib] / functions / math / mod.c
index 9e002cf4dfc98891ca9f734ff8a92c32eec30824..468f2c483098fdb6f42547cdbca42f63863e2e08 100644 (file)
@@ -1,23 +1,24 @@
-// ----------------------------------------------------------------------------
-// $Id$
-// ----------------------------------------------------------------------------
-// Public Domain C Library - http://pdclib.sourceforge.net
-// This code is Public Domain. Use, modify, and redistribute at will.
-// ----------------------------------------------------------------------------
+/* ----------------------------------------------------------------------------
+ * $Id$
+ * ----------------------------------------------------------------------------
+ * Public Domain C Library - http://pdclib.sourceforge.net
+ * This code is Public Domain. Use, modify, and redistribute at will.
+ * --------------------------------------------------------------------------*/
 
-// ----------------------------------------------------------------------------
-// C++
-
-float fmod( float x, float y ) { /* TODO */ };
-long double fmod( long double x, long double y ) { /* TODO */ };
+double fmod( double x, double y ) { /* TODO */ };
 
-float modf( float x, float * integer ) { /* TODO */ };
-long double modf( long double x, long double * integer ) { /* TODO */ };
+/* Therx code
+{
+    return (int) ( ( ( ( x / y ) - ( (int) ( x / y ) ) ) * y ) + 0.5 );
+}
+*/
 
-// ----------------------------------------------------------------------------
-// Standard C
+/* PDPC code - unreviewed
+{
+    return (x / y);
+}
+*/
 
-double fmod( double x, double y ) { /* TODO */ };
 float fmodf( float x, float y ) { /* TODO */ };
 long double fmodl( long double x, long double y ) { /* TODO */ };