Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 395268 Details for
Bug 527788
dev-java/jamvm fails to build with sys-libs/musl
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Replace fpu_control by fenv
fpu_control.patch (text/plain), 1.78 KB, created by
Felix Janda
on 2015-01-31 22:11:57 UTC
(
hide
)
Description:
Replace fpu_control by fenv
Filename:
MIME Type:
Creator:
Felix Janda
Created:
2015-01-31 22:11:57 UTC
Size:
1.78 KB
patch
obsolete
>diff -ur a/jamvm-1.5.4/src/os/linux/i386/init.c b/jamvm-1.5.4/src/os/linux/i386/init.c >--- a/jamvm-1.5.4/src/os/linux/i386/init.c 2009-12-31 19:40:48.000000000 -0100 >+++ b/jamvm-1.5.4/src/os/linux/i386/init.c 2015-01-31 22:57:09.558345144 -0100 >@@ -19,18 +19,18 @@ > * Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. > */ > >-#include <fpu_control.h> >+#include <fenv.h> > > /* Change floating point precision to double (64-bit) from > * the extended (80-bit) Linux default. */ > > void setDoublePrecision() { >- fpu_control_t cw; >+ fenv_t fenv; > >- _FPU_GETCW(cw); >- cw &= ~_FPU_EXTENDED; >- cw |= _FPU_DOUBLE; >- _FPU_SETCW(cw); >+ fegetenv(&fenv); >+ fenv.__control_word &= ~0x300; /* _FPU_EXTENDED */ >+ fenv.__control_word |= 0x200; /* _FPU_DOUBLE */ >+ fesetenv(&fenv); > } > > void initialisePlatform() { >diff -ur a/jamvm-1.5.4/src/os/linux/x86_64/init.c b/jamvm-1.5.4/src/os/linux/x86_64/init.c >--- a/jamvm-1.5.4/src/os/linux/x86_64/init.c 2009-12-31 19:40:48.000000000 -0100 >+++ b/jamvm-1.5.4/src/os/linux/x86_64/init.c 2015-01-31 22:57:03.257423916 -0100 >@@ -19,9 +19,7 @@ > * Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. > */ > >-#ifdef __linux__ >-#include <fpu_control.h> >-#endif >+#include <fenv.h> > > /* Change the x87 FPU precision to double (64-bit) from the extended > (80-bit) Linux default. Note, unlike on i386, my testcases pass >@@ -30,14 +28,12 @@ > */ > > void setDoublePrecision() { >-#ifdef __linux__ >- fpu_control_t cw; >+ fenv_t fenv; > >- _FPU_GETCW(cw); >- cw &= ~_FPU_EXTENDED; >- cw |= _FPU_DOUBLE; >- _FPU_SETCW(cw); >-#endif >+ fegetenv(&fenv); >+ fenv.__control_word &= ~0x300; /*_FPU_EXTENDED */ >+ fenv.__control_word |= 0x200; /*_FPU_DOUBLE */ >+ fesetenv(&fenv); > } > > void initialisePlatform() {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 527788
:
387944
| 395268 |
395270
|
428544
|
428728