From: Jarkko Hietaniemi Date: Thu, 31 Aug 2000 17:02:05 +0000 (+0000) Subject: Try to deduce NV_MAX. Really should be Configure fodder. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f4a14a62773a52915497a005f3032730fe6154fd;p=p5sagit%2Fp5-mst-13.2.git Try to deduce NV_MAX. Really should be Configure fodder. p4raw-id: //depot/perl@6951 --- diff --git a/perl.h b/perl.h index 6840650..ece27a2 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