fastmaths 0.1.0

High-performance no_std math routines targeting glibc parity and strict f64 accuracy.
Documentation
1
2
3
4
5
6
7
8
9
//! cos(x) implementation.
//!
//! Thin wrapper around the shared trig range reducer in trig.rs. Uses kernel
//! polynomials on |x|≤pi/4 with Payne–Hanek reduction for huge arguments.

#[inline(always)]
pub fn cos(x: f64) -> f64 {
    super::trig::cos(x)
}