projects
/
qemu
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
50d3eea
)
trunc() for Solaris 9 / SPARC, by Juergen Keil.
author
ths
<ths@c046a42c-6fe2-441c-8c8c-71466251a162>
Mon, 19 Mar 2007 16:46:07 +0000
(16:46 +0000)
committer
ths
<ths@c046a42c-6fe2-441c-8c8c-71466251a162>
Mon, 19 Mar 2007 16:46:07 +0000
(16:46 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2508
c046a42c
-6fe2-441c-8c8c-
71466251a162
fpu/softfloat-native.c
patch
|
blob
|
history
diff --git
a/fpu/softfloat-native.c
b/fpu/softfloat-native.c
index
f20d5c4
..
7b28a4c
100644
(file)
--- a/
fpu/softfloat-native.c
+++ b/
fpu/softfloat-native.c
@@
-221,6
+221,12
@@
float128 float64_to_float128( float64 a STATUS_PARAM)
/*----------------------------------------------------------------------------
| Software IEC/IEEE double-precision operations.
*----------------------------------------------------------------------------*/
+#if ( defined(__sun__) && ( HOST_SOLARIS < 10 ))
+static inline float64 trunc(float64 x)
+{
+ return x < 0 ? -floor(-x) : floor(x);
+}
+#endif
float64 float64_trunc_to_int( float64 a STATUS_PARAM )
{
return trunc(a);