add asin, asinf, asinh, asinhf

pull/1/head
HTG-YT 2021-08-06 23:24:53 +08:00
parent 005ed4e943
commit 7cf7237183
8 changed files with 68 additions and 4 deletions

View File

@ -17,4 +17,12 @@ pub mod acosf;
#[path = "math/acosh.rs"]
pub mod acosh;
#[path = "math/acoshf.rs"]
pub mod acoshf;
pub mod acoshf;
#[path = "math/asin.rs"]
pub mod asin;
#[path = "math/asinf.rs"]
pub mod asinf;
#[path = "math/asinh.rs"]
pub mod asinh;
#[path = "math/asinhf.rs"]
pub mod asinhf;

View File

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MPL-2.0
/*
* File: src/math/acos.rs
* File: src/math/acosf.rs
*
* The acosf function.
*

View File

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MPL-2.0
/*
* File: src/math/acos.rs
* File: src/math/acosh.rs
*
* The acosh function.
*

View File

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MPL-2.0
/*
* File: src/math/acos.rs
* File: src/math/acoshf.rs
*
* The acoshf function.
*

14
src/math/asin.rs Normal file
View File

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

14
src/math/asinf.rs Normal file
View File

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

14
src/math/asinh.rs Normal file
View File

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

14
src/math/asinhf.rs Normal file
View File

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