add RemoveNode IndexNode method

This commit is contained in:
2019-12-23 00:43:25 +08:00
parent 9f8a971c2a
commit 88a20acf13
4 changed files with 19 additions and 17 deletions

View File

@@ -3,6 +3,7 @@ package utils
var bit = uint(32 << (^uint(0) >> 63))
var bitsub1 = bit - 1
// AbsInt
func AbsInt(n int) uint {
y := n >> bitsub1
return uint((n ^ y) - y)