EMAIL PROTECTED]>
> To: "Wez Furlong" <[EMAIL PROTECTED]>
> Cc: "Marcus Boerger" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Friday, March 26, 2004 7:32 PM
> Subject: Re: [PHP-CVS] cvs: php-src /ext/standard basic_functions.c
> /ext/st
>; <[EMAIL PROTECTED]>
Sent: Friday, March 26, 2004 7:32 PM
Subject: Re: [PHP-CVS] cvs: php-src /ext/standard basic_functions.c
/ext/standard/tests/math bug27646.phpt
> Hello Wez,
>
> the general idea is from other source (one that MS copied from ..i forgot
> the details). On t
Hello Wez,
the general idea is from other source (one that MS copied from ..i forgot
the details). On the mentioned systems a double is 8 bytes (wow). And hence
i need to DWORDS to set it, one gein the high DWORD and one the low. Does
that sound meaningful enough - or do you have a better idea for
> +#define PHP_DOUBLE_INFINITY_HIGH 0x7ff0
> +#define PHP_DOUBLE_QUIET_NAN_HIGH 0xfff8
> +
> +static double php_get_inf()
> +{
> +#if defined(__i386__) || defined(_X86_) || defined(ALPHA) ||
defined(_ALPHA) || defined(__alpha)
> + double val;
> + ((php_uint32*)&val)[1] = PHP_DOU
helly Thu Mar 25 17:36:36 2004 EDT
Modified files:
/php-src/ext/standard basic_functions.c
/php-src/ext/standard/tests/mathbug27646.phpt
Log:
-Make NAN and INF more portable (atof() doesn't work on MSVC.6 for example)
-Change test to use constant