X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=functions%2Fmath%2Ffdim.c;h=9a005796f828ee09a8b57d2abd3d818e7499f0c1;hb=435127acb8e016352a581827aa0465a2b32824e6;hp=99167630663c61ccf3908ee1416e3ec6123e940c;hpb=d954dee1f991f0bc017ac65c4203c36c838abb1f;p=fw%2Fpdclib diff --git a/functions/math/fdim.c b/functions/math/fdim.c index 9916763..9a00579 100644 --- a/functions/math/fdim.c +++ b/functions/math/fdim.c @@ -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 */ };