about summary refs log tree commit diff
path: root/library/compiler-builtins/libm/src/math/tgammaf.rs
blob: a63a2a31862c1798fc06d4d795003fb99f916794 (plain)
1
2
3
4
5
6
7
use super::tgamma;

/// The [Gamma function](https://en.wikipedia.org/wiki/Gamma_function) (f32).
#[cfg_attr(assert_no_panic, no_panic::no_panic)]
pub fn tgammaf(x: f32) -> f32 {
    tgamma(x as f64) as f32
}