diff --git a/src/lib.rs b/src/lib.rs index f61cec0..37dda4a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -57,4 +57,12 @@ pub mod cosf; #[path = "math/cosh.rs"] pub mod cosh; #[path = "math/coshf.rs"] -pub mod coshf; \ No newline at end of file +pub mod coshf; +#[path = "math/erf.rs"] +pub mod erf; +#[path = "math/erfc.rs"] +pub mod erfc; +#[path = "math/erfcf.rs"] +pub mod erfcf; +#[path = "math/erff.rs"] +pub mod erff; \ No newline at end of file diff --git a/src/math/erf.rs b/src/math/erf.rs new file mode 100644 index 0000000..9cbe6bd --- /dev/null +++ b/src/math/erf.rs @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: MPL-2.0 +/* + * File: src/math/erf.rs + * + * The erf function. + * + * Author: HTG-YT + * Copyright (c) 2021 The LibM Team of the HaruxOS Project + */ + +#[no_mangle] +pub extern "C" fn erf(x: f64) -> f64 { + libm::erf(x) +} \ No newline at end of file diff --git a/src/math/erfc.rs b/src/math/erfc.rs new file mode 100644 index 0000000..46189e8 --- /dev/null +++ b/src/math/erfc.rs @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: MPL-2.0 +/* + * File: src/math/erfc.rs + * + * The erfc function. + * + * Author: HTG-YT + * Copyright (c) 2021 The LibM Team of the HaruxOS Project + */ + +#[no_mangle] +pub extern "C" fn erfc(x: f64) -> f64 { + libm::erfc(x) +} \ No newline at end of file diff --git a/src/math/erfcf.rs b/src/math/erfcf.rs new file mode 100644 index 0000000..3ca0339 --- /dev/null +++ b/src/math/erfcf.rs @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: MPL-2.0 +/* + * File: src/math/erfcf.rs + * + * The erfcf function. + * + * Author: HTG-YT + * Copyright (c) 2021 The LibM Team of the HaruxOS Project + */ + +#[no_mangle] +pub extern "C" fn erfcf(x: f32) -> f32 { + libm::erfcf(x) +} \ No newline at end of file diff --git a/src/math/erff.rs b/src/math/erff.rs new file mode 100644 index 0000000..7dd2d46 --- /dev/null +++ b/src/math/erff.rs @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: MPL-2.0 +/* + * File: src/math/erff.rs + * + * The erff function. + * + * Author: HTG-YT + * Copyright (c) 2021 The LibM Team of the HaruxOS Project + */ + +#[no_mangle] +pub extern "C" fn erff(x: f32) -> f32 { + libm::erff(x) +} \ No newline at end of file