From owner-freebsd-stable@FreeBSD.ORG Fri Feb 3 17:58:49 2006 Return-Path: X-Original-To: freebsd-stable@FreeBSD.org Delivered-To: freebsd-stable@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6C2AC16A420; Fri, 3 Feb 2006 17:58:49 +0000 (GMT) (envelope-from bde@zeta.org.au) Received: from mailout2.pacific.net.au (mailout2.pacific.net.au [61.8.0.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id B3ADB43D45; Fri, 3 Feb 2006 17:58:48 +0000 (GMT) (envelope-from bde@zeta.org.au) Received: from mailproxy2.pacific.net.au (mailproxy2.pacific.net.au [61.8.0.87]) by mailout2.pacific.net.au (8.13.4/8.13.4/Debian-3) with ESMTP id k13HwhM6002091; Sat, 4 Feb 2006 04:58:44 +1100 Received: from katana.zip.com.au (katana.zip.com.au [61.8.7.246]) by mailproxy2.pacific.net.au (8.13.4/8.13.4/Debian-3) with ESMTP id k13HweDZ024530; Sat, 4 Feb 2006 04:58:41 +1100 Date: Sat, 4 Feb 2006 04:58:40 +1100 (EST) From: Bruce Evans X-X-Sender: bde@delplex.bde.org To: "O. Hartmann" In-Reply-To: <43E1FD40.9060408@uni-mainz.de> Message-ID: <20060204042336.F11473@delplex.bde.org> References: <43E1D1E9.3000302@mail.uni-mainz.de> <43E1E8B0.3030702@uni-mainz.de> <20060202224815.K7234@delplex.bde.org> <43E1FD40.9060408@uni-mainz.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: "O. Hartmann" , freebsd-stable@FreeBSD.org, freebsd-amd64@FreeBSD.org Subject: Re: missing fpresetsticky in ieeefp.h X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Feb 2006 17:58:49 -0000 On Thu, 2 Feb 2006, O. Hartmann wrote: > Bruce Evans schrieb: >> On Thu, 2 Feb 2006, O. Hartmann wrote: >> ... >>>> Now take a look into , where this function should be >>>> declared. Nothing, I can not find this routine, it seems to be 'not >>>> available' on my FreeBSD6.1-PRERELEASE AMD64 (no 32Bit compatibility). >> >> It was removed for amd64 and never existed for some other arches. It was [fresetsticky()] >> apparently unused when it was removed a year ago. >> ... >> % RCS file: /home/ncvs/src/sys/amd64/include/ieeefp.h,v >> ... >> % revision 1.13 > ... > Thanks a lot. In prior software compilations of GMT on FBSD/AMD64 I commented > out the appropriate line in gmt_init.c without any hazardous effects - but I > never used GMT that intensive having ever recognozed any malicious side > effects. > > I should contact the guys from Soest/Hawaii asking them for any serious > effects commenting out this line on amd64 architectures. I think it is probably used only for error detection, if at all. Accumulated IEEE exceptions are supposed to be read using fpgetsticky() and then cleared using fp[re]setsticky() so that the next set accumulated can be distinguished from the old set. Applications should now use fesetexceptflag() instead of fp[re]setsticky(). BTW, the most useful fp* functions other than fp[re]setsticky(), namely fp{get,set}round(), never worked on ia64 due to the rounding flags values being misspelled, so there are unlikely to be any portable uses of the fp* functions in ports. The corresponding fe{get,set}round() functions work on at least i386, amd64 and ia64. Bruce