golang unsigned shift, 无符号右移
‘golang unsigned shift, 无符号右移’ int32 转 uint32 再右移 https://stackoverflow.com/questions/33336336/go-perform-unsigned-shift-operation 1 2 3 4 5 6 func Test10(t *testing.T) { x1 := -100 result := uint32(x1) >> 2 fmt.Println(result) }