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.