cinrs-rt 0.1.0

The tiny no_std runtime the code cinrs generates links against: C's complex arithmetic, Annex G and all
Documentation
  • Coverage
  • 100%
    34 out of 34 items documented1 out of 33 items with examples
  • Size
  • Source code size: 39.7 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 771.0 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 3s Average build duration of successful builds.
  • all releases: 2s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • tanakh/cinrs
    31 1 3
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • tanakh

cinrs-rt

An implementation detail of cinrs — the crate that lets you write C inside Rust. Use that crate, which re-exports this one as cinrs::rt under its default complex feature.

There is exactly one thing in here: C's complex arithmetic. float _Complex and double _Complex are num_complex::Complex<f32> and Complex<f64>, and the multiplication and division C99 Annex G.5.1 describes — with the infinity recovery the naive formulas get wrong — live here rather than being written into every macro expansion. The crate is #![no_std], so having it costs a #![no_std] crate nothing. There is no stability promise for this API: it is versioned with cinrs and follows it.

Documentation: https://docs.rs/cinrs-rt.

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.