(x uint64)
| 1742 | } |
| 1743 | |
| 1744 | func sovSql(x uint64) (n int) { |
| 1745 | for { |
| 1746 | n++ |
| 1747 | x >>= 7 |
| 1748 | if x == 0 { |
| 1749 | break |
| 1750 | } |
| 1751 | } |
| 1752 | return n |
| 1753 | } |
| 1754 | func sozSql(x uint64) (n int) { |
| 1755 | return sovSql(uint64((x << 1) ^ uint64((int64(x) >> 63)))) |
| 1756 | } |