f32_sqrt in core::arch::wasm32 - Rust
Description: Generates the `f32.sqrt` instruction, returning the square root of the number `a`.

Skip to main content

## f32_sqrt

# Function f32_sqrt

Source

    pub fn f32_sqrt(a: f32) -> f32

🔬This is a nightly-only experimental API. (`wasm_numeric_instr` #133908)
Available on `target_family=wasm` and WebAssembly only.
Expand description

Generates the `f32.sqrt` instruction, returning the square root of the number `a`.

This method is useful when targeting `no_std` and is equivalent to `std::f32::sqrt()`.