Crates.io | crlibm |
lib.rs | crlibm |
version | 0.2.0 |
source | src |
created_at | 2022-01-02 11:51:34.128193 |
updated_at | 2024-07-27 13:55:42.231099 |
description | Binding to CRlibm, a correctly rounded math lib |
homepage | https://github.com/Chris00/rust-crlibm |
repository | https://github.com/Chris00/rust-crlibm |
max_upload_size | |
id | 506509 |
size | 2,234,337 |
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.
use crlibm::*;
let x = sinpi_rd(2.);
let y = sinpi_rn(2.);
let z = sinpi_ru(2.);
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.