]> git.proxmox.com Git - rustc.git/blame - library/std/src/sys/unix/cmath.rs
New upstream version 1.71.1+dfsg1
[rustc.git] / library / std / src / sys / unix / cmath.rs
CommitLineData
abe05a73
XL
1#![cfg(not(test))]
2
cdc7bbd5
XL
3// These symbols are all defined by `libm`,
4// or by `compiler-builtins` on unsupported platforms.
abe05a73 5
60c5eb7d 6extern "C" {
cdc7bbd5
XL
7 pub fn acos(n: f64) -> f64;
8 pub fn acosf(n: f32) -> f32;
9 pub fn asin(n: f64) -> f64;
10 pub fn asinf(n: f32) -> f32;
11 pub fn atan(n: f64) -> f64;
12 pub fn atan2(a: f64, b: f64) -> f64;
13 pub fn atan2f(a: f32, b: f32) -> f32;
14 pub fn atanf(n: f32) -> f32;
15 pub fn cbrt(n: f64) -> f64;
16 pub fn cbrtf(n: f32) -> f32;
17 pub fn cosh(n: f64) -> f64;
18 pub fn coshf(n: f32) -> f32;
19 pub fn expm1(n: f64) -> f64;
20 pub fn expm1f(n: f32) -> f32;
21 pub fn fdim(a: f64, b: f64) -> f64;
22 pub fn fdimf(a: f32, b: f32) -> f32;
23 pub fn hypot(x: f64, y: f64) -> f64;
24 pub fn hypotf(x: f32, y: f32) -> f32;
25 pub fn log1p(n: f64) -> f64;
26 pub fn log1pf(n: f32) -> f32;
27 pub fn sinh(n: f64) -> f64;
28 pub fn sinhf(n: f32) -> f32;
29 pub fn tan(n: f64) -> f64;
30 pub fn tanf(n: f32) -> f32;
31 pub fn tanh(n: f64) -> f64;
32 pub fn tanhf(n: f32) -> f32;
abe05a73 33}