2 * This file has no copyright assigned and is placed in the Public Domain.
3 * This file is part of the mingw-w64 runtime package.
4 * No warranty is given; refer to the file DISCLAIMER.PD within this package.
10 fdiml (long double x
, long double y
)
12 int cx
= fpclassify (x
), cy
= fpclassify (y
);
15 if (cx
== FP_NAN
|| cy
== FP_NAN
16 || (y
< 0 && cx
== FP_INFINITE
&& cy
== FP_INFINITE
))
17 return x
- y
; /* Take care invalid flag is raised. */
21 if (fpclassify (r
) == FP_INFINITE
)