From owner-freebsd-alpha Tue Jul 13 10:12:11 1999 Delivered-To: freebsd-alpha@freebsd.org Received: from wall.polstra.com (rtrwan160.accessone.com [206.213.115.74]) by hub.freebsd.org (Postfix) with ESMTP id 3A96215066 for ; Tue, 13 Jul 1999 10:12:08 -0700 (PDT) (envelope-from jdp@polstra.com) Received: from vashon.polstra.com (vashon.polstra.com [206.213.73.13]) by wall.polstra.com (8.9.3/8.9.1) with ESMTP id KAA20481; Tue, 13 Jul 1999 10:11:28 -0700 (PDT) (envelope-from jdp@polstra.com) From: John Polstra Received: (from jdp@localhost) by vashon.polstra.com (8.9.3/8.9.1) id KAA36944; Tue, 13 Jul 1999 10:11:27 -0700 (PDT) (envelope-from jdp@polstra.com) Date: Tue, 13 Jul 1999 10:11:27 -0700 (PDT) Message-Id: <199907131711.KAA36944@vashon.polstra.com> To: simokawa@sat.t.u-tokyo.ac.jp Subject: Re: alpha/12623: strtod(3) FPE on alphaev56 In-Reply-To: <14219.25613.478914.44162J@ett.sat.t.u-tokyo.ac.jp> References: <199907131127.MAA09770@b0.farm.inpharmatica.co.uk> Organization: Polstra & Co., Seattle, WA Cc: alpha@freebsd.org Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In article <14219.25613.478914.44162J@ett.sat.t.u-tokyo.ac.jp>, Hidetoshi Shimokawa wrote: > > /usr/src/lib/libc/stdlib/strtod.c seems broken on alpha in three ways. > > 1) IEEE_8087 should be defined instead of IEEE_MC68k. > > 2) It assumes long is 32bit, but long is 64bit on alpha. > s/unsigned long/u_int32_t/, s/long/int32_t/. > > 3) It generates denormal numbers which can not be treaded by the hardware > on alpha. It should be compiled with the option > `-mtrap-precision=i -mfp-trap-mode=su' to enable software completion. Yes, or the equivalent "-mieee". In my opinion, all of the libraries (if not the whole world) should be compiled that way. In fact, this option should be the default. Users who wanted a little extra speed and who knew what they are doing could turn it off. John -- John Polstra jdp@polstra.com John D. Polstra & Co., Inc. Seattle, Washington USA "No matter how cynical I get, I just can't keep up." -- Nora Ephron To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message