add j0, j0f, j1, j1f, jn, jnf functions
This commit is contained in:
parent
8d6b891ddd
commit
ee94a462f8
12
src/lib.rs
12
src/lib.rs
|
@ -122,3 +122,15 @@ pub mod hypotf;
|
|||
pub mod ilogb;
|
||||
#[path = "math/ilogbf.rs"]
|
||||
pub mod ilogbf;
|
||||
#[path = "math/j0.rs"]
|
||||
pub mod j0;
|
||||
#[path = "math/j0f.rs"]
|
||||
pub mod j0f;
|
||||
#[path = "math/j1.rs"]
|
||||
pub mod j1;
|
||||
#[path = "math/j1f.rs"]
|
||||
pub mod j1f;
|
||||
#[path = "math/jn.rs"]
|
||||
pub mod jn;
|
||||
#[path = "math/jnf.rs"]
|
||||
pub mod jnf;
|
14
src/math/j0.rs
Normal file
14
src/math/j0.rs
Normal file
|
@ -0,0 +1,14 @@
|
|||
// SPDX-License-Identifier: MPL-2.0
|
||||
/*
|
||||
* File: src/math/j0.rs
|
||||
*
|
||||
* The j0 function.
|
||||
*
|
||||
* Author: HTG-YT
|
||||
* Copyright (c) 2021 The LibM Team of the HaruxOS Project
|
||||
*/
|
||||
|
||||
#[no_mangle]
|
||||
pub extern "C" fn j0(x: f64) -> f64 {
|
||||
libm::j0(x)
|
||||
}
|
14
src/math/j0f.rs
Normal file
14
src/math/j0f.rs
Normal file
|
@ -0,0 +1,14 @@
|
|||
// SPDX-License-Identifier: MPL-2.0
|
||||
/*
|
||||
* File: src/math/j0f.rs
|
||||
*
|
||||
* The j0f function.
|
||||
*
|
||||
* Author: HTG-YT
|
||||
* Copyright (c) 2021 The LibM Team of the HaruxOS Project
|
||||
*/
|
||||
|
||||
#[no_mangle]
|
||||
pub extern "C" fn j0f(x: f32) -> f32 {
|
||||
libm::j0f(x)
|
||||
}
|
14
src/math/j1.rs
Normal file
14
src/math/j1.rs
Normal file
|
@ -0,0 +1,14 @@
|
|||
// SPDX-License-Identifier: MPL-2.0
|
||||
/*
|
||||
* File: src/math/j1.rs
|
||||
*
|
||||
* The j1 function.
|
||||
*
|
||||
* Author: HTG-YT
|
||||
* Copyright (c) 2021 The LibM Team of the HaruxOS Project
|
||||
*/
|
||||
|
||||
#[no_mangle]
|
||||
pub extern "C" fn j1(x: f64) -> f64 {
|
||||
libm::j1(x)
|
||||
}
|
14
src/math/j1f.rs
Normal file
14
src/math/j1f.rs
Normal file
|
@ -0,0 +1,14 @@
|
|||
// SPDX-License-Identifier: MPL-2.0
|
||||
/*
|
||||
* File: src/math/j1f.rs
|
||||
*
|
||||
* The j1f function.
|
||||
*
|
||||
* Author: HTG-YT
|
||||
* Copyright (c) 2021 The LibM Team of the HaruxOS Project
|
||||
*/
|
||||
|
||||
#[no_mangle]
|
||||
pub extern "C" fn j1f(x: f32) -> f32 {
|
||||
libm::j1f(x)
|
||||
}
|
14
src/math/jn.rs
Normal file
14
src/math/jn.rs
Normal file
|
@ -0,0 +1,14 @@
|
|||
// SPDX-License-Identifier: MPL-2.0
|
||||
/*
|
||||
* File: src/math/jn.rs
|
||||
*
|
||||
* The jn function.
|
||||
*
|
||||
* Author: HTG-YT
|
||||
* Copyright (c) 2021 The LibM Team of the HaruxOS Project
|
||||
*/
|
||||
|
||||
#[no_mangle]
|
||||
pub extern "C" fn jn(n: i32, x: f64) -> f64 {
|
||||
libm::jn(n, x)
|
||||
}
|
14
src/math/jnf.rs
Normal file
14
src/math/jnf.rs
Normal file
|
@ -0,0 +1,14 @@
|
|||
// SPDX-License-Identifier: MPL-2.0
|
||||
/*
|
||||
* File: src/math/jnf.rs
|
||||
*
|
||||
* The jnf function.
|
||||
*
|
||||
* Author: HTG-YT
|
||||
* Copyright (c) 2021 The LibM Team of the HaruxOS Project
|
||||
*/
|
||||
|
||||
#[no_mangle]
|
||||
pub extern "C" fn jn(n: i32, x: f32) -> f32 {
|
||||
libm::jnf(n, x)
|
||||
}
|
Loading…
Reference in a new issue