mirror of
https://github.com/RGBCube/serenity
synced 2025-05-26 01:45:06 +00:00
UserspaceEmulator: Implement FABS
This commit is contained in:
parent
60ff27c633
commit
a031c6c754
1 changed files with 5 additions and 1 deletions
|
@ -1573,7 +1573,11 @@ void SoftCPU::FCHS(const X86::Instruction&)
|
||||||
fpu_set(0, -fpu_get(0));
|
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::FTST(const X86::Instruction&) { TODO_INSN(); }
|
||||||
void SoftCPU::FXAM(const X86::Instruction&) { TODO_INSN(); }
|
void SoftCPU::FXAM(const X86::Instruction&) { TODO_INSN(); }
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue