This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0c61ae0
)
vax-netbsd: another negative zero assumption
author
Jarkko Hietaniemi
<jhi@iki.fi>
Fri, 21 Oct 2016 12:29:27 +0000
(08:29 -0400)
committer
Jarkko Hietaniemi
<jhi@iki.fi>
Sat, 22 Oct 2016 00:13:39 +0000
(20:13 -0400)
Though this had been masked by NV_INF guard.
ext/POSIX/POSIX.xs
patch
|
blob
|
blame
|
history
diff --git
a/ext/POSIX/POSIX.xs
b/ext/POSIX/POSIX.xs
index
f8288e3
..
e7fbecc
100644
(file)
--- a/
ext/POSIX/POSIX.xs
+++ b/
ext/POSIX/POSIX.xs
@@
-837,7
+837,11
@@
static NV my_tgamma(NV x)
#endif
#ifdef NV_INF
if (x == 0.0 || x == NV_INF)
#endif
#ifdef NV_INF
if (x == 0.0 || x == NV_INF)
+#ifdef DOUBLE_IS_IEEE_FORMAT
return x == -0.0 ? -NV_INF : NV_INF;
return x == -0.0 ? -NV_INF : NV_INF;
+#else
+ return NV_INF;
+#endif
#endif
/* The function domain is split into three intervals:
#endif
/* The function domain is split into three intervals: