Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.2:Update
glibc
glibc-2.16-fix-fenv-header.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File glibc-2.16-fix-fenv-header.patch of Package glibc
2012-06-06 H.J. Lu <hongjiu.lu@intel.com> [BZ #14117] * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check __SSE_MATH__. Index: glibc-2.15/sysdeps/x86_64/fpu/bits/fenv.h =================================================================== --- glibc-2.15.orig/sysdeps/x86_64/fpu/bits/fenv.h 2012-11-21 12:25:53.260725427 +0100 +++ glibc-2.15/sysdeps/x86_64/fpu/bits/fenv.h 2012-11-21 12:26:18.209550638 +0100 @@ -113,7 +113,12 @@ __NTH (feraiseexcept (int __excepts)) /* One example of a invalid operation is 0.0 / 0.0. */ float __f = 0.0; +# ifdef __SSE_MATH__ __asm__ __volatile__ ("divss %0, %0 " : : "x" (__f)); +# else + __asm__ __volatile__ ("fdiv %%st, %%st(0); fwait" + : "=t" (__f) : "0" (__f)); +# endif (void) &__f; } if ((FE_DIVBYZERO & __excepts) != 0) @@ -121,7 +126,12 @@ __NTH (feraiseexcept (int __excepts)) float __f = 1.0; float __g = 0.0; +# ifdef __SSE_MATH__ __asm__ __volatile__ ("divss %1, %0" : : "x" (__f), "x" (__g)); +# else + __asm__ __volatile__ ("fdivp %%st, %%st(1); fwait" + : "=t" (__f) : "0" (__f), "u" (__g) : "st(1)"); +# endif (void) &__f; }
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