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