diff options
| author | Andrew Kane <andrew@ankane.org> | 2023-07-31 07:41:50 -0700 |
|---|---|---|
| committer | Andrew Kane <andrew@ankane.org> | 2023-07-31 07:41:50 -0700 |
| commit | fcecaff16eeb3f11d84520d3ebcf9b762d0e48eb (patch) | |
| tree | a5e2e13c0b8e86363b32665174264e9f757c18bb /library/std/src/sys/unix/cmath.rs | |
| parent | a17c7968b727d8413801961fc4e89869b6ab00d3 (diff) | |
| download | rust-fcecaff16eeb3f11d84520d3ebcf9b762d0e48eb.tar.gz rust-fcecaff16eeb3f11d84520d3ebcf9b762d0e48eb.zip | |
Add gamma and ln_gamma functions to f32 and f64
Diffstat (limited to 'library/std/src/sys/unix/cmath.rs')
| -rw-r--r-- | library/std/src/sys/unix/cmath.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/library/std/src/sys/unix/cmath.rs b/library/std/src/sys/unix/cmath.rs index 2bf80d7a4cb..5346d229116 100644 --- a/library/std/src/sys/unix/cmath.rs +++ b/library/std/src/sys/unix/cmath.rs @@ -30,4 +30,8 @@ extern "C" { pub fn tanf(n: f32) -> f32; pub fn tanh(n: f64) -> f64; pub fn tanhf(n: f32) -> f32; + pub fn tgamma(n: f64) -> f64; + pub fn tgammaf(n: f32) -> f32; + pub fn lgamma_r(n: f64, s: &mut i32) -> f64; + pub fn lgammaf_r(n: f32, s: &mut i32) -> f32; } |
