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

_mm512_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:

__m512h

Example:
#include <immintrin.h>
#include <complex.h>
#include <stdio.h>
int main() {
 _Float16 _Complex a = 1.5f + 2.0f * I;
 __m512h result = _mm512_set1_pch(a);
 _Float16 _Complex output[32];
 _mm512_store_ph(output, result);
 for (int i = 0; i < 32; i++) {
   printf("(%f, %f) ", (float)__real__ output[i], (float)__imag__ output[i]);
  }
  printf("\n");

  return 0;
 }

Prototypes

Assembly Instruction:
SEQUENCE
Usage:
__m512h result = _mm512_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