Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Collapse the table of content
Expand the table of content


Microsoft Specific

Generates the x64 extended form of the movd instruction, which copies a 64-bit value to a __m128i structure, which represents an XMM register.

__m128i _mm_cvtsi64x_si128( 
   __int64 value 

[in] value

A 64-bit integer value.

An __m128i structure containing as the first 64-bit element the input value.





Header file <intrin.h>

The __m128i structure represents an XMM register, so this intrinsic moves value from system memory into an XMM register.

This routine is only available as an intrinsic.

// _mm_cvtsi64x_si128.cpp
// processor: x64
#include <intrin.h>
#include <stdio.h>

#pragma intrinsic(_mm_cvtsi64x_si128)

int main()
    __m128i a;
    __int64 b = 54;

    a = _mm_cvtsi64x_si128(b);

    printf_s("%I64d\n", a.m128i_i64[0] );

Community Additions

© 2015 Microsoft