_mm_set_epi64x
Microsoft Specific
Returns the __m128i structure with its two 64-bit integer values initialized to the values of the two 64-bit integers passed in.
__m128i _mm_set_epi64x(
__int64 i1
...__int64 i2
);
Parameters
- [in] i1
A 64-bit integer to place in the second position of the result.
- [in] i2
A 64-bit integer to place in the first position of the result.
Return Value
An __m128i structure containing two 64-bit integers composed of the input parameters.
Requirements
Intrinsic | Architecture |
---|---|
_mm_set_epi64x |
x64 |
Header file <intrin.h>
Remarks
Because the __m128i structure represents an XMM register, this intrinsic provides a way of writing values from system memory to the XMM registers.
This routine is only available as an intrinsic.
Example
// _mm_set_epi64x.cpp
// processor: x64
#include <intrin.h>
#include <stdio.h>
#pragma intrinsic(_mm_set_epi64x)
int main()
{
__m128i c;
__int64 a = 2, b = 54;
c = _mm_set_epi64x(a, b);
printf_s("%I64d %I64d\n", c.m128i_i64[0], c.m128i_i64[1]);
}
Output
54 2