Re: new module 'floorl'

2007-10-05 Thread Bruno Haible
Paolo Bonzini wrote: > > - In math.h, do a "#define floorl rpl_floorl", in order to avoid > > possible undesired compiler optimizations. > > No problem, but I wonder what's the rationale for the last item. It's that I've seen gcc transform some trunc() calls into truncf() calls or similar.

Re: new module 'floorl'

2007-10-04 Thread Paolo Bonzini
Bruno Haible wrote: Here's the module for the floorl() function. Very much like the truncl() function. Paolo, this replaces the floorl part of the 'mathl' module. I think the following changes are all improvements: - Don't assume that LDBL_EPSILON is a power of two. If LDBL_EPSILON is not

new module 'floorl'

2007-10-04 Thread Bruno Haible
Here's the module for the floorl() function. Very much like the truncl() function. Paolo, this replaces the floorl part of the 'mathl' module. I think the following changes are all improvements: - Don't assume that LDBL_EPSILON is a power of two. If LDBL_EPSILON is not a power of two, I thin