From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: (elisp)Numbers Date: Wed, 22 Oct 2003 13:36:59 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <200310210229.h9L2TGl12085@raven.dms.auburn.edu> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1066822945 31531 80.91.224.253 (22 Oct 2003 11:42:25 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 22 Oct 2003 11:42:25 +0000 (UTC) Cc: Luc Teirlinck , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Wed Oct 22 13:42:23 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1ACHNf-00008E-00 for ; Wed, 22 Oct 2003 13:42:23 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1ACHNf-0004sK-00 for ; Wed, 22 Oct 2003 13:42:23 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1ACHN8-0001Vf-Ke for emacs-devel@quimby.gnus.org; Wed, 22 Oct 2003 07:41:50 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1ACHJk-00085i-Sb for emacs-devel@gnu.org; Wed, 22 Oct 2003 07:38:20 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1ACHIU-0007hk-Uu for emacs-devel@gnu.org; Wed, 22 Oct 2003 07:37:34 -0400 Original-Received: from [195.135.220.2] (helo=Cantor.suse.de) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.24) id 1ACHIT-0007fl-VK; Wed, 22 Oct 2003 07:37:02 -0400 Original-Received: from Hermes.suse.de (Hermes.suse.de [195.135.221.8]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (No client certificate requested) by Cantor.suse.de (Postfix) with ESMTP id 13BBC173447F; Wed, 22 Oct 2003 13:37:00 +0200 (CEST) Original-Received: by sykes.suse.de (Postfix, from userid 597) id 3247611182EA8; Wed, 22 Oct 2003 13:36:59 +0200 (CEST) Original-To: rms@gnu.org X-Yow: Hello. I know the divorce rate among unmarried Catholic Alaskan females!! In-Reply-To: (Richard Stallman's message of "Wed, 22 Oct 2003 05:25:37 -0400") User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:17332 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:17332 Richard Stallman 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 appropriately. Andreas. -- Andreas Schwab, SuSE Labs, schwab@suse.de 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."