log2fix 0.1.0

no_std fixed-point base 2, e and 10 logarithm algorithm implementation
Documentation
  • Coverage
  • 42.86%
    3 out of 7 items documented0 out of 3 items with examples
  • Size
  • Source code size: 23.04 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 681.27 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • romixlab/log2fix
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • romixlab

API:

pub fn log2fix(x: u32, precision: usize) -> i32
pub fn logefix(x: u32, precision: usize) -> i32
pub fn log10fix(x: u32, precision: usize) -> i32

You can play around with a cli example:

cargo run --example cli

Based on https://github.com/dmoulding/log2fix C implementation.