- OUT VOID *DestinationBuffer,\r
- IN CONST VOID *SourceBuffer,\r
- IN UINTN Length\r
+ OUT VOID *DestinationBuffer,\r
+ IN CONST VOID *SourceBuffer,\r
+ IN UINTN Length\r
- volatile UINT8 *Destination8;\r
- CONST UINT8 *Source8;\r
- volatile UINT32 *Destination32;\r
- CONST UINT32 *Source32;\r
- volatile UINT64 *Destination64;\r
- CONST UINT64 *Source64;\r
- UINTN Alignment;\r
+ volatile UINT8 *Destination8;\r
+ CONST UINT8 *Source8;\r
+ volatile UINT32 *Destination32;\r
+ CONST UINT32 *Source32;\r
+ volatile UINT64 *Destination64;\r
+ CONST UINT64 *Source64;\r
+ UINTN Alignment;\r
\r
if ((((UINTN)DestinationBuffer & 0x7) == 0) && (((UINTN)SourceBuffer & 0x7) == 0) && (Length >= 8)) {\r
if (SourceBuffer > DestinationBuffer) {\r
\r
if ((((UINTN)DestinationBuffer & 0x7) == 0) && (((UINTN)SourceBuffer & 0x7) == 0) && (Length >= 8)) {\r
if (SourceBuffer > DestinationBuffer) {\r
while (Length-- != 0) {\r
*(Destination8++) = *(Source8++);\r
}\r
} else if (SourceBuffer < DestinationBuffer) {\r
while (Length-- != 0) {\r
*(Destination8++) = *(Source8++);\r
}\r
} else if (SourceBuffer < DestinationBuffer) {\r
- Destination64 = (UINT64*)((UINTN)DestinationBuffer + Length);\r
- Source64 = (CONST UINT64*)((UINTN)SourceBuffer + Length);\r
+ Destination64 = (UINT64 *)((UINTN)DestinationBuffer + Length);\r
+ Source64 = (CONST UINT64 *)((UINTN)SourceBuffer + Length);\r
\r
// Destination64 and Source64 were aligned on a 64-bit boundary\r
// but if length is not a multiple of 8 bytes then they won't be\r
\r
// Destination64 and Source64 were aligned on a 64-bit boundary\r
// but if length is not a multiple of 8 bytes then they won't be\r
}\r
}\r
} else if ((((UINTN)DestinationBuffer & 0x3) == 0) && (((UINTN)SourceBuffer & 0x3) == 0) && (Length >= 4)) {\r
if (SourceBuffer > DestinationBuffer) {\r
}\r
}\r
} else if ((((UINTN)DestinationBuffer & 0x3) == 0) && (((UINTN)SourceBuffer & 0x3) == 0) && (Length >= 4)) {\r
if (SourceBuffer > DestinationBuffer) {\r
while (Length-- != 0) {\r
*(Destination8++) = *(Source8++);\r
}\r
} else if (SourceBuffer < DestinationBuffer) {\r
while (Length-- != 0) {\r
*(Destination8++) = *(Source8++);\r
}\r
} else if (SourceBuffer < DestinationBuffer) {\r
- Destination32 = (UINT32*)((UINTN)DestinationBuffer + Length);\r
- Source32 = (CONST UINT32*)((UINTN)SourceBuffer + Length);\r
+ Destination32 = (UINT32 *)((UINTN)DestinationBuffer + Length);\r
+ Source32 = (CONST UINT32 *)((UINTN)SourceBuffer + Length);\r
\r
// Destination32 and Source32 were aligned on a 32-bit boundary\r
// but if length is not a multiple of 4 bytes then they won't be\r
\r
// Destination32 and Source32 were aligned on a 32-bit boundary\r
// but if length is not a multiple of 4 bytes then they won't be\r
while (Length-- != 0) {\r
*(Destination8++) = *(Source8++);\r
}\r
} else if (SourceBuffer < DestinationBuffer) {\r
while (Length-- != 0) {\r
*(Destination8++) = *(Source8++);\r
}\r
} else if (SourceBuffer < DestinationBuffer) {\r
- Destination8 = (UINT8*)DestinationBuffer + (Length - 1);\r
- Source8 = (CONST UINT8*)SourceBuffer + (Length - 1);\r
+ Destination8 = (UINT8 *)DestinationBuffer + (Length - 1);\r
+ Source8 = (CONST UINT8 *)SourceBuffer + (Length - 1);\r