MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / times9

Function times9

extlibs/lua/src/lmathlib.c:414–416  ·  view source on GitHub ↗

return i * 9 */

Source from the content-addressed store, hash-verified

412
413/* return i * 9 */
414static Rand64 times9 (Rand64 i) {
415 return Iadd(Ishl(i, 3), i); /* i * 9 == (i << 3) + i */
416}
417
418/* return 'i' rotated left 'n' bits */
419static Rand64 rotl (Rand64 i, int n) {

Callers 1

nextrandFunction · 0.85

Calls 2

IaddFunction · 0.85
IshlFunction · 0.85

Tested by

no test coverage detected