1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-25 19:05:07 +00:00

UserspaceEmulator: Implement FABS

This commit is contained in:
Andreas Kling 2020-11-14 15:27:05 +01:00
parent 60ff27c633
commit a031c6c754

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(); }