This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Optimise the fpclassify builtin to perform integer operations when possible



On 12/09/16 23:41, Joseph Myers wrote:
Are you making endianness assumptions - specifically, does the
reinterpretation as an integer require that WORDS_BIG_ENDIAN and
FLOAT_WORDS_BIG_ENDIAN are the same?  If so, I think that's OK (in that
the only target where they aren't the same seems to be pdp11 which doesn't
use IEEE formats), but probably the code should check explicitly.

No, if I understood the question correctly then  this should be ok,
since I always access the float as an integer of equivalent precision.
So a 64bit float will be addressed as a 64bit int.

Tamar



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]