diff options
author | David 'Digit' Turner <digit@android.com> | 2010-05-10 23:11:43 -0700 |
---|---|---|
committer | David 'Digit' Turner <digit@android.com> | 2010-05-11 17:54:55 -0700 |
commit | 1da50d3beb2a75f619fa56278cb195703361e261 (patch) | |
tree | 4989aea616bbe8fcc6dea14217c28f04d86d7ae7 /fpu | |
parent | b9317727862dd690cc67bb51f71991c404f9e4f6 (diff) | |
download | external_qemu-1da50d3beb2a75f619fa56278cb195703361e261.zip external_qemu-1da50d3beb2a75f619fa56278cb195703361e261.tar.gz external_qemu-1da50d3beb2a75f619fa56278cb195703361e261.tar.bz2 |
Upstream: remove obsolete softfloat bits
Change-Id: If31cbe598bc7bd882800e25f90272f019d1ca9dc
Diffstat (limited to 'fpu')
-rw-r--r-- | fpu/softfloat-native.c | 20 | ||||
-rw-r--r-- | fpu/softfloat-native.h | 7 | ||||
-rw-r--r-- | fpu/softfloat.h | 1 |
3 files changed, 0 insertions, 28 deletions
diff --git a/fpu/softfloat-native.c b/fpu/softfloat-native.c index 8d64f4e..049c830 100644 --- a/fpu/softfloat-native.c +++ b/fpu/softfloat-native.c @@ -12,8 +12,6 @@ void set_float_rounding_mode(int val STATUS_PARAM) #if (defined(CONFIG_BSD) && !defined(__APPLE__) && !defined(__GLIBC__)) || \ (defined(CONFIG_SOLARIS) && CONFIG_SOLARIS_VERSION < 10) fpsetround(val); -#elif defined(__arm__) - /* nothing to do */ #else fesetround(val); #endif @@ -365,25 +363,7 @@ float64 float64_trunc_to_int( float64 a STATUS_PARAM ) float64 float64_round_to_int( float64 a STATUS_PARAM ) { -#if defined(__arm__) - switch(STATUS(float_rounding_mode)) { - default: - case float_round_nearest_even: - asm("rndd %0, %1" : "=f" (a) : "f"(a)); - break; - case float_round_down: - asm("rnddm %0, %1" : "=f" (a) : "f"(a)); - break; - case float_round_up: - asm("rnddp %0, %1" : "=f" (a) : "f"(a)); - break; - case float_round_to_zero: - asm("rnddz %0, %1" : "=f" (a) : "f"(a)); - break; - } -#else return rint(a); -#endif } float64 float64_rem( float64 a, float64 b STATUS_PARAM) diff --git a/fpu/softfloat-native.h b/fpu/softfloat-native.h index fe737b3..6da0bcb 100644 --- a/fpu/softfloat-native.h +++ b/fpu/softfloat-native.h @@ -126,13 +126,6 @@ enum { float_round_up = FP_RP, float_round_to_zero = FP_RZ }; -#elif defined(__arm__) -enum { - float_round_nearest_even = 0, - float_round_down = 1, - float_round_up = 2, - float_round_to_zero = 3 -}; #else enum { float_round_nearest_even = FE_TONEAREST, diff --git a/fpu/softfloat.h b/fpu/softfloat.h index 9d82694..636591b 100644 --- a/fpu/softfloat.h +++ b/fpu/softfloat.h @@ -187,7 +187,6 @@ typedef struct float_status { signed char float_detect_tininess; signed char float_rounding_mode; signed char float_exception_flags; - signed char float_exception_mask; #ifdef FLOATX80 signed char floatx80_rounding_precision; #endif |