1 /* Copyright (C) 2002 by Red Hat, Incorporated. All rights reserved.
3 * Permission to use, copy, modify, and distribute this software
4 * is freely granted, provided that this notice is preserved.
8 <<fmin>>, <<fminf>>---minimum
16 double fmin(double <[x]>, double <[y]>);
17 float fminf(float <[x]>, float <[y]>);
20 The <<fmin>> functions determine the minimum numeric value of their arguments.
21 NaN arguments are treated as missing data: if one argument is a NaN and the
22 other numeric, then the <<fmin>> functions choose the numeric value.
25 The <<fmin>> functions return the minimum numeric value of their arguments.
34 #ifndef _DOUBLE_IS_32BITS
37 double fmin(double x
, double y
)
44 if (__fpclassifyd(x
) == FP_NAN
)
46 if (__fpclassifyd(y
) == FP_NAN
)
52 #endif /* _DOUBLE_IS_32BITS */