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

Function rotate

other_src/lua/src/lpeg.cpp:852–856  ·  view source on GitHub ↗

** rotate array slice p[0]-p[e] (both inclusive) 'n' steps ** to the 'left' */

Source from the content-addressed store, hash-verified

850** to the 'left'
851*/
852static void rotate (Instruction *p, int e, int n) {
853 invert(p, n - 1);
854 invert(p + n, e - n);
855 invert(p, e);
856}
857
858
859#define op_step(p) ((p)->i.code == IAny ? (p)->i.aux : 1)

Callers 2

optimizecapturesFunction · 0.85
optimizechoiceFunction · 0.85

Calls 1

invertFunction · 0.85

Tested by

no test coverage detected