aboutsummaryrefslogtreecommitdiff
path: root/softmmu_header.h
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-11-06 19:56:23 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-11-06 19:56:23 +0000
commit3f87bf69590c6b3aead85c4ebb8cc7c9c81ccda5 (patch)
tree7f828c8c4f3df0267913d940215ef376e0bfee43 /softmmu_header.h
parent2531fc7bc02f1ae1ddc5e313e5e6d7f9bf5f9225 (diff)
use softfloat types in softmmu_header.h (Paul Brook)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1608 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'softmmu_header.h')
-rw-r--r--softmmu_header.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/softmmu_header.h b/softmmu_header.h
index 0798cf5721..81c65dc870 100644
--- a/softmmu_header.h
+++ b/softmmu_header.h
@@ -304,20 +304,20 @@ static inline void glue(glue(st, SUFFIX), MEMSUFFIX)(target_ulong ptr, RES_TYPE
#endif
#if DATA_SIZE == 8
-static inline double glue(ldfq, MEMSUFFIX)(target_ulong ptr)
+static inline float64 glue(ldfq, MEMSUFFIX)(target_ulong ptr)
{
union {
- double d;
+ float64 d;
uint64_t i;
} u;
u.i = glue(ldq, MEMSUFFIX)(ptr);
return u.d;
}
-static inline void glue(stfq, MEMSUFFIX)(target_ulong ptr, double v)
+static inline void glue(stfq, MEMSUFFIX)(target_ulong ptr, float64 v)
{
union {
- double d;
+ float64 d;
uint64_t i;
} u;
u.d = v;
@@ -326,20 +326,20 @@ static inline void glue(stfq, MEMSUFFIX)(target_ulong ptr, double v)
#endif /* DATA_SIZE == 8 */
#if DATA_SIZE == 4
-static inline float glue(ldfl, MEMSUFFIX)(target_ulong ptr)
+static inline float32 glue(ldfl, MEMSUFFIX)(target_ulong ptr)
{
union {
- float f;
+ float32 f;
uint32_t i;
} u;
u.i = glue(ldl, MEMSUFFIX)(ptr);
return u.f;
}
-static inline void glue(stfl, MEMSUFFIX)(target_ulong ptr, float v)
+static inline void glue(stfl, MEMSUFFIX)(target_ulong ptr, float32 v)
{
union {
- float f;
+ float32 f;
uint32_t i;
} u;
u.f = v;