diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2000-08-31 17:02:05 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2000-08-31 17:02:05 +0000 |
commit | f4a14a62773a52915497a005f3032730fe6154fd (patch) | |
tree | 0e42e5e82be1a9f25eaeff1baba611c418daf34d /perl.h | |
parent | 47044d48be9324ac7283750747a136f710313c9f (diff) | |
download | perl-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.h | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -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 |