mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-01-22 17:51:11 +00:00
softfloat: fix return type of roundAndPackFloat16
The roundAndPackFloat16 function should return a float16 value, not a float32 one. Fix that. Backports commit 7ceac86f49b564954f5bde477c4281f407be1399 from qemu
This commit is contained in:
parent
c8220d5aaf
commit
5c1abe1b1b
|
@ -3333,7 +3333,7 @@ static float16 packFloat16(flag zSign, int_fast16_t zExp, uint16_t zSig)
|
|||
| Binary Floating-Point Arithmetic.
|
||||
*----------------------------------------------------------------------------*/
|
||||
|
||||
static float32 roundAndPackFloat16(flag zSign, int_fast16_t zExp,
|
||||
static float16 roundAndPackFloat16(flag zSign, int_fast16_t zExp,
|
||||
uint32_t zSig, flag ieee, float_status *status)
|
||||
{
|
||||
int maxexp = ieee ? 29 : 30;
|
||||
|
|
Loading…
Reference in a new issue