diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2015-02-02 18:47:16 +0000 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2015-02-06 16:11:38 +0000 |
commit | ff32e16e865c78fb54187723f3fd09650cd9b962 (patch) | |
tree | 9d41c410e7d4a5e5f82f4bb5c7451d871e81bdee /include/fpu | |
parent | e5a41ffa870ad096eb2f084447fea5dd00a51b31 (diff) |
softfloat: expand out STATUS_VAR
Expand out and remove the STATUS_VAR macro.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'include/fpu')
-rw-r--r-- | include/fpu/softfloat.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/include/fpu/softfloat.h b/include/fpu/softfloat.h index fab2aee1ad..d13fd0ee33 100644 --- a/include/fpu/softfloat.h +++ b/include/fpu/softfloat.h @@ -109,7 +109,6 @@ typedef int64_t int64; #define LIT64( a ) a##LL #define STATUS(field) status->field -#define STATUS_VAR , status /*---------------------------------------------------------------------------- | Software IEC/IEEE floating-point ordering relations @@ -329,22 +328,22 @@ float128 uint64_to_float128(uint64_t, float_status *status); /* We provide the int16 versions for symmetry of API with float-to-int */ static inline float32 int16_to_float32(int16_t v, float_status *status) { - return int32_to_float32(v STATUS_VAR); + return int32_to_float32(v, status); } static inline float32 uint16_to_float32(uint16_t v, float_status *status) { - return uint32_to_float32(v STATUS_VAR); + return uint32_to_float32(v, status); } static inline float64 int16_to_float64(int16_t v, float_status *status) { - return int32_to_float64(v STATUS_VAR); + return int32_to_float64(v, status); } static inline float64 uint16_to_float64(uint16_t v, float_status *status) { - return uint32_to_float64(v STATUS_VAR); + return uint32_to_float64(v, status); } /*---------------------------------------------------------------------------- |