mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-03-29 04:46:54 +00:00
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). Backports commit 0c48262d4772d40677364199372fb6ffcf487558 from qemu
This commit is contained in:
parent
9d0463feed
commit
36551f59bb
|
@ -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,
|
||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue