Get x86_64 compile to succeed.
[uclibc-ng.git] / libm / s_fdim.c
blob6249219c842161d64b39b870cd177b669751a125
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 fdim(double x, double y)
12 int c = __fpclassify(x);
13 if (c == FP_NAN || c == FP_INFINITE)
14 return HUGE_VAL;
16 return x > y ? x - y : 0.0;
18 libm_hidden_def(fdim)