Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

__movsq

Microsoft Specific

Generates a repeated Move String (rep movsq) instruction.


void __movsq( 
   unsigned char* Dest, 
   unsigned char* Source, 
   size_t Count 
);

Parameters

[out] Dest

The destination of the operation.

[in] Source

The source of the operation.

[in] Count

The number of quadwords to copy.

Intrinsic Architecture

__movsq

x64

Header file <intrin.h>

The result is that the first Count quadwords pointed to by Source are copied to the Dest string.

This routine is only available as an intrinsic.

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

#pragma intrinsic(__movsq)

int main()
{
    unsigned __int64 a1[10];
    unsigned __int64 a2[10] = {950, 850, 750, 650, 550, 450, 350, 250,
                               150, 50};
    __movsq(a1, a2, 10);

    for (int i = 0; i < 10; i++)
       printf_s("%d ", a1[i]);
    printf_s("\n");
}

Output

950 850 750 650 550 450 350 250 150 50 
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.