crlibm

Crates.iocrlibm
lib.rscrlibm
version0.2.0
sourcesrc
created_at2022-01-02 11:51:34.128193
updated_at2024-07-27 13:55:42.231099
descriptionBinding to CRlibm, a correctly rounded math lib
homepagehttps://github.com/Chris00/rust-crlibm
repositoryhttps://github.com/Chris00/rust-crlibm
max_upload_size
id506509
size2,234,337
Galant Damien (damien-gal)

documentation

https://docs.rs/crlibm

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.

Note that the C code of CRlibm is mature but superseded by MetaLibm (repository) and will therefore not receive updates.

Example

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.

Commit count: 20

cargo fmt