1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-11 18:20:43 +09:00

UserspaceEmulator: Implement FABS

This commit is contained in:
Andreas Kling 2020-11-14 15:27:05 +01:00
parent 60ff27c633
commit a031c6c754
Notes: sideshowbarker 2024-07-19 02:28:11 +09:00

View file

@ -1573,7 +1573,11 @@ void SoftCPU::FCHS(const X86::Instruction&)
fpu_set(0, -fpu_get(0));
}
void SoftCPU::FABS(const X86::Instruction&) { TODO_INSN(); }
void SoftCPU::FABS(const X86::Instruction&)
{
fpu_set(0, __builtin_fabs(fpu_get(0)));
}
void SoftCPU::FTST(const X86::Instruction&) { TODO_INSN(); }
void SoftCPU::FXAM(const X86::Instruction&) { TODO_INSN(); }