projects
/
libm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use #if LDBL_MANT_DIG == ... instead of custom LD80 etc macros
[libm]
/
src
/
math
/
nexttoward.c
diff --git
a/src/math/nexttoward.c
b/src/math/nexttoward.c
index
6f4bae5
..
5e12c48
100644
(file)
--- a/
src/math/nexttoward.c
+++ b/
src/math/nexttoward.c
@@
-11,12
+11,12
@@
*/
#include "libm.h"
*/
#include "libm.h"
-#if LD
6
4
+#if LD
BL_MANT_DIG == 53 && LDBL_MAX_EXP == 102
4
double nexttoward(double x, long double y)
{
return nextafter(x, y);
}
double nexttoward(double x, long double y)
{
return nextafter(x, y);
}
-#elif
LD80 || LD128
+#elif
(LDBL_MANT_DIG == 64 || LDBL_MANT_DIG == 113) && LDBL_MAX_EXP == 16384
double nexttoward(double x, long double y)
{
union IEEEl2bits uy;
double nexttoward(double x, long double y)
{
union IEEEl2bits uy;