about summary refs log tree commit diff
path: root/library/std/src/sys/unix/cmath.rs
diff options
context:
space:
mode:
authorAndrew Kane <andrew@ankane.org>2023-07-31 07:41:50 -0700
committerAndrew Kane <andrew@ankane.org>2023-07-31 07:41:50 -0700
commitfcecaff16eeb3f11d84520d3ebcf9b762d0e48eb (patch)
treea5e2e13c0b8e86363b32665174264e9f757c18bb /library/std/src/sys/unix/cmath.rs
parenta17c7968b727d8413801961fc4e89869b6ab00d3 (diff)
downloadrust-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.rs4
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;
 }