[PATCH] Use long for mantissa for generic mp code
Richard Henderson
rth@twiddle.net
Wed Feb 27 03:28:00 GMT 2013
On 2013-02-26 18:07, Siddhesh Poyarekar wrote:
>>> +/* Truncate IN to a multiple of F, where F is a power of two. */
>>> >>+#define TRUNCATE_TO_MUL(in, f) ((in) & ~(f))
>> >
>> >Err, ~f? Either this doesn't work at all, or the comment is wrong.
> Ugh, it should be ~(f - 1).
>
Er... we are talking about in % f, when we can't necessarily
prove that F is a power of 2?
Then no ~ at all, just (f-1).
r~
More information about the Libc-alpha
mailing list