@spun_off @whitequark That's an old ver not safe with FLT_EVAL_METHOD==2. Current ver is http://git.musl-libc.org/cgit/musl/tree/src/math/round.c …
-
-
@spun_off
@whitequark Actually I think the old ver worked with a conforming compiler but was fragile. -
@RichFelker @spun_off@whitequark Raises inexact, doesn't conform to n1778. You really want to just add 1/2 as int and mask fraction. -
@RichFelker @spun_off@whitequark Plus you get rid of most of the branches that way, which is nice. -
@RichFelker @spun_off@whitequark And you avoid FLT_EVAL_METHOD / bad compiler shenanigans entirely.
End of conversation
New conversation -
-
-
@RichFelker Most elegant use of double_t.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
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.