[uClibc 0001452]: rint() bad on x86.

bugs at busybox.net bugs at busybox.net
Tue Jul 31 12:55:20 UTC 2007


The following issue has been SUBMITTED. 
====================================================================== 
http://busybox.net/bugs/view.php?id=1452 
====================================================================== 
Reported By:                chmeee
Assigned To:                uClibc
====================================================================== 
Project:                    uClibc
Issue ID:                   1452
Category:                   Architecture Specific
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             07-31-2007 05:55 PDT
Last Modified:              07-31-2007 05:55 PDT
====================================================================== 
Summary:                    rint() bad on x86.
Description: 
On x86 with Linux uclibc's rint() function returns bad results.  This was
tracked down to Linux's defaulting to 80-bit floating point rounding, and
uclibc's 64-bit function.  There are two ways of dealing with this:

1)  Reset FPU to 64-bit precision.
2)  Import glibc's functions for this and its variants.

I'm currently working on doing the latter in my personal tree, and will
submit a patch when I finish.
====================================================================== 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
07-31-07 05:55  chmeee         New Issue                                    
07-31-07 05:55  chmeee         Status                   new => assigned     
07-31-07 05:55  chmeee         Assigned To               => uClibc          
======================================================================




More information about the uClibc-cvs mailing list