summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2000-08-31 17:02:05 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2000-08-31 17:02:05 +0000
commitf4a14a62773a52915497a005f3032730fe6154fd (patch)
tree0e42e5e82be1a9f25eaeff1baba611c418daf34d /perl.h
parent47044d48be9324ac7283750747a136f710313c9f (diff)
downloadperl-f4a14a62773a52915497a005f3032730fe6154fd.tar.gz
Try to deduce NV_MAX. Really should be Configure fodder.
p4raw-id: //depot/perl@6951
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/perl.h b/perl.h
index 6840650ffd..ece27a2ebe 100644
--- a/perl.h
+++ b/perl.h
@@ -1164,6 +1164,18 @@ typedef NVTYPE NV;
# ifdef LDBL_MANT_DIG
# define NV_MANT_DIG LDBL_MANT_DIG
# endif
+# ifdef LDBL_MAX
+# define NV_MAX LDBL_MAX
+# define NV_MIN LDBL_MIN
+# else
+# ifdef HUGE_VALL
+# define NV_MAX HUGE_VALL
+# else
+# ifdef HUGE_VAL
+# define NV_MAX ((NV)HUGE_VAL)
+# endif
+# endif
+# endif
# ifdef HAS_SQRTL
# define Perl_cos cosl
# define Perl_sin sinl
@@ -1200,6 +1212,14 @@ typedef NVTYPE NV;
# ifdef DBL_MANT_DIG
# define NV_MANT_DIG DBL_MANT_DIG
# endif
+# ifdef DBL_MAX
+# define NV_MAX DBL_MAX
+# define NV_MIN DBL_MIN
+# else
+# ifdef HUGE_VAL
+# define NV_MAX HUGE_VAL
+# endif
+# endif
# define Perl_cos cos
# define Perl_sin sin
# define Perl_sqrt sqrt