add copysign, copysignf
This commit is contained in:
parent
e846d98bad
commit
7d4270f800
|
@ -45,4 +45,8 @@ pub mod cbrtf;
|
||||||
#[path = "math/ceil.rs"]
|
#[path = "math/ceil.rs"]
|
||||||
pub mod ceil;
|
pub mod ceil;
|
||||||
#[path = "math/ceilf.rs"]
|
#[path = "math/ceilf.rs"]
|
||||||
pub mod ceilf;
|
pub mod ceilf;
|
||||||
|
#[path = "math/copysign.rs"]
|
||||||
|
pub mod copysign;
|
||||||
|
#[path = "math/copysignf.rs"]
|
||||||
|
pub mod copysignf;
|
14
src/math/copysign.rs
Normal file
14
src/math/copysign.rs
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
// SPDX-License-Identifier: MPL-2.0
|
||||||
|
/*
|
||||||
|
* File: src/math/copysign.rs
|
||||||
|
*
|
||||||
|
* The copysign function.
|
||||||
|
*
|
||||||
|
* Author: HTG-YT
|
||||||
|
* Copyright (c) 2021 The LibM Team of the HaruxOS Project
|
||||||
|
*/
|
||||||
|
|
||||||
|
#[no_mangle]
|
||||||
|
pub extern "C" fn copysign(x: f64, y: f64) -> f64 {
|
||||||
|
libm::copysign(x, y)
|
||||||
|
}
|
14
src/math/copysignf.rs
Normal file
14
src/math/copysignf.rs
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
// SPDX-License-Identifier: MPL-2.0
|
||||||
|
/*
|
||||||
|
* File: src/math/copysignf.rs
|
||||||
|
*
|
||||||
|
* The copysignf function.
|
||||||
|
*
|
||||||
|
* Author: HTG-YT
|
||||||
|
* Copyright (c) 2021 The LibM Team of the HaruxOS Project
|
||||||
|
*/
|
||||||
|
|
||||||
|
#[no_mangle]
|
||||||
|
pub extern "C" fn copysignf(x: f32, y: f32) -> f32 {
|
||||||
|
libm::copysignf(x, y)
|
||||||
|
}
|
Loading…
Reference in a new issue