add j0, j0f, j1, j1f, jn, jnf functions

pull/1/head
HTG-YT 2021-08-07 16:13:42 +08:00
parent de0bc1436b
commit 99c9dde1d9
7 changed files with 97 additions and 1 deletions

View File

@ -121,4 +121,16 @@ pub mod hypotf;
#[path = "math/ilogb.rs"]
pub mod ilogb;
#[path = "math/ilogbf.rs"]
pub mod ilogbf;
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
View 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
View 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
View 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
View 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
View 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
View 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)
}