1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-28 18:32:11 +00:00

UserspaceEmulator: Fix typos in SoftFPU.[cpp|h]

This commit is contained in:
Hendiadyoin1 2021-07-23 00:53:06 +02:00 committed by Linus Groh
parent 74aba07b70
commit f2eff767a0
2 changed files with 3 additions and 3 deletions

View file

@ -186,7 +186,7 @@ ALWAYS_INLINE T SoftFPU::fpu_round(long double value) const
return static_cast<T>(floorl(value)); return static_cast<T>(floorl(value));
case RoundingMode::UP: case RoundingMode::UP:
return static_cast<T>(ceill(value)); return static_cast<T>(ceill(value));
case RoundingMode::TRUNK: case RoundingMode::TRUNC:
return static_cast<T>(truncl(value)); return static_cast<T>(truncl(value));
default: default:
VERIFY_NOT_REACHED(); VERIFY_NOT_REACHED();

View file

@ -85,7 +85,7 @@ private:
NEAREST = 0b00, NEAREST = 0b00,
DOWN = 0b01, DOWN = 0b01,
UP = 0b10, UP = 0b10,
TRUNK = 0b11 TRUNC = 0b11
}; };
void fpu_dump_env() void fpu_dump_env()
@ -122,7 +122,7 @@ private:
case FPU_Exception::InvalidOperation: case FPU_Exception::InvalidOperation:
return "Invalid Operation"; return "Invalid Operation";
case FPU_Exception::DenormalizedOperand: case FPU_Exception::DenormalizedOperand:
return "Denormalized Operant"; return "Denormalized Operand";
case FPU_Exception::ZeroDivide: case FPU_Exception::ZeroDivide:
return "Divide by Zero"; return "Divide by Zero";
case FPU_Exception::Overflow: case FPU_Exception::Overflow: