atanh, atanhf

This commit is contained in:
HTG-YT 2021-08-06 23:38:39 +08:00
parent f83a7e6201
commit 52b3dec336
3 changed files with 33 additions and 1 deletions

View file

@ -33,4 +33,8 @@ pub mod atan2;
#[path = "math/atan2f.rs"]
pub mod atan2f;
#[path = "math/atanf.rs"]
pub mod atanf;
pub mod atanf;
#[path = "math/atanh.rs"]
pub mod atanh;
#[path = "math/atanhf.rs"]
pub mod atanhf;

14
src/math/atanh.rs Normal file
View file

@ -0,0 +1,14 @@
// SPDX-License-Identifier: MPL-2.0
/*
* File: src/math/atanh.rs
*
* The atanh function.
*
* Author: HTG-YT
* Copyright (c) 2021 The LibM Team of the HaruxOS Project
*/
#[no_mangle]
pub extern "C" fn atanh(x: f64) -> f64 {
libm::atanh(x)
}

14
src/math/atanhf.rs Normal file
View file

@ -0,0 +1,14 @@
// SPDX-License-Identifier: MPL-2.0
/*
* File: src/math/atanhf.rs
*
* The atanhf function.
*
* Author: HTG-YT
* Copyright (c) 2021 The LibM Team of the HaruxOS Project
*/
#[no_mangle]
pub extern "C" fn atanhf(x: f32) -> f32 {
libm::atanhf(x)
}