atanh, atanhf

pull/1/head
HTG-YT 2021-08-06 23:38:39 +08:00
parent b93f6cabd2
commit 8fc81cf4cd
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)
}