diff --git a/Cargo.toml b/Cargo.toml index c13364e..ac20c9c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,9 +21,9 @@ rand = { version = "0.8.5", default-features = false, features = ["small_rng"] } [features] default = ["24bits", "50bits", "libm"] -# Enables the function versions with 50 bits of accuracy on 64 bit floats. +# Enables the function versions with 50 bits of accuracy on 64-bit floats. 50bits = [] -# Enables the function versions with 24 bits of accuracy on 64 bit floats, as well as the implementation on 32 bit floats. +# Enables the function versions with 24 bits of accuracy on 64-bit floats, as well as the implementation on 32-bit floats. 24bits = [] # Uses [Estrin's scheme](https://en.wikipedia.org/wiki/Estrin's_scheme) to evaluate the polynomials in the rational functions. # While this results in more assembly instructions, they are mostly independent of each other, diff --git a/src/lib.rs b/src/lib.rs index 825c3cb..a30afcc 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -71,10 +71,10 @@ assert_abs_diff_eq!(mln4, -f32::ln(4.0)); //! //! ## Features //! -//! `50bits` *(enabled by default)*: enables the function versions with 50 bits of accuracy on 64 bit floats. +//! `50bits` *(enabled by default)*: enables the function versions with 50 bits of accuracy on 64-bit floats. //! -//! `24bits` *(enabled by default)*: enables the function versions with 24 bits of accuracy on 64 bit floats, -//! as well as the implementation on 32 bit floats. +//! `24bits` *(enabled by default)*: enables the function versions with 24 bits of accuracy on 64-bit floats, +//! as well as the implementation on 32-bit floats. //! //! You can disable one of the above features to potentially save a little bit of binary size. //!