Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:11.4
glibc.i686
glibc-2.3.3-amd64-s_ceil.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File glibc-2.3.3-amd64-s_ceil.diff of Package glibc.i686
This fixes ceil (x) for -1.0 < x < 0. Index: sysdeps/x86_64/fpu/s_ceil.c =================================================================== --- sysdeps/x86_64/fpu/s_ceil.c.orig +++ sysdeps/x86_64/fpu/s_ceil.c @@ -34,7 +34,11 @@ double __ceil(double x) /* x is +zero or -zero; return the same zero */ return x; else if (xneg) /* x < 0.0 */ - return 0.0; + { + /* Return zero with the sign of x */ + PUT_BITS_DP64(SIGNBIT_DP64, x); + return x; + } else return 1.0; } Index: sysdeps/x86_64/fpu/s_ceilf.c =================================================================== --- sysdeps/x86_64/fpu/s_ceilf.c.orig +++ sysdeps/x86_64/fpu/s_ceilf.c @@ -34,7 +34,11 @@ float __ceilf(float x) /* x is +zero or -zero; return the same zero */ return x; else if (xneg) /* x < 0.0 */ - return 0.0F; + { + /* Return zero with the sign of x */ + PUT_BITS_SP32(SIGNBIT_SP32, x); + return x; + } else return 1.0F; }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor