|
Date: Fri, 4 Apr 2014 16:56:34 +0200 From: Szabolcs Nagy <nsz@...t70.net> To: musl@...ts.openwall.com Subject: Re: printf issues * Morten Welinder <mwelinder@...il.com> [2014-04-04 10:35:00 -0400]: > > Do you have any ideas for a clean way to avoid this > > assumption without having to compute the value at runtime? > > I don't know if ldexpl will get constant folded by the compiler, but if not, > I think (2.0L/LDBL_EPSILON) ought to work as a replacement. It's not > as likely to get prices at the obfuscated C contents, though. ldexpl is not ok (cannot get constant folded in free-standing mode unless we use __builtin_ldexpl on compilers that support that) the epsilon based solution looks good though
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.