On Fri, 31 Jan 2014 11:02:07 EST Bradley Lucier lucier@math.purdue.edu wrote:
On 01/31/2014 10:29 AM, Marc Feeley wrote:
Unfortunately the C code in those library function is very low-level (it di
rectly accesses the bit pattern of the floats). So I dont consider them very portable.
They look at the bits because all processors now put the bits in the same place. If a function isn't written in assembler, I'd consider it portable.
I agree. I don't think you can even do the right thing (except perhaps laboriously) in every case without looking at the raw bits. ilogb for instance.