develooper Front page | perl.perl5.porters | Postings from January 2011

Re: Being more careful with FP on gcc:

Thread Previous | Thread Next
From:
Philip Potter
Date:
January 22, 2011 22:06
Subject:
Re: Being more careful with FP on gcc:
Message ID:
AANLkTinRHaKK274_YNwSxb23CqnwJuSW80=2pih2kTvV@mail.gmail.com
On 23 January 2011 11:30, Greg Lindahl <greg@blekko.com> wrote:
> On Sun, Jan 23, 2011 at 11:25:16AM +0530, Philip Potter wrote:
>
>> The bigger problem is availability on the target machine. If you are
>> compiling a binary package for distribution (say, as part of a linux
>> distro),
>
> That is a problem on i386, but fortunately not for x86-64.

Yes - and further, -mfparch=sse is the default option on x86-64, so
there's no need to worry at all on that platform.

Investigating i386 further, it seems only a few i386 processors have
double-precision SSE instructions; the gcc docs suggest most intel and
all AMD i386 processors only support single-precision SSE, which
doesn't solve the problem completely. This pretty much knocks the
-mfparch=sse option out for most i386 situations.

Phil

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