summaryrefslogtreecommitdiff
path: root/pp.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2000-04-24 22:56:32 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2000-04-24 22:56:32 +0000
commita3540c9216933280e8172ff9fdbf23c34fe36604 (patch)
tree2ceb3ec3c2163498c845e55f1e8050e379991a4a /pp.c
parentb6592ff05e68c575099e94faea60fc84984b6b46 (diff)
downloadperl-a3540c9216933280e8172ff9fdbf23c34fe36604.tar.gz
Add HAS_FREXPL, HAS_ISNAN, HAS_ISNANL, and HAS_MODFL.
Now pp_ncmp() returns undef is either operand is a NaN. p4raw-id: //depot/cfgperl@5943
Diffstat (limited to 'pp.c')
-rw-r--r--pp.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/pp.c b/pp.c
index 316c7936d7..e90b5386fc 100644
--- a/pp.c
+++ b/pp.c
@@ -1199,15 +1199,8 @@ PP(pp_ncmp)
{
dPOPTOPnnrl;
I32 value;
-#ifdef __osf__ /* XXX Configure probe for isnan and isnanl needed XXX */
-#if defined(USE_LONG_DOUBLE) && defined(HAS_LONG_DOUBLE)
-#define Perl_isnan isnanl
-#else
-#define Perl_isnan isnan
-#endif
-#endif
-#ifdef __osf__ /* XXX fix in 5.6.1 --jhi */
+#ifdef Perl_isnan
if (Perl_isnan(left) || Perl_isnan(right)) {
SETs(&PL_sv_undef);
RETURN;