Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 May 2007 02:16:32 -0700
From:      Luoqi Chen <luoqi@freebsd.org>
To:        current@freebsd.org
Subject:   rint() bug
Message-ID:  <200705090216.33394.luoqi@freebsd.org>

next in thread | raw e-mail | index | archive | help
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

I haven't checked any 32-bit system, on 64-bit systems, gcc is generating
SSE instructions for floating point operations, so the i387 version of rint()
is no longer used and the C version is. Linux (RHEL4 at least) has the
same problem.

The fix would be very straightforward: cast lrint() back to double.

-lq



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200705090216.33394.luoqi>