X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=functions%2Fmath%2Ffmin.c;h=3ba9b295dddc6853a051c86724bb8ae7d25bcde2;hp=212370d4f361c0ed441c5d44be179c7828bc7516;hb=1d9d92ba957a0b8307c9a65c35867fde68e6533b;hpb=34893ecc2200dc7017c36a54cb6c5f4c2378b5ec diff --git a/functions/math/fmin.c b/functions/math/fmin.c index 212370d..3ba9b29 100644 --- a/functions/math/fmin.c +++ b/functions/math/fmin.c @@ -1,19 +1,17 @@ -// ---------------------------------------------------------------------------- -// $Id$ -// ---------------------------------------------------------------------------- -// Public Domain C Library - http://pdclib.sourceforge.net -// This code is Public Domain. Use, modify, and redistribute at will. -// ---------------------------------------------------------------------------- +/* ---------------------------------------------------------------------------- + * $Id$ + * ---------------------------------------------------------------------------- + * Public Domain C Library - http://pdclib.sourceforge.net + * This code is Public Domain. Use, modify, and redistribute at will. + * --------------------------------------------------------------------------*/ -// ---------------------------------------------------------------------------- -// C++ - -float fmin( float x, float y ) { /* TODO */ }; -long double fmin( long double x, long double y ) { /* TODO */ }; +double fmin( double x, double y ) { /* TODO */ }; -// ---------------------------------------------------------------------------- -// Standard C +/* Therx code +{ + return ( x < y ) ? x : y; +} +*/ -double fmin( double x, double y ) { /* TODO */ }; float fminf( float x, float y ) { /* TODO */ }; long double fminl( long double x, long double y ) { /* TODO */ };