Skip to content

sqrt is provided for wasi but not wasm32-unknown-unknown #308

@Lokathor

Description

@Lokathor

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions