spelling: mantissa

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
Josh Soref
2024-10-22 10:43:49 -04:00
committed by Jindra Petřík
parent 81c73c7fe5
commit 235e44fc30
3 changed files with 9 additions and 9 deletions

View File

@@ -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;
}