Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chris00/rust-crlibm
Rust binding to CRlibm, a correctly rounded math lib
https://github.com/chris00/rust-crlibm
mathematical-functions mathematics rounding
Last synced: 3 months ago
JSON representation
Rust binding to CRlibm, a correctly rounded math lib
- Host: GitHub
- URL: https://github.com/chris00/rust-crlibm
- Owner: Chris00
- Created: 2021-12-19T19:59:30.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2024-07-27T13:53:39.000Z (6 months ago)
- Last Synced: 2024-10-12T13:51:30.202Z (3 months ago)
- Topics: mathematical-functions, mathematics, rounding
- Language: C
- Homepage:
- Size: 2.25 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Crlibm
======This crate is a binding to [CRlibm][], an efficient and proved
correctly-rounded mathematical library.
For the user convenience, this module embeds the relevant C code from
the [CRlibm Git repository][crlibm-git].Note that the C code of CRlibm is mature but superseded by
[MetaLibm][] ([repository][MetaLibm-git]) and will therefore not
receive updates.## Example
```rust
use crlibm::*;
let x = sinpi_rd(2.);
let y = sinpi_rn(2.);
let z = sinpi_ru(2.);
```## Features
Be default, the crate uses portable implementations of the logarithm.
The feature `log_double_extended` enables implementations optimized
for processors with double-extended hardware (if in addition the
correct platform is detected). These versions may not be faster.[CRlibm]: https://web.archive.org/web/20161027224938/http://lipforge.ens-lyon.fr/www/crlibm
[crlibm-git]: https://scm.gforge.inria.fr/anonscm/git/metalibm/crlibm.git
[MetaLibm]: http://www.metalibm.org/
[MetaLibm-git]: https://github.com/metalibm/metalibm