MCPcopy Create free account
hub / github.com/HaxeFoundation/hxcpp / bitOp

Method bitOp

src/hx/cppia/CppiaCompiler.cpp:1211–1234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1209 }
1210
1211 void bitOp(BitOp inOp, const JitVal &inDest, const JitVal &v0, const JitVal &v1 ) HXCPP_OVERRIDE
1212 {
1213 switch(inOp)
1214 {
1215 case bitOpAnd:
1216 emit_op2(SLJIT_AND32, inDest, v0, v1);
1217 break;
1218 case bitOpOr:
1219 emit_op2(SLJIT_OR32, inDest, v0, v1);
1220 break;
1221 case bitOpXOr:
1222 emit_op2(SLJIT_XOR32, inDest, v0, v1);
1223 break;
1224 case bitOpUSR:
1225 emit_op2(SLJIT_LSHR32, inDest, v0, v1);
1226 break;
1227 case bitOpShiftL:
1228 emit_op2(SLJIT_SHL32, inDest, v0, v1);
1229 break;
1230 case bitOpShiftR:
1231 emit_op2(SLJIT_ASHR32, inDest, v0, v1);
1232 break;
1233 }
1234 }
1235
1236 void mult(const JitVal &inDest, const JitVal &v0, const JitVal &v1, bool asFloat ) HXCPP_OVERRIDE
1237 {

Callers 3

genBitOpSetFunction · 0.80
genCodeMethod · 0.80
genCodeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected