Added lgamma_r and lgammaf_r
This commit is contained in:
parent
3e59619de7
commit
59fb34e63a
1 changed files with 25 additions and 0 deletions
|
|
@ -86,6 +86,31 @@ no_mangle! {
|
|||
fn tanf(n: f32) -> f32;
|
||||
}
|
||||
|
||||
#[cfg(any(
|
||||
all(
|
||||
target_family = "wasm",
|
||||
target_os = "unknown",
|
||||
not(target_env = "wasi")
|
||||
),
|
||||
target_os = "xous",
|
||||
all(target_arch = "x86_64", target_os = "uefi"),
|
||||
all(target_arch = "xtensa", target_os = "none"),
|
||||
all(target_vendor = "fortanix", target_env = "sgx")
|
||||
))]
|
||||
intrinsics! {
|
||||
pub extern "C" fn lgamma_r(x: f64, s: &mut i32) -> f64 {
|
||||
let r = self::libm::lgamma_r(x);
|
||||
*s = r.1;
|
||||
r.0
|
||||
}
|
||||
|
||||
pub extern "C" fn lgammaf_r(x: f32, s: &mut i32) -> f32 {
|
||||
let r = self::libm::lgammaf_r(x);
|
||||
*s = r.1;
|
||||
r.0
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(any(
|
||||
target_os = "xous",
|
||||
target_os = "uefi",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue