X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fmath%2Ffmax.c;h=6bc8e6ca4d0c8cffe18f4256f0e1c83174871165;hb=e081ed1387e0c27dc689c8e32fdda06039544107;hp=a775ae12b188f70c7c3127b00ea33edb3d069bc9;hpb=34893ecc2200dc7017c36a54cb6c5f4c2378b5ec;p=pdclib diff --git a/functions/math/fmax.c b/functions/math/fmax.c index a775ae1..6bc8e6c 100644 --- a/functions/math/fmax.c +++ b/functions/math/fmax.c @@ -5,15 +5,13 @@ // This code is Public Domain. Use, modify, and redistribute at will. // ---------------------------------------------------------------------------- -// ---------------------------------------------------------------------------- -// C++ +double fmax( double x, double y ) { /* TODO */ }; -float fmax( float x, float y ) { /* TODO */ }; -long double fmax( long double x, long double y ) { /* TODO */ }; +/* Therx code +{ + return ( x > y ) ? x : y; +} +*/ -// ---------------------------------------------------------------------------- -// Standard C - -double fmax( double x, double y ) { /* TODO */ }; float fmaxf( float x, float y ) { /* TODO */ }; long double fmaxl( long double x, long double y ) { /* TODO */ };