incubator-stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Sebor <se...@roguewave.com>
Subject Re: [jira] Created: (STDCXX-862) [Sun C++ 5.9] 0.char test failed due to different binary representation of "long double ld1 = 0" and "long double ld2 = 0."
Date Tue, 15 Apr 2008 18:30:13 GMT
Farid Zaripov wrote:
> From: Martin Sebor [mailto:sebor@roguewave.com]
> To: dev@stdcxx.apache.org
> Subject: Re: [jira] Created: (STDCXX-862) [Sun C++ 5.9] 0.char test failed due to different
binary representation of "long double ld1 = 0" and "long double ld2 = 0."
> 
>> Farid Zaripov (JIRA) wrote:
>>> [Sun C++ 5.9] 0.char test failed due to different binary representation of "long
double ld1 = 0" and "long double ld2 = 0."
> 
>> This feels like compiler bug, wouldn't you say?
> 
>   I don't know. The both long doubles behaves as zero. The only comparing them with memcmp()
gives the wrong result.

I thought there was just one bit pattern for a positive floating
point 0 in IEE 754, namely all bits clear.

Martin

Mime
View raw message