diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2006-11-04 18:29:35 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2006-11-04 18:29:35 +0000 |
commit | 4d356ed643043482c683d1f79d8cadcf63f79094 (patch) | |
tree | 1dd0205eef613beaaadd5c3bdd4a4b562707be4c /emulators/qemu/files/patch-fpu-softfloat-native.c | |
parent | Update to 2.12.5 (diff) |
- Update to 20061102
PR: ports/105086
Submitted by: Juergen Lock <nox@jelal.kn-bremen.de> (maintainer)
Sponsored by: FreeBSD Bug-a-thon #2
Notes
Notes:
svn path=/head/; revision=176353
Diffstat (limited to 'emulators/qemu/files/patch-fpu-softfloat-native.c')
-rw-r--r-- | emulators/qemu/files/patch-fpu-softfloat-native.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/emulators/qemu/files/patch-fpu-softfloat-native.c b/emulators/qemu/files/patch-fpu-softfloat-native.c new file mode 100644 index 000000000000..0a7f3018835c --- /dev/null +++ b/emulators/qemu/files/patch-fpu-softfloat-native.c @@ -0,0 +1,17 @@ +Index: qemu/fpu/softfloat-native.c +@@ -228,7 +228,15 @@ + *----------------------------------------------------------------------------*/ + float64 float64_trunc_to_int( float64 a STATUS_PARAM ) + { ++#if defined(__FreeBSD__) && __FreeBSD__ <= 4 ++ float64 ret; ++ fpsetround(FP_RZ); ++ ret = rint(a); ++ fpsetround(STATUS(float_rounding_mode)); ++ return ret; ++#else + return trunc(a); ++#endif + } + + float64 float64_round_to_int( float64 a STATUS_PARAM )
\ No newline at end of file |