_mm_set_pd1ADD TO COMPARE ADDED TO COMPARE
Intel 64-bit (64 bits)/ SSE4.2
View official documentation
Purpose:
Broadcast double-precision (64-bit) floating-point value "a" to all elements of "dst".
Result:
__m128d
Example:
#include <emmintrin.h>
#include <stdio.h>
int main() {
__m128d r = _mm_set_pd1(3.14);
double out[2];
_mm_storeu_pd(out, r);
for(int i = 0; i < 2; i++)
printf("%f ", out[i]);
printf("\n");
return 0;
}
Prototypes
Assembly Instruction:
SEQUENCE
Usage:
__m128d result =
_mm_set_pd1(
double a
)
SIMD Intrinsics Summary
| SIMD Engines: | 6 |
| C Intrinsics: | 10444 |
| NEON: | 4353 |
| AVX2: | 405 |
| AVX512: | 4717 |
| SSE4.2: | 598 |
| VSX: | 192 |
| IBM-Z: | 179 |