doc.rust-lang.org
pub fn _mm_scalef_round_sh(a: __m128h, b: __m128h, ROUNDING: i32) -> __m128h
Scale the packed single-precision (32-bit) floating-point elements in a using values from b, store the result in the lower element of dst, and copy the upper 7 packed elements from a to the upper elements of dst.
function
core
Stable since 1.94.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn _mm_scalef_ph(a: __m128h, b: __m128h) -> __m128h
Scale the packed half-precision (16-bit) floating-point elements in a using values from b, and store the results in dst.
function
core
Stable since 1.94.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn _mm_rsqrt_sh(a: __m128h, b: __m128h) -> __m128h
Compute the approximate reciprocal square root of the lower half-precision (16-bit) floating-point element in b, store the result in the lower element of dst, and copy the upper 7 packed elements from a to the upper elements of dst. The maximum relative error for this approximation is less than 1.5*2^-12.
function
core
Stable since 1.94.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn _mm_rsqrt_ph(a: __m128h) -> __m128h
Compute the approximate reciprocal square root of packed half-precision (16-bit) floating-point elements in a, and store the results in dst. The maximum relative error for this approximation is less than 1.5*2^-12.
function
core
Stable since 1.94.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn _mm_roundscale_sh(a: __m128h, b: __m128h, IMM8: i32) -> __m128h
Round the lower half-precision (16-bit) floating-point element in b to the number of fraction bits specified by imm8, store the result in the lower element of dst, and copy the upper 7 packed elements from a to the upper elements of dst.
function
core
Stable since 1.94.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn _mm_roundscale_round_sh(a: __m128h, b: __m128h, IMM8: i32, SAE: i32) -> __m128h
Round the lower half-precision (16-bit) floating-point element in b to the number of fraction bits specified by imm8, store the result in the lower element of dst, and copy the upper 7 packed elements from a to the upper elements of dst.
function
core
Stable since 1.94.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn _mm_roundscale_ph(a: __m128h, IMM8: i32) -> __m128h
Round packed half-precision (16-bit) floating-point elements in a to the number of fraction bits specified by imm8, and store the results in dst.
function
core
Stable since 1.94.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn _mm_reduce_sh(a: __m128h, b: __m128h, IMM8: i32) -> __m128h
Extract the reduced argument of the lower half-precision (16-bit) floating-point element in b by the number of bits specified by imm8, store the result in the lower element of dst, and copy the upper 7 packed elements from a to the upper elements of dst.
function
core
Stable since 1.94.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn _mm_reduce_round_sh(a: __m128h, b: __m128h, IMM8: i32, SAE: i32) -> __m128h
Extract the reduced argument of the lower half-precision (16-bit) floating-point element in b by the number of bits specified by imm8, store the result in the lower element of dst, and copy the upper 7 packed elements from a to the upper elements of dst.
function
core
Stable since 1.94.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn _mm_reduce_ph(a: __m128h, IMM8: i32) -> __m128h
Extract the reduced argument of packed half-precision (16-bit) floating-point elements in a by the number of bits specified by imm8, and store the results in dst.
function
core
Stable since 1.94.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn _mm_rcp_sh(a: __m128h, b: __m128h) -> __m128h
Compute the approximate reciprocal of the lower half-precision (16-bit) floating-point element in b, store the result in the lower element of dst, and copy the upper 7 packed elements from a to the upper elements of dst. The maximum relative error for this approximation is less than 1.5*2^-12.
function
core
Stable since 1.94.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn _mm_rcp_ph(a: __m128h) -> __m128h
Compute the approximate reciprocal of packed 16-bit floating-point elements in a and stores the results in dst. The maximum relative error for this approximation is less than 1.5*2^-12.
function
core
Stable since 1.94.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn _mm_permutexvar_ph(idx: __m128i, a: __m128h) -> __m128h
Shuffle half-precision (16-bit) floating-point elements in a using the corresponding index in idx, and store the results in dst.
function
core
Stable since 1.94.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn _mm_permutex2var_ph(a: __m128h, idx: __m128i, b: __m128h) -> __m128h
Shuffle half-precision (16-bit) floating-point elements in a and b using the corresponding selector and index in idx, and store the results in dst.
function
core
Stable since 1.94.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn _mm_mul_sh(a: __m128h, b: __m128h) -> __m128h
Multiply the lower half-precision (16-bit) floating-point elements in a and b, store the result in the lower element of dst, and copy the upper 7 packed elements from a to the upper elements of dst.
function
core
Stable since 1.94.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn _mm_mul_sch(a: __m128h, b: __m128h) -> __m128h
Multiply the lower complex numbers in a and b, and store the result in the lower elements of dst, and copy the upper 6 packed elements from a to the upper elements of dst. Each complex number is composed of two adjacent half-precision (16-bit) floating-point elements, which defines the complex number complex = vec.fp16[0] + i * vec.fp16[1].
function
core
Stable since 1.94.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn _mm_mul_round_sh(a: __m128h, b: __m128h, ROUNDING: i32) -> __m128h
Multiply the lower half-precision (16-bit) floating-point elements in a and b, store the result in the lower element of dst, and copy the upper 7 packed elements from a to the upper elements of dst. Rounding is done according to the rounding parameter, which can be one of:
function
core
Stable since 1.94.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn _mm_mul_round_sch(a: __m128h, b: __m128h, ROUNDING: i32) -> __m128h
Multiply the lower complex numbers in a and b, and store the result in the lower elements of dst, and copy the upper 6 packed elements from a to the upper elements of dst. Each complex number is composed of two adjacent half-precision (16-bit) floating-point elements, which defines the complex number complex = vec.fp16[0] + i * vec.fp16[1].
function
core
Stable since 1.94.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn _mm_mul_ph(a: __m128h, b: __m128h) -> __m128h
Multiply packed half-precision (16-bit) floating-point elements in a and b, and store the results in dst.
function
core
Stable since 1.94.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn _mm_mul_pch(a: __m128h, b: __m128h) -> __m128h
Multiply packed complex numbers in a and b, and store the results in dst. Each complex number is composed of two adjacent half-precision (16-bit) floating-point elements, which defines the complex number complex = vec.fp16[0] + i * vec.fp16[1].
function
core
Stable since 1.94.0
Version 1.100.0-nightly