From 8382bc2e39689468fa1ab3d00177ec9675218930 Mon Sep 17 00:00:00 2001 From: Pavel Grigorenko Date: Sat, 1 Feb 2025 02:10:59 +0300 Subject: [PATCH] Expose erf{,c}{,f} from libm --- src/math.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/math.rs b/src/math.rs index da208239..21670f24 100644 --- a/src/math.rs +++ b/src/math.rs @@ -91,6 +91,11 @@ no_mangle! { fn fmod(x: f64, y: f64) -> f64; // `f32 % f32` fn fmodf(x: f32, y: f32) -> f32; + + fn erf(x: f64) -> f64; + fn erff(x: f32) -> f32; + fn erfc(x: f64) -> f64; + fn erfcf(x: f32) -> f32; } // allow for windows (and other targets)