Files
uClibc/libm/s_fmin.c
Bernhard Reutner-Fischer 6c4538905e libm: Add missing C99 float/ld wrappers
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2015-03-18 22:32:22 +01:00

20 lines
393 B
C

/* Copyright (C) 2002 by Red Hat, Incorporated. All rights reserved.
*
* Permission to use, copy, modify, and distribute this software
* is freely granted, provided that this notice is preserved.
*/
#include "math.h"
#include "math_private.h"
double fmin(double x, double y)
{
if (isnan(x))
return y;
if (isnan(y))
return x;
return x < y ? x : y;
}
libm_hidden_def(fmin)