This is a Go implementation of the fast inverse square root algorithm for fun (see wikipedia).
import "github.com/arccoza/go-fastinvsqrt"
fis.FastInvSqrt32(1.6)
fis.FastInvSqrt64(1.6)
Fast inverse square root in Go
This is a Go implementation of the fast inverse square root algorithm for fun (see wikipedia).
import "github.com/arccoza/go-fastinvsqrt"
fis.FastInvSqrt32(1.6)
fis.FastInvSqrt64(1.6)
Fast inverse square root in Go