This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Ask for help]: Met a problem with strtof


Hi Mark & Wang,

I believe that between glibc 2.16 and glibc 2.19 there was a focus on
improving the conformance of the FP routines w/rt rounding modes and
conforming error conditions to the various specifications.  Joseph
Myers was working on that.

Ryan

On Fri, Apr 25, 2014 at 9:18 AM, Mark Brown <ms_brown@sbcglobal.net> wrote:
> On 04/25/2014 02:34 AM, Wang Weidong wrote:
>> I found a Bug report on https://sourceware.org/bugzilla/show_bug.cgi?id=14518
>> which report "strtod ignores the rounding mode and always tries to round to nearest. "
>> Such as FE_UPWARD is "rounding towards positive infinity"
>> It means that the value should "<=" the rounding value.
>> So I think in glibc-2.11 here "-0x1.4EF009P-16 -> -0x1.4ef00ap-16" it is wrong while
>> in glibc-2.17+ is right. And similar to the others.
>
> Well, as I noted when I started this I'm not an FP expert; but the glibc
> 2.19 results I get match my expectations.
>
> --
> Mark Brown
> ms_brown@sbcglobal.net



-- 
Ryan S. Arnold
Linaro Toolchain Working Group
www.linaro.org


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]