memo_int_sqrt

Crates.iomemo_int_sqrt
lib.rsmemo_int_sqrt
version0.1.1
sourcesrc
created_at2019-02-04 21:28:31.783537
updated_at2019-02-05 21:58:33.326594
descriptionMemoized square root and inverse square root for integers
homepagehttps://github.com/stevebob/memo-int-sqrt.git
repositoryhttps://github.com/stevebob/memo-int-sqrt.git
max_upload_size
id112765
size9,204
Stephen Sherratt (gridbugs)

documentation

https://docs.rs/memo_int_sqrt

README

memo_int_sqrt

Definitely run the benchmarks before using this. In my benchmarking, I found that for f32s, .sqrt().recip() is often faster than using the lookup table. For f64s, the lookup table is faster for inverse squareroot, but not for squareroot.

Commit count: 5

cargo fmt