From 235e44fc30c8766e51a6457d46cb2539bd4bf7e1 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 22 Oct 2024 10:43:49 -0400 Subject: [PATCH] spelling: mantissa Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../src/com/jpexs/decompiler/flash/SWFInputStream.java | 8 ++++---- .../src/com/jpexs/decompiler/flash/SWFOutputStream.java | 6 +++--- src/com/jpexs/decompiler/flash/gui/player/ZoomPanel.java | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/SWFInputStream.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/SWFInputStream.java index 94b455719..97da529ed 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/SWFInputStream.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/SWFInputStream.java @@ -885,9 +885,9 @@ public class SWFInputStream implements AutoCloseable { float ret = Float.intBitsToFloat(val); endDumpLevel(ret); /*int sign = val >> 31; - int mantisa = val & 0x3FFFFF; + int mantissa = val & 0x3FFFFF; int exp = (val >> 22) & 0xFF; - float ret =(sign == 1 ? -1 : 1) * (float) Math.pow(2, exp)* (1+((mantisa)/ (float)(1<<23)));*/ + float ret =(sign == 1 ? -1 : 1) * (float) Math.pow(2, exp)* (1+((mantissa)/ (float)(1<<23)));*/ return ret; } @@ -902,9 +902,9 @@ public class SWFInputStream implements AutoCloseable { newDumpLevel(name, "FLOAT16"); int val = readUI16Internal(); int sign = val >> 15; - int mantisa = val & 0x3FF; + int mantissa = val & 0x3FF; int exp = (val >> 10) & 0x1F; - float ret = (sign == 1 ? -1 : 1) * (float) Math.pow(2, exp) * (1 + ((mantisa) / (float) (1 << 10))); + float ret = (sign == 1 ? -1 : 1) * (float) Math.pow(2, exp) * (1 + ((mantissa) / (float) (1 << 10))); endDumpLevel(ret); return ret; } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/SWFOutputStream.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/SWFOutputStream.java index 6cf162479..2e5f6c8f0 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/SWFOutputStream.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/SWFOutputStream.java @@ -410,9 +410,9 @@ public class SWFOutputStream extends OutputStream { int bits = Float.floatToRawIntBits(value); int sign = bits >> 31; int exponent = (bits >> 22) & 0xff; - int mantisa = bits & 0x3FFFFF; - mantisa >>= 13; - writeUI16((sign << 15) + (exponent << 10) + mantisa); + int mantissa = bits & 0x3FFFFF; + mantissa >>= 13; + writeUI16((sign << 15) + (exponent << 10) + mantissa); } /** diff --git a/src/com/jpexs/decompiler/flash/gui/player/ZoomPanel.java b/src/com/jpexs/decompiler/flash/gui/player/ZoomPanel.java index 649ffbc70..90c258531 100644 --- a/src/com/jpexs/decompiler/flash/gui/player/ZoomPanel.java +++ b/src/com/jpexs/decompiler/flash/gui/player/ZoomPanel.java @@ -130,9 +130,9 @@ public class ZoomPanel extends JPanel implements MediaDisplayListener { } } - private static double roundZoom(double realZoom, int mantisa) { + private static double roundZoom(double realZoom, int mantissa) { double l10 = Math.log10(realZoom); - int lg = (int) (-Math.floor(l10) + mantisa - 1); + int lg = (int) (-Math.floor(l10) + mantissa - 1); if (lg < 0) { lg = 0; }