Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CppCXY/EmmyLuaCodeStyle
/ times9
Function
times9
3rd/lua-5.4.3/src/lmathlib.c:415–417 ·
view source on GitHub ↗
return i * 9 */
Source
from the content-addressed store, hash-verified
413
414
/* return i * 9 */
415
static Rand64 times9 (Rand64 i) {
416
return Iadd(Ishl(i, 3), i); /* i * 9 == (i << 3) + i */
417
}
418
419
/* return
'i'
rotated left
'n'
bits */
420
static Rand64 rotl (Rand64 i, int n) {
Callers
1
nextrand
Function · 0.85
Calls
2
Iadd
Function · 0.85
Ishl
Function · 0.85
Tested by
no test coverage detected