Skip to content

Commit

Permalink
softfloat: fix return type of roundAndPackFloat16
Browse files Browse the repository at this point in the history
The roundAndPackFloat16 function should return a float16 value, not a
float32 one. Fix that.

Cc: Peter Maydell <[email protected]>
Signed-off-by: Aurelien Jarno <[email protected]>
Reviewed-by: Peter Maydell <[email protected]>
Message-id: [email protected]
Signed-off-by: Peter Maydell <[email protected]>
  • Loading branch information
aurel32 authored and pm215 committed Jan 22, 2016
1 parent d341d9f commit 7ceac86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fpu/softfloat.c
Original file line number Diff line number Diff line change
Expand Up @@ -3368,7 +3368,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)
{
Expand Down

0 comments on commit 7ceac86

Please sign in to comment.