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
/
cbrtl.c
diff --git
a/src/math/cbrtl.c
b/src/math/cbrtl.c
index
ecbd7be
..
d138b9f
100644
(file)
--- a/
src/math/cbrtl.c
+++ b/
src/math/cbrtl.c
@@
-17,12
+17,12
@@
#include "libm.h"
#include "libm.h"
-#if LD
6
4
+#if LD
BL_MANT_DIG == 53 && LDBL_MAX_EXP == 102
4
long double cbrtl(long double x)
{
return cbrt(x);
}
long double cbrtl(long double x)
{
return cbrt(x);
}
-#elif
LD80 || LD128
+#elif
(LDBL_MANT_DIG == 64 || LDBL_MANT_DIG == 113) && LDBL_MAX_EXP == 16384
#define BIAS (LDBL_MAX_EXP - 1)
static const unsigned
B1 = 709958130; /* B1 = (127-127.0/3-0.03306235651)*2**23 */
#define BIAS (LDBL_MAX_EXP - 1)
static const unsigned
B1 = 709958130; /* B1 = (127-127.0/3-0.03306235651)*2**23 */