Skip to content

Commit

Permalink
fixed return value type in softfloat expF80_to_i16* functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Stanislav Shwartsman committed Jan 18, 2025
1 parent 123beec commit 856eefa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bochs/cpu/softfloat3e/include/softfloat.h
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,7 @@ BX_CPP_INLINE int32_t extF80_to_i32(extFloat80_t a, struct softfloat_status_t *s
return extF80_to_i32(a, softfloat_getRoundingMode(status), true, status);
}

BX_CPP_INLINE int32_t extF80_to_i16(extFloat80_t a, struct softfloat_status_t *status)
BX_CPP_INLINE int16_t extF80_to_i16(extFloat80_t a, struct softfloat_status_t *status)
{
int32_t v32 = extF80_to_i32(a, status);
int16_t v16 = (int16_t) v32;
Expand All @@ -699,7 +699,7 @@ BX_CPP_INLINE int32_t extF80_to_i32_round_to_zero(extFloat80_t a, struct softflo
return extF80_to_i32_r_minMag(a, true, status);
}

BX_CPP_INLINE int32_t extF80_to_i16_round_to_zero(extFloat80_t a, struct softfloat_status_t *status)
BX_CPP_INLINE int16_t extF80_to_i16_round_to_zero(extFloat80_t a, struct softfloat_status_t *status)
{
int32_t v32 = extF80_to_i32_round_to_zero(a, status);
int16_t v16 = (int16_t) v32;
Expand Down

0 comments on commit 856eefa

Please sign in to comment.