1// These symbols are all defined by `libm`,
2// or by `compiler-builtins` on unsupported platforms.
3
4extern "C" {
5 pub fn acos(n: f64) -> f64;
6 pub fn acosf(n: f32) -> f32;
7 pub fn asin(n: f64) -> f64;
8 pub fn asinf(n: f32) -> f32;
9 pub fn atan(n: f64) -> f64;
10 pub fn atan2(a: f64, b: f64) -> f64;
11 pub fn atan2f(a: f32, b: f32) -> f32;
12 pub fn atanf(n: f32) -> f32;
13 pub fn cbrt(n: f64) -> f64;
14 pub fn cbrtf(n: f32) -> f32;
15 pub fn cosh(n: f64) -> f64;
16 pub fn coshf(n: f32) -> f32;
17 pub fn expm1(n: f64) -> f64;
18 pub fn expm1f(n: f32) -> f32;
19 pub fn fdim(a: f64, b: f64) -> f64;
20 pub fn fdimf(a: f32, b: f32) -> f32;
21 pub fn hypot(x: f64, y: f64) -> f64;
22 pub fn hypotf(x: f32, y: f32) -> f32;
23 pub fn log1p(n: f64) -> f64;
24 pub fn log1pf(n: f32) -> f32;
25 pub fn sinh(n: f64) -> f64;
26 pub fn sinhf(n: f32) -> f32;
27 pub fn tan(n: f64) -> f64;
28 pub fn tanf(n: f32) -> f32;
29 pub fn tanh(n: f64) -> f64;
30 pub fn tanhf(n: f32) -> f32;
31 pub fn tgamma(n: f64) -> f64;
32 pub fn tgammaf(n: f32) -> f32;
33 pub fn lgamma_r(n: f64, s: &mut i32) -> f64;
34 pub fn lgammaf_r(n: f32, s: &mut i32) -> f32;
35}
36