[cfe-dev] Intel: x87 vs sse
eli.friedman at gmail.com
Wed Jul 20 00:37:27 PDT 2011
On Tue, Jul 19, 2011 at 10:27 PM, Fred J. Tydeman <tydeman at tybor.com> wrote:
> For C programs, is there a way to tell the compiler what
> kind of floating-point unit (FPU) to generate code for?
> I am thinking of Intel CPUs with x87 versus sse.
> This is for Linux.
clang doesn't support an explicit flag; it will use SSE/SSE2 where
available, and x87 otherwise. Note that clang will always use x87 for
arithmetic on anything using the type "long double".
More information about the cfe-dev