From owner-freebsd-hackers Sun Nov 5 14:48:06 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id OAA18358 for hackers-outgoing; Sun, 5 Nov 1995 14:48:06 -0800 Received: from ref.tfs.com (ref.tfs.com [140.145.254.251]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id OAA18351 for ; Sun, 5 Nov 1995 14:48:04 -0800 Received: (from julian@localhost) by ref.tfs.com (8.6.12/8.6.12) id OAA05467; Sun, 5 Nov 1995 14:47:21 -0800 From: Julian Elischer Message-Id: <199511052247.OAA05467@ref.tfs.com> Subject: Re: NPX still broken in 2.1.0-951104-SNAP... To: bde@zeta.org.au (Bruce Evans) Date: Sun, 5 Nov 1995 14:47:20 -0800 (PST) Cc: freebsd-hackers@freebsd.org, markd@grizzly.com In-Reply-To: <199511052144.IAA15439@godzilla.zeta.org.au> from "Bruce Evans" at Nov 6, 95 08:44:48 am X-Mailer: ELM [version 2.4 PL24] Content-Type: text Content-Length: 571 Sender: owner-hackers@freebsd.org Precedence: bulk but is it MORE broken than it is now to do this? surely such a simple change that might help some people is worth puting in now? > > This still fails for more-portable software that sets errno to 0 before > calling every math function and checks for errno being ERANGE or EDOM > after the call (this is the only error reporting mechanism guaranteed > in ANSI C). You can fix this by changing CFLAGS in libc/msun/Makefile > to the POSIX/ANSI setting recommended there (-D_POSIX_MODE), but then > acos(2.0) will return a stupid value (0 instead of NaN). > > Bruce >