develooper Front page | perl.perl5.porters | Postings from July 2000

Re: QUAD_MAX: integer or floating point?

Thread Previous
From:
Jeff Okamoto
Date:
July 25, 2000 16:51
Subject:
Re: QUAD_MAX: integer or floating point?
Message ID:
200007252351.QAA14052@xfiles.intercon.hp.com
> > Can some of you on Unix systems grep your /usr/include directories and
> > see if you have QUAD_MAX defined, and if so, whether it's a floating
> > point number or not?
> 
> I can't find that define on Solaris 2.6, Solaris 7, IRIX 6.5, HP-UX 11.00,
> or AIX 4.3.3.  Looks like something peculiar to one implementation?

Yeah, I guess it must be.  Here's the relevant sequences in perl.h:

#  ifdef UQUAD_MAX
#    define PERL_UQUAD_MAX ((UV)UQUAD_MAX)
#  else
#    define PERL_UQUAD_MAX      (~(UV)0)
#  endif

#  ifdef QUAD_MAX
#    define PERL_QUAD_MAX ((IV)QUAD_MAX)
#  else
#    define PERL_QUAD_MAX       ((IV) (PERL_UQUAD_MAX >> 1))
#  endif

On IA64 HP-UX 11.00, UQUAD_MAX is undefined, but QUAD_MAX is (in float.h).
On PA-RISC 11.00, both are undefined.

Weird.

Jeff

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About