MCPcopy Create free account
hub / github.com/ZDoom/Raze / EmitADDA_RK

Method EmitADDA_RK

source/common/scripting/jit/jit_math.cpp:1687–1702  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1685}
1686
1687void JitCompiler::EmitADDA_RK()
1688{
1689 auto tmp = newTempIntPtr();
1690 auto label = cc.newLabel();
1691
1692 cc.mov(tmp, regA[B]);
1693
1694 // Check if zero, the first operand is zero, if it is, don't add.
1695 cc.cmp(tmp, 0);
1696 cc.je(label);
1697
1698 cc.add(tmp, konstd[C]);
1699
1700 cc.bind(label);
1701 cc.mov(regA[A], tmp);
1702}
1703
1704void JitCompiler::EmitSUBA()
1705{

Callers

nothing calls this directly

Calls 3

newLabelMethod · 0.45
addMethod · 0.45
bindMethod · 0.45

Tested by

no test coverage detected