MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/OpenShadingLanguage / ri_LP

Method ri_LP

src/testrender/sampling.h:258–264  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

256 }
257
258 static inline uint32_t ri_LP(uint32_t i) {
259 uint32_t r = 0;
260 for (uint32_t v = 1U << 31; i; i >>= 1, v |= v >> 1)
261 if (i & 1)
262 r ^= v;
263 return r;
264 }
265
266 static inline uint32_t ri_LP_inv(uint32_t i) {
267 uint32_t r = 0;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected