_mm_set1_pchADD TO COMPARE ADDED TO COMPARE
Intel 64-bit (64 bits)/ AVX512
View official documentation
Purpose:
Broadcast half-precision (16-bit) complex floating-point value "a" to all elements of "dst".
Result:
__m128h
Example:
#include <immintrin.h>
#include <complex.h>
#include <stdio.h>
int main() {
_Float16 _Complex a = 3.0f + 1.5f * I;
__m128h result = _mm_set1_pch(a);
_Float16 _Complex output[4];
_mm_store_ph(output, result);
for (int i = 0; i < 4; i++) {
printf("(%f, %f) ", (float)__real__ output[i], (float)__imag__ output[i]);
}
printf("\n");
return 0;
}
Prototypes
Assembly Instruction:
SEQUENCE
Usage:
__m128h result =
_mm_set1_pch(
float16_t a
)
SIMD Intrinsics Summary
| SIMD Engines: | 6 |
| C Intrinsics: | 10444 |
| NEON: | 4353 |
| AVX2: | 405 |
| AVX512: | 4717 |
| SSE4.2: | 598 |
| VSX: | 192 |
| IBM-Z: | 179 |