TianoCore EDK2 master
Loading...
Searching...
No Matches
CompareMemWrapper.c
Go to the documentation of this file.
1
19#include "MemLibInternals.h"
20
43INTN
44EFIAPI
46 IN CONST VOID *DestinationBuffer,
47 IN CONST VOID *SourceBuffer,
48 IN UINTN Length
49 )
50{
51 if ((Length == 0) || (DestinationBuffer == SourceBuffer)) {
52 return 0;
53 }
54
55 ASSERT (DestinationBuffer != NULL);
56 ASSERT (SourceBuffer != NULL);
57 ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)DestinationBuffer));
58 ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)SourceBuffer));
59
60 return InternalMemCompareMem (DestinationBuffer, SourceBuffer, Length);
61}
UINT64 UINTN
INT64 INTN
#define MAX_ADDRESS
INTN EFIAPI CompareMem(IN CONST VOID *DestinationBuffer, IN CONST VOID *SourceBuffer, IN UINTN Length)
INTN EFIAPI InternalMemCompareMem(IN CONST VOID *DestinationBuffer, IN CONST VOID *SourceBuffer, IN UINTN Length)
#define NULL
Definition: Base.h:319
#define CONST
Definition: Base.h:259
#define IN
Definition: Base.h:279