projects
/
libm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
long double math fixes for LD64
[libm]
/
src
/
math
/
fdiml.c
diff --git
a/src/math/fdiml.c
b/src/math/fdiml.c
index
5bb950c
..
cda3022
100644
(file)
--- a/
src/math/fdiml.c
+++ b/
src/math/fdiml.c
@@
-1,4
+1,11
@@
#include "libm.h"
#include "libm.h"
+
+#if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024
+long double fdiml(long double x, long double y)
+{
+ return fdim(x, y);
+}
+#else
long double fdiml(long double x, long double y)
{
if (isnan(x))
long double fdiml(long double x, long double y)
{
if (isnan(x))
@@
-7,3
+14,4
@@
long double fdiml(long double x, long double y)
return y;
return x > y ? x - y : 0;
}
return y;
return x > y ? x - y : 0;
}
+#endif