Skip to main content

core_math_sys/
binary128.rs

1//! Bindings to CORE-MATH binary128 (`__float128`) functions, handwritten
2//! because bindgen cannot yet emit the unstable `f128` primitive.
3
4unsafe extern "C" {
5    pub fn cr_acosq(x: f128) -> f128;
6    pub fn cr_asinq(x: f128) -> f128;
7    pub fn cr_atanq(x: f128) -> f128;
8    pub fn cr_atan2q(y: f128, x: f128) -> f128;
9    pub fn cr_cbrtq(x: f128) -> f128;
10    pub fn cr_cosq(x: f128) -> f128;
11    pub fn cr_expq(x: f128) -> f128;
12    pub fn cr_exp10q(x: f128) -> f128;
13    pub fn cr_exp2q(x: f128) -> f128;
14    pub fn cr_expm1q(x: f128) -> f128;
15    pub fn cr_hypotq(x: f128, y: f128) -> f128;
16    pub fn cr_logq(x: f128) -> f128;
17    pub fn cr_rsqrtq(x: f128) -> f128;
18    pub fn cr_sinq(x: f128) -> f128;
19    pub fn cr_sqrtq(x: f128) -> f128;
20}