NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: NetBSD math asinf() Issue

Havard Eidnes <> writes:

>> I am using math library from NetBSD libraries.
>> I faced some issue while using the API asinf().
>> asinf() does not return proper values for some inputs
>> The following is the test code to reproduce the issue:
> Below I've modified your test program:
> ------------------------------ snip
> #include <math.h>
> #include <float.h>
> #include <stdio.h>
> #include <stdint.h>
> #ifndef NAN
> #define NAN (0.0f/0.0f)

I've met this problem when updating Octave package, this didn't work
even for i386. I worked around using nanf(3).

> What I don't understand is this:
> 1) Why our math library is set up to provide non-IEEE semantics
>    by default, so that a user has to insert the above kludge into
>    his program to get the IEEE semantics.

That's really interesting question.

I meet enough unclear things when running various numeric tests.


Home | Main Index | Thread Index | Old Index