core-math-sys 1.2.0

Generate bindings to CORE-MATH
Documentation
1
2
3
4
5
6
7
8
9
10
#![cfg(feature = "f128")]
#![feature(f128)]

#[test]
fn sanity() {
    assert!(unsafe { core_math_sys::cr_expq(0.0) }.eq(&1.0));
    assert!(unsafe { core_math_sys::cr_sqrtq(4.0) }.eq(&2.0));
    assert!(unsafe { core_math_sys::cr_hypotq(3.0, 4.0) }.eq(&5.0));
    assert!(unsafe { core_math_sys::cr_atan2q(0.0, 1.0) }.eq(&0.0));
}