MCPcopy Create free account
hub / github.com/yuin/gopher-lua / int2Fb

Function int2Fb

utils.go:222–233  ·  view source on GitHub ↗
(val int)

Source from the content-addressed store, hash-verified

220}
221
222func int2Fb(val int) int {
223 e := 0
224 x := val
225 for x >= 16 {
226 x = (x + 1) >> 1
227 e++
228 }
229 if x < 8 {
230 return x
231 }
232 return ((e + 1) << 3) | (x - 8)
233}
234
235func strCmp(s1, s2 string) int {
236 len1 := len(s1)

Callers 1

compileTableExprFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…