fix compile with DODEBUG=y
[uclibc-ng.git] / libm / s_fmax.c
blob5f29ad8e353fd1672f15c02cae2bba8c10ee212f
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 fmax(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(fmax)