core::arch::x86_64::_mm_getmant_round_ss - Rust
Description: API documentation for the Rust `_mm_getmant_round_ss` fn in crate `core`.
Keywords: rust, rustlang, rust-lang, _mm_getmant_round_ss

# [−][src]Function core::arch::x86_64::_mm_getmant_round_ss

    pub unsafe fn _mm_getmant_round_ss(
        a: __m128,
        b: __m128,
        norm: _MM_MANTISSA_NORM_ENUM,
        sign: _MM_MANTISSA_SIGN_ENUM,
        sae: i32
    ) -> __m128

🔬 This is a nightly-only experimental API. (`stdsimd` #48556)
This is supported on x86-64 and target feature `avx512f` only.

Normalize the mantissas of the lower single-precision (32-bit) floating-point element in b, store the result in the lower element of dst, and copy the upper 3 packed elements from a to the upper elements of dst. This intrinsic essentially calculates ±(2^k)*|x.significand|, where k depends on the interval range defined by interv and the sign depends on sc and the source sign.
The mantissa is normalized to the interval specified by interv, which can take the following values:
_MM_MANT_NORM_1_2 // interval [1, 2)
_MM_MANT_NORM_p5_2 // interval [0.5, 2)
_MM_MANT_NORM_p5_1 // interval [0.5, 1)
_MM_MANT_NORM_p75_1p5 // interval [0.75, 1.5)
The sign is determined by sc which can take the following values:
_MM_MANT_SIGN_src // sign = sign(src)
_MM_MANT_SIGN_zero // sign = 0
_MM_MANT_SIGN_nan // dst = NaN if sign(src) = 1
Exceptions can be suppressed by passing _MM_FROUND_NO_EXC in the sae parameter.

Intel's documentation