mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-30 08:41:15 +00:00
UserspaceEmulator: Fix typos in SoftFPU.[cpp|h]
This commit is contained in:
parent
74aba07b70
commit
f2eff767a0
Notes:
sideshowbarker
2024-07-18 01:25:49 +09:00
Author: https://github.com/Hendiadyoin1 Commit: https://github.com/SerenityOS/serenity/commit/f2eff767a08 Pull-request: https://github.com/SerenityOS/serenity/pull/8946 Reviewed-by: https://github.com/Dexesttp Reviewed-by: https://github.com/awesomekling Reviewed-by: https://github.com/kleinesfilmroellchen ✅
|
@ -186,7 +186,7 @@ ALWAYS_INLINE T SoftFPU::fpu_round(long double value) const
|
|||
return static_cast<T>(floorl(value));
|
||||
case RoundingMode::UP:
|
||||
return static_cast<T>(ceill(value));
|
||||
case RoundingMode::TRUNK:
|
||||
case RoundingMode::TRUNC:
|
||||
return static_cast<T>(truncl(value));
|
||||
default:
|
||||
VERIFY_NOT_REACHED();
|
||||
|
|
|
@ -85,7 +85,7 @@ private:
|
|||
NEAREST = 0b00,
|
||||
DOWN = 0b01,
|
||||
UP = 0b10,
|
||||
TRUNK = 0b11
|
||||
TRUNC = 0b11
|
||||
};
|
||||
|
||||
void fpu_dump_env()
|
||||
|
@ -122,7 +122,7 @@ private:
|
|||
case FPU_Exception::InvalidOperation:
|
||||
return "Invalid Operation";
|
||||
case FPU_Exception::DenormalizedOperand:
|
||||
return "Denormalized Operant";
|
||||
return "Denormalized Operand";
|
||||
case FPU_Exception::ZeroDivide:
|
||||
return "Divide by Zero";
|
||||
case FPU_Exception::Overflow:
|
||||
|
|
Loading…
Reference in a new issue