From 35001a23ae4d26b42a08a945be4d5ee60debc237 Mon Sep 17 00:00:00 2001 From: Stanislav Shwartsman Date: Sun, 3 Nov 2024 22:41:59 +0200 Subject: [PATCH] small coding style update --- bochs/cpu/softfloat3e/8086-SSE/s_propagateNaNF128UI.c | 3 +-- bochs/cpu/softfloat3e/8086-SSE/s_propagateNaNF16UI.c | 4 +--- bochs/cpu/softfloat3e/8086-SSE/s_propagateNaNF32UI.c | 4 +--- bochs/cpu/softfloat3e/8086-SSE/s_propagateNaNF64UI.c | 4 +--- 4 files changed, 4 insertions(+), 11 deletions(-) diff --git a/bochs/cpu/softfloat3e/8086-SSE/s_propagateNaNF128UI.c b/bochs/cpu/softfloat3e/8086-SSE/s_propagateNaNF128UI.c index 83a7c2413..42288b1b8 100644 --- a/bochs/cpu/softfloat3e/8086-SSE/s_propagateNaNF128UI.c +++ b/bochs/cpu/softfloat3e/8086-SSE/s_propagateNaNF128UI.c @@ -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; diff --git a/bochs/cpu/softfloat3e/8086-SSE/s_propagateNaNF16UI.c b/bochs/cpu/softfloat3e/8086-SSE/s_propagateNaNF16UI.c index 16300b028..b37cc3a15 100644 --- a/bochs/cpu/softfloat3e/8086-SSE/s_propagateNaNF16UI.c +++ b/bochs/cpu/softfloat3e/8086-SSE/s_propagateNaNF16UI.c @@ -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; diff --git a/bochs/cpu/softfloat3e/8086-SSE/s_propagateNaNF32UI.c b/bochs/cpu/softfloat3e/8086-SSE/s_propagateNaNF32UI.c index a946f6220..2f3484852 100644 --- a/bochs/cpu/softfloat3e/8086-SSE/s_propagateNaNF32UI.c +++ b/bochs/cpu/softfloat3e/8086-SSE/s_propagateNaNF32UI.c @@ -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; diff --git a/bochs/cpu/softfloat3e/8086-SSE/s_propagateNaNF64UI.c b/bochs/cpu/softfloat3e/8086-SSE/s_propagateNaNF64UI.c index e0ac88600..084c4162d 100644 --- a/bochs/cpu/softfloat3e/8086-SSE/s_propagateNaNF64UI.c +++ b/bochs/cpu/softfloat3e/8086-SSE/s_propagateNaNF64UI.c @@ -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);