The limit 2^19 (524288) seems needlessly conservative here. Optim should work fine for all integers up to 2^22?https://godbolt.org/g/HXm2sE
-
Show this thread
-
Replying to @volatile_void
How are you assessing range for which the optimization seems valid?
1 reply 0 retweets 0 likes -
Replying to @RichFelker
If the constant factor is an integer that occupies only 22 bits of the significand, then the product is exact… 1/2
3 replies 0 retweets 0 likes -
-
Replying to @RichFelker
My guess is they thought the int is 32 bits and forgot about implicit leading 1 bit, yielding 19.
1 reply 0 retweets 0 likes
Hm, that'd still be 20 not 19 though.
8:49 AM - 8 Sep 2017
0 replies
0 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.