Re: float compares on x86 (i.e. 32 bit) bug?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tuesday 13 April 2010 14:39:18 Andrew Haley wrote:
> On 04/13/2010 01:22 PM, Matthias Kretz wrote:
> > Obviously I expected ZF to be set. Here's the problem:
> > st6 1.41421353816986083984375            (raw 0x3fffb504f30000000000)
> > st7 1.4142135623730950487637880730318329 (raw 0x3fffb504f333f9de6484)
> 
> Isn't this http://gcc.gnu.org/bugzilla/show_bug.cgi?id=323 ?
> 
> We won't know until you give us a real test case, one that we can compile
> and run.

Yes, after reading up on it a bit, I think it is. It felt different because of 
one value coming from SSE but it's still the exact same issue.

I'll use -mfpmath=sse for my code.

Thanks for the pointer.

Regards,
	Matthias

-- 
Matthias Kretz

Phone:   +49 6221 1871682
         sip:062211871682@xxxxxxxxxx
Email:   kretz@xxxxxxxxxxxxxxxxxxxxx

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux