]> pd.if.org Git - pdclib/blobdiff - functions/math/fdim.c
Merged PDPCLIB and Therx code.
[pdclib] / functions / math / fdim.c
index 99167630663c61ccf3908ee1416e3ec6123e940c..9a005796f828ee09a8b57d2abd3d818e7499f0c1 100644 (file)
@@ -15,5 +15,12 @@ long double fdim( long double x, long double y ) { /* TODO */ };
 // Standard C
 
 double fdim( double x, double y ) { /* TODO */ };
+
+/* Therx code
+{
+    return ( ( x - y ) < 1 ) ? 0 : x - y;
+}
+*/
+
 float fdimf( float x, float y ) { /* TODO */ };
 long double fdiml( long double x, long double y ) { /* TODO */ };