MCPcopy Create free account
hub / github.com/PixarAnimationStudios/OpenSubdiv / fastMod4

Function fastMod4

opensubdiv/far/patchBuilder.cpp:42–44  ·  view source on GitHub ↗

Inline methods to encapsulate fast and specific modulus operations. The mod-4 case is trivial. For mod-N, since we are always doing the test (i + 1) % N, or (i - 1 + N) % N, the subtraction suffices.

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Calls

no outgoing calls

Tested by

no test coverage detected