Skip to content

Commit

Permalink
small coding style update
Browse files Browse the repository at this point in the history
  • Loading branch information
Stanislav Shwartsman committed Nov 3, 2024
1 parent f5717a9 commit 35001a2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 11 deletions.
3 changes: 1 addition & 2 deletions bochs/cpu/softfloat3e/8086-SSE/s_propagateNaNF128UI.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,9 @@ struct uint128
struct softfloat_status_t *status
)
{
bool isSigNaNA;
struct uint128 uiZ;

isSigNaNA = softfloat_isSigNaNF128UI(uiA64, uiA0);
bool isSigNaNA = softfloat_isSigNaNF128UI(uiA64, uiA0);
if (isSigNaNA || softfloat_isSigNaNF128UI(uiB64, uiB0)) {
softfloat_raiseFlags(status, softfloat_flag_invalid);
if (isSigNaNA) goto returnNonsigA;
Expand Down
4 changes: 1 addition & 3 deletions bochs/cpu/softfloat3e/8086-SSE/s_propagateNaNF16UI.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*----------------------------------------------------------------------------*/
uint16_t softfloat_propagateNaNF16UI(uint16_t uiA, uint16_t uiB, struct softfloat_status_t *status)
{
bool isSigNaNA;

isSigNaNA = softfloat_isSigNaNF16UI(uiA);
bool isSigNaNA = softfloat_isSigNaNF16UI(uiA);
if (isSigNaNA || softfloat_isSigNaNF16UI(uiB)) {
softfloat_raiseFlags(status, softfloat_flag_invalid);
if (isSigNaNA) return uiA | 0x0200;
Expand Down
4 changes: 1 addition & 3 deletions bochs/cpu/softfloat3e/8086-SSE/s_propagateNaNF32UI.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*----------------------------------------------------------------------------*/
uint32_t softfloat_propagateNaNF32UI(uint32_t uiA, uint32_t uiB, struct softfloat_status_t *status)
{
bool isSigNaNA;

isSigNaNA = softfloat_isSigNaNF32UI(uiA);
bool isSigNaNA = softfloat_isSigNaNF32UI(uiA);
if (isSigNaNA || softfloat_isSigNaNF32UI(uiB)) {
softfloat_raiseFlags(status, softfloat_flag_invalid);
if (isSigNaNA) return uiA | 0x00400000;
Expand Down
4 changes: 1 addition & 3 deletions bochs/cpu/softfloat3e/8086-SSE/s_propagateNaNF64UI.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*----------------------------------------------------------------------------*/
uint64_t softfloat_propagateNaNF64UI(uint64_t uiA, uint64_t uiB, struct softfloat_status_t *status)
{
bool isSigNaNA;

isSigNaNA = softfloat_isSigNaNF64UI(uiA);
bool isSigNaNA = softfloat_isSigNaNF64UI(uiA);
if (isSigNaNA || softfloat_isSigNaNF64UI(uiB)) {
softfloat_raiseFlags(status, softfloat_flag_invalid);
if (isSigNaNA) return uiA | UINT64_C(0x0008000000000000);
Expand Down

0 comments on commit 35001a2

Please sign in to comment.