]> pd.if.org Git - pdclib/blobdiff - functions/math/mod.c
Merged PDPCLIB and Therx code.
[pdclib] / functions / math / mod.c
index 9e002cf4dfc98891ca9f734ff8a92c32eec30824..70f1ebc3fbcf5926e4bb94495767777bc2895ec9 100644 (file)
@@ -18,6 +18,19 @@ long double modf( long double x, long double * integer ) { /* TODO */ };
 // Standard C
 
 double fmod( double x, double y ) { /* TODO */ };
+
+/* Therx code
+{
+    return (int) ( ( ( ( x / y ) - ( (int) ( x / y ) ) ) * y ) + 0.5 );
+}
+*/
+
+/* PDPC code - unreviewed
+{
+    return (x / y);
+}
+*/
+
 float fmodf( float x, float y ) { /* TODO */ };
 long double fmodl( long double x, long double y ) { /* TODO */ };