2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS Run-Time Library
4 * PURPOSE: Memory functions for amd64
5 * FILE: lib/rtl/i386/rtlswap.S
6 * PROGRAMER: Timo Kreuzer (timo.kreuzer@reactos.org)
9 /* INCLUDES ******************************************************************/
11 #include <reactos/asm.h>
12 #include <ndk/amd64/asm.h>
14 /* FUNCTIONS *****************************************************************/
20 * IN CONST VOID *Source1, <rcx>
21 * IN CONST VOID *Source2, <rdx>
22 * IN SIZE_T Length <r8>
25 .proc RtlCompareMemory
34 /* Setup registers for compare */
38 /* Clear direction flag */
41 /* Get number of qwords */
61 /* Return the full count */
66 /* Not equal after comparing qwords */
67 /* Compare the last qword */
74 /* Not equal after comparing bytes */
75 /* Return difference */
81 /* Cleanup and return */
85 .endp RtlCompareMemory