[Top][All Lists]

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

Re: (elisp)Numbers

From: Andreas Schwab
Subject: Re: (elisp)Numbers
Date: Wed, 22 Oct 2003 13:36:59 +0200
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3.50 (gnu/linux)

Richard Stallman <address@hidden> writes:

>     2.  In (elisp)Math Functions, it is said that asin, acos, log, log10
>       and sqrt all return NaN values for out-of-range arguments, but, on
>       my machine, only `sqrt' does.  The others throw an error, see the
>       IELM run below.
> I get the same results.  I figured out why.  I'm using an x86.  Facos
> calls acos, but in Fsqrt the call to sqrt gets open-coded using the
> fsqrt instruction.  fsqrt doesn't set errno as it is expected to.
> Perhaps that is a GCC bug.

GCC does not fully support C99 yet.

According to C99 a domain error results in an implementation-defined
value, and if math_errhandling & MATH_ERRNO is non-zero, errno is set


Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 N├╝rnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

reply via email to

[Prev in Thread] Current Thread [Next in Thread]