[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pcc-list
Subject:    Re: Intel x87 versus sse2
From:       Anders Magnusson <ragge () ludd ! ltu ! se>
Date:       2011-02-15 21:13:21
Message-ID: 4D5AEC71.4080103 () ludd ! ltu ! se
[Download RAW message or body]

Hi,

On 02/14/2011 07:57 PM, Fred J. Tydeman wrote:
> For Intel targets, is there a way to control what kind
> of floating-point unit will be used?  The choices are
>    (the older) x87
>    (the newer) sse
> Does it matter if this is for a 32-bit versus 64-bit system?
The ABI documentation specifies which floating point unit
that should be used.  For the usual targets it is x87-only for
i386; and 32/64-bit sse + 80-bit x87 for x64-style targets.
So it's really not much to play around with.

> Is FLT_EVAL_METHOD in<float.h>  changed accordingly?
It is left to the system, which will work on the BSD's but
probably fail on Linux since it is left to the compiler to provide it.
This should be fixed.

-- ragge

> ---
> Fred J. Tydeman        Tydeman Consulting
> tydeman@tybor.com      Testing, numerics, programming
> +1 (775) 358-9748      Vice-chair of PL22.11 (ANSI "C")
> Sample C99+FPCE tests: http://www.tybor.com
> Savers sleep well, investors eat well, spenders work forever.
>
>

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic