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

bugs at busybox.net bugs at busybox.net
Wed Aug 1 10:19:15 PDT 2007


A NOTE has been added to this issue. 
====================================================================== 
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:              08-01-2007 10:19 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.
====================================================================== 

---------------------------------------------------------------------- 
 chmeee - 08-01-07 10:19  
---------------------------------------------------------------------- 
The attached diff fixes the rint() functions by importing the glibc code
for them. 

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          
08-01-07 10:18  chmeee         File Added: uclibc_fp_fix.diff                   

08-01-07 10:19  chmeee         Note Added: 0002647                          
======================================================================



More information about the uClibc-cvs mailing list