Please enter what you're looking for to continue your search
 

_mm256_set1_pch
ADD TO COMPARE ADDED TO COMPARE

 Intel 64-bit (64 bits)/ AVX512  View official documentation
 Location: Get-Set  >  Vector Duplicate Scalar to All Elements
 CPU Extensions: AVX512_FP16
Purpose:

Broadcast half-precision (16-bit) complex floating-point value "a" to all elements of "dst".

Result:

__m256h

Example:
#include <immintrin.h>
#include <stdio.h>
#include <complex.h>
int main() {
 _Float16 _Complex a = 2.5f + 1.5f * _Complex_I;
 __m256h result = _mm256_set1_pch(a);
 _Float16 _Complex output[8];
 _mm256_store_ph(output, result);
 for (int i = 0; i < 8; i++) {
   printf("(%f, %f) ", (float)__real__ output[i], (float)__imag__ output[i]);
  }
  printf("\n");

  return 0;
 }

Prototypes

Assembly Instruction:
SEQUENCE
Usage:
__m256h result = _mm256_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