projects
/
libm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
TODO list update
[libm]
/
src
/
math
/
powl.c
diff --git
a/src/math/powl.c
b/src/math/powl.c
index
c829c18
..
690f294
100644
(file)
--- a/
src/math/powl.c
+++ b/
src/math/powl.c
@@
-69,7
+69,12
@@
#include "libm.h"
#include "libm.h"
-#if LDBL_MANT_DIG == 64 && LDBL_MAX_EXP == 16384
+#if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024
+long double powl(long double x, long double y)
+{
+ return pow(x, y);
+}
+#elif LDBL_MANT_DIG == 64 && LDBL_MAX_EXP == 16384
/* Table size */
#define NXT 32
/* Table size */
#define NXT 32
@@
-207,7
+212,7
@@
long double powl(long double x, long double y)
if (y == 1.0L)
return x;
if (y == 1.0L)
return x;
- // FIXME: this is wrong, see pow special cases in
posix2008
+ // FIXME: this is wrong, see pow special cases in
c99 F.9.4.4
if (!isfinite(y) && (x == -1.0L || x == 1.0L) )
return y - y; /* +-1**inf is NaN */
if (x == 1.0L)
if (!isfinite(y) && (x == -1.0L || x == 1.0L) )
return y - y; /* +-1**inf is NaN */
if (x == 1.0L)