MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / bsfReg

Method bsfReg

source/emulation/cpu/x32/jitX86CodeGen.cpp:1648–1656  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1646}
1647
1648void JitX86CodeGen::bsfReg(JitWidth regWidth, RegPtr reg, RegPtr rm) {
1649 if (regWidth == JitWidth::b32) {
1650 compiler.bsf(R32(reg), R32(rm));
1651 } else if (regWidth == JitWidth::b16) {
1652 compiler.bsf(R16(reg), R16(rm));
1653 } else {
1654 kpanic("JitX86CodeGen::bsfReg");
1655 }
1656}
1657
1658void JitX86CodeGen::bsrReg(JitWidth regWidth, RegPtr reg, RegPtr rm) {
1659 if (regWidth == JitWidth::b32) {

Callers

nothing calls this directly

Calls 4

R16Function · 0.85
kpanicFunction · 0.85
bsfMethod · 0.80
R32Function · 0.70

Tested by

no test coverage detected