Intel® C++ Compiler Classic Developer Guide and Reference

ID 767249
Date 12/16/2022
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

<span class='option'>_mm256_broadcast_ss, _mm_broadcast_ss</span>

Loads and broadcasts 256/128-bit scalar single-precision floating point values to a 256/128-bit destination operand. The corresponding Intel® AVX instruction is VBROADCASTSS.

Syntax

extern __m256 _mm256_broadcast_ss(float const *a);

extern __m128 _mm_broadcast_ss(float const *a);

Arguments

*a

pointer to a memory location that can hold constant 256-bit or 128-bit float32 values

Description

Loads scalar single-precision floating-point values from the specified address pointed to by a, and broadcasts it to elements in the destination vector.

The _m256_broadcast_ss intrinsic broadcasts the loaded values to all eight elements in the 256-bit destination vector.

The _mm_broadcast_ss intrinsic broadcasts the loaded values to all four elements in the 128-bit destination vector.

Returns

Result of the load and broadcast operation.