Date: Wed, 9 May 2007 12:27:10 -0700 From: Steve Kargl <sgk@troutmask.apl.washington.edu> To: Luoqi Chen <luoqi@freebsd.org> Cc: current@freebsd.org Subject: Re: rint() bug Message-ID: <20070509192710.GA97664@troutmask.apl.washington.edu> In-Reply-To: <200705091202.04699.luoqi@freebsd.org> References: <336D7181C830FF4E8B176A94FFB3F8D83356BD@ex01.briontech.com> <200705091202.04699.luoqi@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, May 09, 2007 at 12:02:03PM -0700, Luoqi Chen wrote: > 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. > David Schultz (das) wrote a amd64 version of lrint(). If you can use that, then you should consider doing so. lrint() is in 6-stable. As to merging changes into 6-stable, I have no idea if or when that may happen. -- Steve
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070509192710.GA97664>