You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now the list of no_mangle symbols for wasm32-unknown-unknown doesn't include sqrt. However, the wasi target does expose sqrt. Since a properly compiled sqrt on wasm32 of any type compiles down to a single wasm instruction, I'm not sure why sqrt is exposed for wasi and not for wasm32-unknown-unknown.
This same question applies to any other libm function that's part of wasi but not parts of wasm32-unknown-unknown, though there's so many libm functions i'm not sure of the full list at this time.