diff --git a/src/lib.rs b/src/lib.rs index 56d7479..2f0c7f9 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -37,4 +37,12 @@ pub mod atanf; #[path = "math/atanh.rs"] pub mod atanh; #[path = "math/atanhf.rs"] -pub mod atanhf; \ No newline at end of file +pub mod atanhf; +#[path = "math/cbrt.rs"] +pub mod cbrt; +#[path = "math/cbrtf.rs"] +pub mod cbrtf; +#[path = "math/ceil.rs"] +pub mod ceil; +#[path = "math/ceilf.rs"] +pub mod ceilf; \ No newline at end of file diff --git a/src/math/cbrt.rs b/src/math/cbrt.rs new file mode 100644 index 0000000..0075004 --- /dev/null +++ b/src/math/cbrt.rs @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: MPL-2.0 +/* + * File: src/math/cbrt.rs + * + * The cbrt function. + * + * Author: HTG-YT + * Copyright (c) 2021 The LibM Team of the HaruxOS Project + */ + +#[no_mangle] +pub extern "C" fn cbrt(x: f64) -> f64 { + libm::cbrt(x) +} \ No newline at end of file diff --git a/src/math/cbrtf.rs b/src/math/cbrtf.rs new file mode 100644 index 0000000..25a3c45 --- /dev/null +++ b/src/math/cbrtf.rs @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: MPL-2.0 +/* + * File: src/math/cbrtf.rs + * + * The cbrtf function. + * + * Author: HTG-YT + * Copyright (c) 2021 The LibM Team of the HaruxOS Project + */ + +#[no_mangle] +pub extern "C" fn cbrtf(x: f32) -> f32 { + libm::cbrtf(x) +} \ No newline at end of file diff --git a/src/math/ceil.rs b/src/math/ceil.rs new file mode 100644 index 0000000..db838e7 --- /dev/null +++ b/src/math/ceil.rs @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: MPL-2.0 +/* + * File: src/math/ceil.rs + * + * The ceil function. + * + * Author: HTG-YT + * Copyright (c) 2021 The LibM Team of the HaruxOS Project + */ + +#[no_mangle] +pub extern "C" fn ceil(x: f64) -> f64 { + libm::ceil(x) +} \ No newline at end of file diff --git a/src/math/ceilf.rs b/src/math/ceilf.rs new file mode 100644 index 0000000..59fab7e --- /dev/null +++ b/src/math/ceilf.rs @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: MPL-2.0 +/* + * File: src/math/ceilf.rs + * + * The ceilf function. + * + * Author: HTG-YT + * Copyright (c) 2021 The LibM Team of the HaruxOS Project + */ + +#[no_mangle] +pub extern "C" fn ceilf(x: f32) -> f32 { + libm::ceilf(x) +} \ No newline at end of file