apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William A. Rowe, Jr." <wr...@rowe-clan.net>
Subject long double != 64 bit int!!!
Date Sun, 16 Nov 2003 23:41:02 GMT
Ok, I can't quote chapter and verse when I'm not in my laboratory,
but I'm betting dollars to donuts that from configure.in

elif test "$ac_cv_sizeof_long_double" = "8"; then
    int64_literal='#define APR_INT64_C(val) (val##LD)'
    uint64_literal='#define APR_UINT64_C(val) (val##ULD)'
    int64_t_fmt='#define APR_INT64_T_FMT "Ld"'
    uint64_t_fmt='#define APR_UINT64_T_FMT "Lu"'
    uint64_t_hex_fmt='#define APR_UINT64_T_HEX_FMT "Lx"'
    int64_value="long double"
    long_value="long double"

long double is *not* an integral type!  double is defined as a floating point
form, so long *of* double should be a larger double on any K&R or ANSI
C compiler.

This code looks altogether bogus.  Can someone please share with us
what compiler actually defines a long double as an integer data type?


View raw message