From owner-freebsd-current@FreeBSD.ORG Wed May 9 19:02:12 2007 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1B9EE16A400 for ; Wed, 9 May 2007 19:02:12 +0000 (UTC) (envelope-from luoqi@freebsd.org) Received: from sccrmhc15.comcast.net (sccrmhc15.comcast.net [63.240.77.85]) by mx1.freebsd.org (Postfix) with ESMTP id D6E7A13C45D for ; Wed, 9 May 2007 19:02:11 +0000 (UTC) (envelope-from luoqi@freebsd.org) Received: from luoqi.homeunix.org ([76.102.199.51]) by comcast.net (sccrmhc15) with ESMTP id <20070509190207015008ig5de>; Wed, 9 May 2007 19:02:11 +0000 Received: from dell.baobao.home (localhost [127.0.0.1]) by luoqi.homeunix.org (8.14.1/8.14.1) with ESMTP id l49J26Qs005615; Wed, 9 May 2007 12:02:06 -0700 (PDT) (envelope-from luoqi@freebsd.org) Received: from localhost (localhost [[UNIX: localhost]]) by dell.baobao.home (8.14.1/8.14.1/Submit) id l49J25le005614; Wed, 9 May 2007 12:02:05 -0700 (PDT) (envelope-from luoqi@freebsd.org) X-Authentication-Warning: dell.baobao.home: luoqi set sender to luoqi@freebsd.org using -f From: Luoqi Chen To: "Steve Kargl" Date: Wed, 9 May 2007 12:02:03 -0700 User-Agent: KMail/1.9.6 References: <336D7181C830FF4E8B176A94FFB3F8D83356BD@ex01.briontech.com> In-Reply-To: <336D7181C830FF4E8B176A94FFB3F8D83356BD@ex01.briontech.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200705091202.04699.luoqi@freebsd.org> Cc: current@freebsd.org Subject: Re: rint() bug X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 May 2007 19:02:12 -0000 On Wednesday 09 May 2007 07:55:38 -0700 Steve Kargl wrote: > On Wed, May 09, 2007 at 02:16:32AM -0700, Luoqi Chen wrote: > > Does anyone know about this particular bug (and have a plan to fix it)? > > http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4831589 > > On i386 and amd64, FreeBSD uses assembly code contributed > by David Schultz. On platforms that use fdlibm code, the > bug was fixed 17 months ago. cvsweb is a wonderful tool. > > http://www.freebsd.org/cgi/cvsweb.cgi/src/lib/msun/src/s_rint.c Thanks, Steve. I forgot to check with the CVS, I was looking at 6-R branch, which still doesn't have Bruce's fix (I guess I should have posted my question to -stable instead). Any time table for a merge? I looked at the latest msun/amd64, there was no assembly version for rint(). Since C99 is not supported everywhere (4.x systems, e.g.), I still have to use rint() for portability. Does anyone plan to write a piece of assembly code for rint() on amd64? Besides the bug, the C version is noticeably slower. -lq