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.
9 #ifndef _DOUBLE_IS_32BITS
12 double fdim(double x
, double y
)
19 int c
= __fpclassifyd(x
);
20 if (c
== FP_NAN
|| c
== FP_INFINITE
)
23 return x
> y
? x
- y
: 0.0;
26 #endif /* _DOUBLE_IS_32BITS */