(val int)
| 220 | } |
| 221 | |
| 222 | func 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 | |
| 235 | func strCmp(s1, s2 string) int { |
| 236 | len1 := len(s1) |
no outgoing calls
no test coverage detected
searching dependent graphs…