Re: detecting -ffast-math at compile time

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

 



Rohit Garg <rpg.314@xxxxxxxxx> writes:

> If I wish to detect if the compiler options include -ffast-math, which
> macro should I define? This is useful if I want to select which path
> of the code to compile depending on my needs with just a compiler
> switch. Eg. for SSE2, __SSE2__(or it's cousin) is defined.

Check for __FAST_MATH__.

The gcc manual documents this is in the description of -ffast-math.

Ian

[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