Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Commit 55f0f16

Browse files
committed
chore: Make extern C
1 parent 09b9214 commit 55f0f16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/math/sqrtf.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const TINY: f32 = 1.0e-30;
1818

1919
#[inline]
2020
#[cfg_attr(all(test, assert_no_panic), no_panic::no_panic)]
21-
pub fn sqrtf(x: f32) -> f32 {
21+
pub extern "C" fn sqrtf(x: f32) -> f32 {
2222
use super::fdlibm::{FLT_UWORD_IS_FINITE, FLT_UWORD_IS_SUBNORMAL, FLT_UWORD_IS_ZERO};
2323
// On wasm32 we know that LLVM's intrinsic will compile to an optimized
2424
// `f32.sqrt` native instruction, so we can leverage this for both code size

0 commit comments

Comments
 (0)