forked from kanjitalk755/macemu
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch Emscripten FPU emulation to mpfr
Matches the arm64 build, and avoids precision issues with the vanilla double path in fpu_ieee.cpp. There is a slowdown (Speedometer 4.0 FPU benchmark goes from 7.7 to 2.4), but it's worth it to avoid quirks that prevent things like the scroll thumbs in Mac OS 8 from positioning correctly. Updates mihaip/infinite-mac#6
- Loading branch information
Showing
2 changed files
with
39 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/bin/bash | ||
set -euo pipefail | ||
|
||
mkdir -p /emlibs | ||
cd /tmp | ||
|
||
wget https://gmplib.org/download/gmp/gmp-6.2.1.tar.lz | ||
tar xf gmp-6.2.1.tar.lz | ||
cd gmp-6.2.1 | ||
emconfigure ./configure \ | ||
--disable-assembly \ | ||
--with-readline=no \ | ||
--enable-cxx \ | ||
--host none \ | ||
--prefix=/emlibs | ||
make -j6 | ||
make install | ||
cd .. | ||
|
||
wget https://www.mpfr.org/mpfr-current/mpfr-4.1.0.tar.xz | ||
tar xf mpfr-4.1.0.tar.xz | ||
cd mpfr-4.1.0 | ||
emconfigure ./configure \ | ||
--enable-assert=none \ | ||
--disable-thread-safe \ | ||
--disable-float128 \ | ||
--disable-decimal-float \ | ||
--host none \ | ||
--with-gmp=/emlibs \ | ||
--prefix=/emlibs | ||
make -j6 | ||
make install | ||
cd .. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters