diff --git a/src/lib.rs b/src/lib.rs index b8a3b7d..d30ff6c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -17,4 +17,12 @@ pub mod acosf; #[path = "math/acosh.rs"] pub mod acosh; #[path = "math/acoshf.rs"] -pub mod acoshf; \ No newline at end of file +pub mod acoshf; +#[path = "math/asin.rs"] +pub mod asin; +#[path = "math/asinf.rs"] +pub mod asinf; +#[path = "math/asinh.rs"] +pub mod asinh; +#[path = "math/asinhf.rs"] +pub mod asinhf; \ No newline at end of file diff --git a/src/math/acosf.rs b/src/math/acosf.rs index 7175129..73ffbdd 100644 --- a/src/math/acosf.rs +++ b/src/math/acosf.rs @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MPL-2.0 /* - * File: src/math/acos.rs + * File: src/math/acosf.rs * * The acosf function. * diff --git a/src/math/acosh.rs b/src/math/acosh.rs index 7b23edb..1beb486 100644 --- a/src/math/acosh.rs +++ b/src/math/acosh.rs @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MPL-2.0 /* - * File: src/math/acos.rs + * File: src/math/acosh.rs * * The acosh function. * diff --git a/src/math/acoshf.rs b/src/math/acoshf.rs index 7320732..ea6099c 100644 --- a/src/math/acoshf.rs +++ b/src/math/acoshf.rs @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MPL-2.0 /* - * File: src/math/acos.rs + * File: src/math/acoshf.rs * * The acoshf function. * diff --git a/src/math/asin.rs b/src/math/asin.rs new file mode 100644 index 0000000..cceb374 --- /dev/null +++ b/src/math/asin.rs @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: MPL-2.0 +/* + * File: src/math/asin.rs + * + * The asin function. + * + * Author: HTG-YT + * Copyright (c) 2021 The LibM Team of the HaruxOS Project + */ + +#[no_mangle] +pub extern "C" fn asin(x: f64) -> f64 { + libm::asin(x) +} \ No newline at end of file diff --git a/src/math/asinf.rs b/src/math/asinf.rs new file mode 100644 index 0000000..48f1e9d --- /dev/null +++ b/src/math/asinf.rs @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: MPL-2.0 +/* + * File: src/math/asinf.rs + * + * The asinf function. + * + * Author: HTG-YT + * Copyright (c) 2021 The LibM Team of the HaruxOS Project + */ + +#[no_mangle] +pub extern "C" fn asinf(x: f32) -> f32 { + libm::asinf(x) +} \ No newline at end of file diff --git a/src/math/asinh.rs b/src/math/asinh.rs new file mode 100644 index 0000000..97c4870 --- /dev/null +++ b/src/math/asinh.rs @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: MPL-2.0 +/* + * File: src/math/asinh.rs + * + * The asinh function. + * + * Author: HTG-YT + * Copyright (c) 2021 The LibM Team of the HaruxOS Project + */ + +#[no_mangle] +pub extern "C" fn asinh(x: f64) -> f64 { + libm::asinh(x) +} \ No newline at end of file diff --git a/src/math/asinhf.rs b/src/math/asinhf.rs new file mode 100644 index 0000000..30f51fb --- /dev/null +++ b/src/math/asinhf.rs @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: MPL-2.0 +/* + * File: src/math/asinhf.rs + * + * The asinhf function. + * + * Author: HTG-YT + * Copyright (c) 2021 The LibM Team of the HaruxOS Project + */ + +#[no_mangle] +pub extern "C" fn asinhf(x: f32) -> f32 { + libm::asinhf(x) +} \ No newline at end of file