From owner-freebsd-bugs Fri Feb 6 05:52:31 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id FAA12247 for freebsd-bugs-outgoing; Fri, 6 Feb 1998 05:52:31 -0800 (PST) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id FAA12237; Fri, 6 Feb 1998 05:52:16 -0800 (PST) (envelope-from cracauer@FreeBSD.org) From: Martin Cracauer Received: (from cracauer@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id FAA24990; Fri, 6 Feb 1998 05:51:27 -0800 (PST) Date: Fri, 6 Feb 1998 05:51:27 -0800 (PST) Message-Id: <199802061351.FAA24990@freefall.freebsd.org> To: Tim.Brown@ctg.com, cracauer@FreeBSD.ORG, freebsd-bugs@FreeBSD.ORG Subject: Re: misc/3700 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org X-To-Unsubscribe: mail to majordomo@FreeBSD.org "unsubscribe freebsd-bugs" Synopsis: FPE error in "normal" math code State-Changed-From-To: open-closed State-Changed-By: cracauer State-Changed-When: Fri Feb 6 14:43:16 MET 1998 State-Changed-Why: I'm not able to reproduce the problem (on 2.2.2). The test program below runs just fine. To further investigate the problem, we would need a complete runnable program, so that type declarations aren't ommited. #define _ANSI_SOURCE #include #include double testfunc1() { return -216 + 5 * -1315 * 40 / (40 * -1221111); } double testfunc2() { return -216.0 + 5.0 * -1315.0 * 40.0 / (40.0 * -1221111.0); } int main() { { double foo; double bar; double baz; foo = 40.0; bar = -.00112334; baz = foo * bar; printf("%g (%g * %g)\n",baz,foo,bar); } printf("%g\n",testfunc1()); printf("%g\n",testfunc2()); return 0; }