fix regression from a745c4bfc8a9b5db4e48387170da0dc1d39e3abe
[uclibc-ng.git] / libm / s_fmin.c
bloba549678ee92d65a99002a65ea1cb693c6168c82e
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.
5 */
7 #include "math.h"
8 #include "math_private.h"
10 double fmin(double x, double y)
12 if (isnan(x))
13 return y;
14 if (isnan(y))
15 return x;
17 return x < y ? x : y;
19 libm_hidden_def(fmin)