MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / optimizejumps

Function optimizejumps

other_src/lua/src/lpeg.cpp:910–916  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

908
909
910static void optimizejumps (Instruction *p) {
911 int i;
912 for (i = 0; p[i].i.code != IEnd; i += sizei(p + i)) {
913 if (isjmp(p + i))
914 p[i].i.offset = target(p, dest(p, i)) - i;
915 }
916}
917
918
919static void optimizechoice (Instruction *p) {

Callers 2

fix_lFunction · 0.85
star_lFunction · 0.85

Calls 2

sizeiFunction · 0.85
targetFunction · 0.85

Tested by

no test coverage detected