You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1234567 |
- package common
-
- // Abs returns the absolute value of x.
- func Abs(x int64) int64 {
- y := x >> 63
- return (x ^ y) - y
- }
|