add asin, asinf, asinh, asinhf
This commit is contained in:
parent
1ea320e6f6
commit
256df430f7
|
@ -18,3 +18,11 @@ pub mod acosf;
|
|||
pub mod acosh;
|
||||
#[path = "math/acoshf.rs"]
|
||||
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;
|
|
@ -1,6 +1,6 @@
|
|||
// SPDX-License-Identifier: MPL-2.0
|
||||
/*
|
||||
* File: src/math/acos.rs
|
||||
* File: src/math/acosf.rs
|
||||
*
|
||||
* The acosf function.
|
||||
*
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// SPDX-License-Identifier: MPL-2.0
|
||||
/*
|
||||
* File: src/math/acos.rs
|
||||
* File: src/math/acosh.rs
|
||||
*
|
||||
* The acosh function.
|
||||
*
|
||||
|
|
|
@ -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
14
src/math/asin.rs
Normal 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
14
src/math/asinf.rs
Normal 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
14
src/math/asinh.rs
Normal 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
14
src/math/asinhf.rs
Normal 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)
|
||||
}
|
Loading…
Reference in a new issue