X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;ds=sidebyside;f=functions%2Fmath%2Ffmin.c;h=22ea9622abddfc367fc73e139c986a0fb4029a7c;hb=e081ed1387e0c27dc689c8e32fdda06039544107;hp=212370d4f361c0ed441c5d44be179c7828bc7516;hpb=34893ecc2200dc7017c36a54cb6c5f4c2378b5ec;p=pdclib diff --git a/functions/math/fmin.c b/functions/math/fmin.c index 212370d..22ea962 100644 --- a/functions/math/fmin.c +++ b/functions/math/fmin.c @@ -5,15 +5,13 @@ // This code is Public Domain. Use, modify, and redistribute at will. // ---------------------------------------------------------------------------- -// ---------------------------------------------------------------------------- -// C++ +double fmin( double x, double y ) { /* TODO */ }; -float fmin( float x, float y ) { /* TODO */ }; -long double fmin( long double x, long double y ) { /* TODO */ }; +/* Therx code +{ + return ( x < y ) ? x : y; +} +*/ -// ---------------------------------------------------------------------------- -// Standard C - -double fmin( double x, double y ) { /* TODO */ }; float fminf( float x, float y ) { /* TODO */ }; long double fminl( long double x, long double y ) { /* TODO */ };