go-abs icon indicating copy to clipboard operation
go-abs copied to clipboard

Go implementations of the abs function for int64

abs

Package abs provides multiple implementations of the abs function, to compute the absolute value of a signed, 64-bit integer.

This package complements the following article, which compares each implementation:

http://cavaliercoder.com/blog/optimized-abs-for-int64-in-go.html