MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / prev

Function prev

Source/ThirdParty/recastnavigation/RecastMesh.cpp:163–163  ·  view source on GitHub ↗

Last time I checked the if version got compiled using cmov, which was a lot faster than module (with idiv).

Source from the content-addressed store, hash-verified

161
162// Last time I checked the if version got compiled using cmov, which was a lot faster than module (with idiv).
163inline int prev(int i, int n) { return i-1 >= 0 ? i-1 : n-1; }
164inline int next(int i, int n) { return i+1 < n ? i+1 : 0; }
165
166inline int area2(const int* a, const int* b, const int* c)

Callers 3

inConeFunction · 0.70
inConeLooseFunction · 0.70
triangulateFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected