diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2016-02-19 16:25:01 +0000 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2016-02-19 16:27:22 +0000 |
commit | 0c48262d4772d40677364199372fb6ffcf487558 (patch) | |
tree | a6b625f7757904a9c81531da32c4e9936fb1052e /fpu/softfloat-macros.h | |
parent | 07d792d2b08669bf6a97cbf590496078c4621068 (diff) |
fpu: Use plain 'int' rather than 'int_fast16_t' for exponents
Use the plain 'int' type rather than 'int_fast16_t' for handling
exponents. Exponents don't need to be exactly 16 bits, so using int16_t
for them would confuse more than it clarified.
This should be a safe change because int_fast16_t semantics
permit use of 'int' (and on 32-bit glibc that is what you get).
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Aurelien Jarno <aurelien@aurel32.net>
Message-id: 1453807806-32698-4-git-send-email-peter.maydell@linaro.org
Diffstat (limited to 'fpu/softfloat-macros.h')
-rw-r--r-- | fpu/softfloat-macros.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fpu/softfloat-macros.h b/fpu/softfloat-macros.h index 51947ef3a2..9cc6158cb4 100644 --- a/fpu/softfloat-macros.h +++ b/fpu/softfloat-macros.h @@ -635,7 +635,7 @@ static uint64_t estimateDiv128To64( uint64_t a0, uint64_t a1, uint64_t b ) | value. *----------------------------------------------------------------------------*/ -static uint32_t estimateSqrt32(int_fast16_t aExp, uint32_t a) +static uint32_t estimateSqrt32(int aExp, uint32_t a) { static const uint16_t sqrtOddAdjustments[] = { 0x0004, 0x0022, 0x005D, 0x00B1, 0x011D, 0x019F, 0x0236, 0x02E0, |