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

Re: QUAD_MAX: integer or floating point?

Thread Previous | Thread Next
From:
Ben Tilly
Date:
July 25, 2000 18:12
Subject:
Re: QUAD_MAX: integer or floating point?
Message ID:
LAW2-F171qhpp8eurQQ00000c00@hotmail.com
Jeff Okamoto writes:

>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?
[...]

According to what I see in perl.h, it must be an integer.  At
the very least it is used to define something that is one..

Cheers,
Ben

--------------------------------------------------------------------
/*
    The IV type is supposed to be long enough to hold any integral
    value or a pointer.
    --Andy Dougherty	August 1996
*/

typedef IVTYPE IV;
typedef UVTYPE UV;

#if defined(USE_64_BIT_INT) && defined(HAS_QUAD)
#  if QUADKIND == QUAD_IS_INT64_T && defined(INT64_MAX)
#    define IV_MAX INT64_MAX
#    define IV_MIN INT64_MIN
#    define UV_MAX UINT64_MAX
#    ifndef UINT64_MIN
#      define UINT64_MIN 0
#    endif
#    define UV_MIN UINT64_MIN
#  else
#    define IV_MAX PERL_QUAD_MAX
#    define IV_MIN PERL_QUAD_MIN
#    define UV_MAX PERL_UQUAD_MAX
#    define UV_MIN PERL_UQUAD_MIN
#  endif
#  define IV_IS_QUAD
#  define UV_IS_QUAD
#else

________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com


Thread Previous | Thread Next


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