diff --git a/src/lib.rs b/src/lib.rs index 35ff003..76d9ac6 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -77,4 +77,8 @@ pub mod exp10; #[path = "math/exp10f.rs"] pub mod exp10f; #[path = "math/expf.rs"] -pub mod expf; \ No newline at end of file +pub mod expf; +#[path = "math/expm1.rs"] +pub mod expm1; +#[path = "math/expm1f.rs"] +pub mod expm1f; \ No newline at end of file diff --git a/src/math/expm1.rs b/src/math/expm1.rs new file mode 100644 index 0000000..84044cd --- /dev/null +++ b/src/math/expm1.rs @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: MPL-2.0 +/* + * File: src/math/expm1.rs + * + * The expm1 function. + * + * Author: HTG-YT + * Copyright (c) 2021 The LibM Team of the HaruxOS Project + */ + +#[no_mangle] +pub extern "C" fn expm1(x: f64) -> f64 { + libm::expm1(x) +} \ No newline at end of file diff --git a/src/math/expm1f.rs b/src/math/expm1f.rs new file mode 100644 index 0000000..03074a7 --- /dev/null +++ b/src/math/expm1f.rs @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: MPL-2.0 +/* + * File: src/math/expm1f.rs + * + * The expm1f function. + * + * Author: HTG-YT + * Copyright (c) 2021 The LibM Team of the HaruxOS Project + */ + +#[no_mangle] +pub extern "C" fn expm1f(x: f32) -> f32 { + libm::expm1f(x) +} \ No newline at end of file