If all Length bytes of the two buffers are identical, then 0 is returned. Otherwise, the\r
value returned is the first mismatched byte in SourceBuffer subtracted from the first\r
mismatched byte in DestinationBuffer.\r
- If Length > 0 and DestinationBuffer is NULL and Length > 0, then ASSERT().\r
- If Length > 0 and SourceBuffer is NULL and Length > 0, then ASSERT().\r
+ If Length > 0 and DestinationBuffer is NULL, then ASSERT().\r
+ If Length > 0 and SourceBuffer is NULL, then ASSERT().\r
If Length is greater than (MAX_ADDRESS - DestinationBuffer + 1), then ASSERT().\r
If Length is greater than (MAX_ADDRESS - SourceBuffer + 1), then ASSERT().\r
\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following IoLib instances share the same version of this file:\r
+ The following IoLib instances contain the same copy of this file:\r
\r
BaseIoLibIntrinsic\r
DxeIoLibCpuIo\r
IN UINTN Length\r
)\r
{\r
- if (0 == Length) {\r
+ if (Length == 0) {\r
return 0;\r
}\r
\r
{\r
CHAR8 *ReturnValue;\r
\r
- if (0 == Length) {\r
+ if (Length == 0) {\r
return Destination;\r
}\r
\r
IN UINTN Length\r
)\r
{\r
- if (0 == Length) {\r
+ if (Length == 0) {\r
return 0;\r
}\r
\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
If all Length bytes of the two buffers are identical, then 0 is returned. Otherwise, the\r
value returned is the first mismatched byte in SourceBuffer subtracted from the first\r
mismatched byte in DestinationBuffer.\r
- If Length > 0 and DestinationBuffer is NULL and Length > 0, then ASSERT().\r
- If Length > 0 and SourceBuffer is NULL and Length > 0, then ASSERT().\r
+ If Length > 0 and DestinationBuffer is NULL, then ASSERT().\r
+ If Length > 0 and SourceBuffer is NULL, then ASSERT().\r
If Length is greater than (MAX_ADDRESS - DestinationBuffer + 1), then ASSERT(). \r
If Length is greater than (MAX_ADDRESS - SourceBuffer + 1), then ASSERT(). \r
\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
PeiMemoryLib\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
/** @file\r
Declaration of internal functions for Base Memory Library.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
IN UINT16 Value\r
)\r
{\r
- if (0 == Length) {\r
+ if (Length == 0) {\r
return NULL;\r
}\r
\r
ASSERT (Buffer != NULL);\r
- ASSERT (0 == ((UINTN)Buffer & (sizeof (Value) - 1)));\r
+ ASSERT (((UINTN)Buffer & (sizeof (Value) - 1)) == 0);\r
ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)Buffer));\r
- ASSERT (0 == (Length & (sizeof (Value) - 1)));\r
+ ASSERT ((Length & (sizeof (Value) - 1)) == 0);\r
\r
return (VOID*)InternalMemScanMem16 (Buffer, Length / sizeof (Value), Value);\r
}\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
IN UINT32 Value\r
)\r
{\r
- if (0 == Length) {\r
+ if (Length == 0) {\r
return NULL;\r
}\r
\r
ASSERT (Buffer != NULL);\r
- ASSERT (0 == ((UINTN)Buffer & (sizeof (Value) - 1)));\r
+ ASSERT (((UINTN)Buffer & (sizeof (Value) - 1)) == 0);\r
ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)Buffer));\r
- ASSERT (0 == (Length & (sizeof (Value) - 1)));\r
+ ASSERT ((Length & (sizeof (Value) - 1)) == 0);\r
\r
return (VOID*)InternalMemScanMem32 (Buffer, Length / sizeof (Value), Value);\r
}\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
IN UINT64 Value\r
)\r
{\r
- if (0 == Length) {\r
+ if (Length == 0) {\r
return NULL;\r
}\r
\r
ASSERT (Buffer != NULL);\r
- ASSERT (0 == ((UINTN)Buffer & (sizeof (Value) - 1)));\r
+ ASSERT (((UINTN)Buffer & (sizeof (Value) - 1)) == 0);\r
ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)Buffer));\r
- ASSERT (0 == (Length & (sizeof (Value) - 1)));\r
+ ASSERT ((Length & (sizeof (Value) - 1)) == 0);\r
\r
return (VOID*)InternalMemScanMem64 (Buffer, Length / sizeof (Value), Value);\r
}\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
IN UINT8 Value\r
)\r
{\r
- if (0 == Length) {\r
+ if (Length == 0) {\r
return NULL;\r
}\r
ASSERT (Buffer != NULL);\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
IN UINT16 Value\r
)\r
{\r
- if (0 == Length) {\r
+ if (Length == 0) {\r
return Buffer;\r
}\r
\r
ASSERT (Buffer != NULL);\r
ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)Buffer));\r
- ASSERT (0 == (((UINTN)Buffer) & (sizeof (Value) - 1)));\r
- ASSERT (0 == (Length & (sizeof (Value) - 1)));\r
+ ASSERT ((((UINTN)Buffer) & (sizeof (Value) - 1)) == 0);\r
+ ASSERT ((Length & (sizeof (Value) - 1)) == 0);\r
\r
return InternalMemSetMem16 (Buffer, Length / sizeof (Value), Value);\r
}\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
IN UINT32 Value\r
)\r
{\r
- if (0 == Length) {\r
+ if (Length == 0) {\r
return Buffer;\r
}\r
\r
ASSERT (Buffer != NULL);\r
ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)Buffer));\r
- ASSERT (0 == (((UINTN)Buffer) & (sizeof (Value) - 1)));\r
- ASSERT (0 == (Length & (sizeof (Value) - 1)));\r
+ ASSERT ((((UINTN)Buffer) & (sizeof (Value) - 1)) == 0);\r
+ ASSERT ((Length & (sizeof (Value) - 1)) == 0);\r
\r
return InternalMemSetMem32 (Buffer, Length / sizeof (Value), Value);\r
}\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
IN UINT64 Value\r
)\r
{\r
- if (0 == Length) {\r
+ if (Length == 0) {\r
return Buffer;\r
}\r
\r
ASSERT (Buffer != NULL);\r
ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)Buffer));\r
- ASSERT (0 == (((UINTN)Buffer) & (sizeof (Value) - 1)));\r
- ASSERT (0 == (Length & (sizeof (Value) - 1)));\r
+ ASSERT ((((UINTN)Buffer) & (sizeof (Value) - 1)) == 0);\r
+ ASSERT ((Length & (sizeof (Value) - 1)) == 0);\r
\r
return InternalMemSetMem64 (Buffer, Length / sizeof (Value), Value);\r
}\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
IN UINT8 Value\r
)\r
{\r
- if (0 == Length) {\r
+ if (Length == 0) {\r
return Buffer;\r
}\r
\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
\r
Module Name: CompareMemWrapper.c\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
If all Length bytes of the two buffers are identical, then 0 is returned. Otherwise, the\r
value returned is the first mismatched byte in SourceBuffer subtracted from the first\r
mismatched byte in DestinationBuffer.\r
- If Length > 0 and DestinationBuffer is NULL and Length > 0, then ASSERT().\r
- If Length > 0 and SourceBuffer is NULL and Length > 0, then ASSERT().\r
+ If Length > 0 and DestinationBuffer is NULL, then ASSERT().\r
+ If Length > 0 and SourceBuffer is NULL, then ASSERT().\r
If Length is greater than (MAX_ADDRESS - DestinationBuffer + 1), then ASSERT(). \r
If Length is greater than (MAX_ADDRESS - SourceBuffer + 1), then ASSERT(). \r
\r
\r
Module Name: CopyMemWrapper.c\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
IN UINTN Length\r
)\r
{\r
- if (0 == Length) {\r
+ if (Length == 0) {\r
return DestinationBuffer;\r
}\r
ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)DestinationBuffer));\r
#\r
# Notes:\r
#\r
-# The following BaseMemoryLib instances share the same version of this file:\r
+# The following BaseMemoryLib instances contain the same copy of this file:\r
#\r
# BaseMemoryLibRepStr\r
# BaseMemoryLibMmx\r
# BaseMemoryLibSse2\r
+# BaseMemoryLibOptDxe\r
+# BaseMemoryLibOptPei\r
#\r
#------------------------------------------------------------------------------\r
\r
;\r
; Notes:\r
;\r
-; The following BaseMemoryLib instances share the same version of this file:\r
+; The following BaseMemoryLib instances contain the same copy of this file:\r
;\r
; BaseMemoryLibRepStr\r
; BaseMemoryLibMmx\r
; BaseMemoryLibSse2\r
+; BaseMemoryLibOptDxe\r
+; BaseMemoryLibOptPei\r
;\r
;------------------------------------------------------------------------------\r
\r
#\r
# Notes:\r
#\r
-# The following BaseMemoryLib instances share the same version of this file:\r
+# The following BaseMemoryLib instances contain the same copy of this file:\r
#\r
# BaseMemoryLibRepStr\r
# BaseMemoryLibMmx\r
# BaseMemoryLibSse2\r
+# BaseMemoryLibOptDxe\r
+# BaseMemoryLibOptPei\r
#\r
#------------------------------------------------------------------------------\r
\r
;\r
; Notes:\r
;\r
-; The following BaseMemoryLib instances share the same version of this file:\r
+; The following BaseMemoryLib instances contain the same copy of this file:\r
;\r
; BaseMemoryLibRepStr\r
; BaseMemoryLibMmx\r
; BaseMemoryLibSse2\r
+; BaseMemoryLibOptDxe\r
+; BaseMemoryLibOptPei\r
;\r
;------------------------------------------------------------------------------\r
\r
#\r
# Notes:\r
#\r
-# The following BaseMemoryLib instances share the same version of this file:\r
+# The following BaseMemoryLib instances contain the same copy of this file:\r
#\r
# BaseMemoryLibRepStr\r
# BaseMemoryLibMmx\r
# BaseMemoryLibSse2\r
+# BaseMemoryLibOptDxe\r
+# BaseMemoryLibOptPei\r
#\r
#------------------------------------------------------------------------------\r
\r
;\r
; Notes:\r
;\r
-; The following BaseMemoryLib instances share the same version of this file:\r
+; The following BaseMemoryLib instances contain the same copy of this file:\r
;\r
; BaseMemoryLibRepStr\r
; BaseMemoryLibMmx\r
; BaseMemoryLibSse2\r
+; BaseMemoryLibOptDxe\r
+; BaseMemoryLibOptPei\r
;\r
;------------------------------------------------------------------------------\r
\r
#\r
# Notes:\r
#\r
-# The following BaseMemoryLib instances share the same version of this file:\r
+# The following BaseMemoryLib instances contain the same copy of this file:\r
#\r
# BaseMemoryLibRepStr\r
# BaseMemoryLibMmx\r
# BaseMemoryLibSse2\r
+# BaseMemoryLibOptDxe\r
+# BaseMemoryLibOptPei\r
#\r
#------------------------------------------------------------------------------\r
\r
;\r
; Notes:\r
;\r
-; The following BaseMemoryLib instances share the same version of this file:\r
+; The following BaseMemoryLib instances contain the same copy of this file:\r
;\r
; BaseMemoryLibRepStr\r
; BaseMemoryLibMmx\r
; BaseMemoryLibSse2\r
+; BaseMemoryLibOptDxe\r
+; BaseMemoryLibOptPei\r
;\r
;------------------------------------------------------------------------------\r
\r
#\r
# Notes:\r
#\r
-# The following BaseMemoryLib instances share the same version of this file:\r
+# The following BaseMemoryLib instances contain the same copy of this file:\r
#\r
# BaseMemoryLibRepStr\r
# BaseMemoryLibMmx\r
# BaseMemoryLibSse2\r
+# BaseMemoryLibOptDxe\r
+# BaseMemoryLibOptPei\r
#\r
#------------------------------------------------------------------------------\r
\r
;\r
; Notes:\r
;\r
-; The following BaseMemoryLib instances share the same version of this file:\r
+; The following BaseMemoryLib instances contain the same copy of this file:\r
;\r
; BaseMemoryLibRepStr\r
; BaseMemoryLibMmx\r
; BaseMemoryLibSse2\r
+; BaseMemoryLibOptDxe\r
+; BaseMemoryLibOptPei\r
;\r
;------------------------------------------------------------------------------\r
\r
\r
Module Name: MemLibGuid.c\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
\r
Module Name: MemLibInternals.h\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
\r
Module Name: ScanMem16Wrapper.c\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
IN UINT16 Value\r
)\r
{\r
- if (0 == Length) {\r
+ if (Length == 0) {\r
return NULL;\r
}\r
\r
\r
Module Name: ScanMem32Wrapper.c\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
IN UINT32 Value\r
)\r
{\r
- if (0 == Length) {\r
+ if (Length == 0) {\r
return NULL;\r
}\r
\r
\r
Module Name: ScanMem64Wrapper.c\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
IN UINT64 Value\r
)\r
{\r
- if (0 == Length) {\r
+ if (Length == 0) {\r
return NULL;\r
}\r
\r
\r
Module Name: ScanMem8Wrapper.c\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
IN UINT8 Value\r
)\r
{\r
- if (0 == Length) {\r
+ if (Length == 0) {\r
return NULL;\r
}\r
ASSERT (Buffer != NULL);\r
\r
Module Name: SetMem16Wrapper.c\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
IN UINT16 Value\r
)\r
{\r
- if (0 == Length) {\r
+ if (Length == 0) {\r
return Buffer;\r
}\r
\r
\r
Module Name: SetMem32Wrapper.c\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
IN UINT32 Value\r
)\r
{\r
- if (0 == Length) {\r
+ if (Length == 0) {\r
return Buffer;\r
}\r
\r
\r
Module Name: SetMem64Wrapper.c\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
IN UINT64 Value\r
)\r
{\r
- if (0 == Length) {\r
+ if (Length == 0) {\r
return Buffer;\r
}\r
\r
\r
Module Name: SetMemWrapper.c\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
IN UINT8 Value\r
)\r
{\r
- if (0 == Length) {\r
+ if (Length == 0) {\r
return Buffer;\r
}\r
\r
#
# Notes:
#
-# The following BaseMemoryLib instances share the same version of this file:
+# The following BaseMemoryLib instances contain the same copy of this file:
#
# BaseMemoryLibRepStr
# BaseMemoryLibMmx
# BaseMemoryLibSse2
+# BaseMemoryLibOptDxe
+# BaseMemoryLibOptPei
#
#------------------------------------------------------------------------------
;\r
; Notes:\r
;\r
-; The following BaseMemoryLib instances share the same version of this file:\r
+; The following BaseMemoryLib instances contain the same copy of this file:\r
;\r
; BaseMemoryLibRepStr\r
; BaseMemoryLibMmx\r
; BaseMemoryLibSse2\r
+; BaseMemoryLibOptDxe\r
+; BaseMemoryLibOptPei\r
;\r
;------------------------------------------------------------------------------\r
\r
;\r
; Notes:\r
;\r
-; The following BaseMemoryLib instances share the same version of this file:\r
+; The following BaseMemoryLib instances contain the same copy of this file:\r
;\r
; BaseMemoryLibRepStr\r
; BaseMemoryLibMmx\r
; BaseMemoryLibSse2\r
+; BaseMemoryLibOptDxe\r
+; BaseMemoryLibOptPei\r
;\r
;------------------------------------------------------------------------------\r
\r
;\r
; Notes:\r
;\r
-; The following BaseMemoryLib instances share the same version of this file:\r
+; The following BaseMemoryLib instances contain the same copy of this file:\r
;\r
; BaseMemoryLibRepStr\r
; BaseMemoryLibMmx\r
; BaseMemoryLibSse2\r
+; BaseMemoryLibOptDxe\r
+; BaseMemoryLibOptPei\r
;\r
;------------------------------------------------------------------------------\r
\r
;\r
; Notes:\r
;\r
-; The following BaseMemoryLib instances share the same version of this file:\r
+; The following BaseMemoryLib instances contain the same copy of this file:\r
;\r
; BaseMemoryLibRepStr\r
; BaseMemoryLibMmx\r
; BaseMemoryLibSse2\r
+; BaseMemoryLibOptDxe\r
+; BaseMemoryLibOptPei\r
;\r
;------------------------------------------------------------------------------\r
\r
;\r
; Notes:\r
;\r
-; The following BaseMemoryLib instances share the same version of this file:\r
+; The following BaseMemoryLib instances contain the same copy of this file:\r
;\r
; BaseMemoryLibRepStr\r
; BaseMemoryLibMmx\r
; BaseMemoryLibSse2\r
+; BaseMemoryLibOptDxe\r
+; BaseMemoryLibOptPei\r
;\r
;------------------------------------------------------------------------------\r
\r
\r
Module Name: ZeroMemWrapper.c\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
IN UINTN Length\r
)\r
{\r
- ASSERT (!(NULL == Buffer && Length > 0));\r
+ ASSERT (!(Buffer == NULL && Length > 0));\r
ASSERT (Length <= (MAX_ADDRESS - (UINTN)Buffer + 1));\r
return InternalMemZeroMem (Buffer, Length);\r
}\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
**/\r
\r
-\r
-\r
-\r
#include "MemLibInternals.h"\r
\r
/**\r
If all Length bytes of the two buffers are identical, then 0 is returned. Otherwise, the\r
value returned is the first mismatched byte in SourceBuffer subtracted from the first\r
mismatched byte in DestinationBuffer.\r
- If Length > 0 and DestinationBuffer is NULL and Length > 0, then ASSERT().\r
- If Length > 0 and SourceBuffer is NULL and Length > 0, then ASSERT().\r
+ If Length > 0 and DestinationBuffer is NULL, then ASSERT().\r
+ If Length > 0 and SourceBuffer is NULL, then ASSERT().\r
If Length is greater than (MAX_ADDRESS - DestinationBuffer + 1), then ASSERT(). \r
If Length is greater than (MAX_ADDRESS - SourceBuffer + 1), then ASSERT(). \r
\r
@param SourceBuffer Pointer to the source buffer to compare.\r
@param Length Number of bytes to compare.\r
\r
- @return 0 All Length bytes of the two buffers are identical.\r
+ @retval 0 All Length bytes of the two buffers are identical.\r
@retval Non-zero The first mismatched byte in SourceBuffer subtracted from the first\r
mismatched byte in DestinationBuffer.\r
\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
IN UINTN Length\r
)\r
{\r
- if (0 == Length) {\r
+ if (Length == 0) {\r
return DestinationBuffer;\r
}\r
ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)DestinationBuffer));\r
#
# Notes:
#
-# The following BaseMemoryLib instances share the same version of this file:
+# The following BaseMemoryLib instances contain the same copy of this file:
#
# BaseMemoryLibRepStr
# BaseMemoryLibMmx
# BaseMemoryLibSse2
+# BaseMemoryLibOptDxe
+# BaseMemoryLibOptPei
#
#------------------------------------------------------------------------------
;\r
; Notes:\r
;\r
-; The following BaseMemoryLib instances share the same version of this file:\r
+; The following BaseMemoryLib instances contain the same copy of this file:\r
;\r
; BaseMemoryLibRepStr\r
; BaseMemoryLibMmx\r
; BaseMemoryLibSse2\r
+; BaseMemoryLibOptDxe\r
+; BaseMemoryLibOptPei\r
;\r
;------------------------------------------------------------------------------\r
\r
#
# Notes:
#
-# The following BaseMemoryLib instances share the same version of this file:
+# The following BaseMemoryLib instances contain the same copy of this file:
#
# BaseMemoryLibRepStr
# BaseMemoryLibMmx
# BaseMemoryLibSse2
+# BaseMemoryLibOptDxe
+# BaseMemoryLibOptPei
#
#------------------------------------------------------------------------------
;\r
; Notes:\r
;\r
-; The following BaseMemoryLib instances share the same version of this file:\r
+; The following BaseMemoryLib instances contain the same copy of this file:\r
;\r
; BaseMemoryLibRepStr\r
; BaseMemoryLibMmx\r
; BaseMemoryLibSse2\r
+; BaseMemoryLibOptDxe\r
+; BaseMemoryLibOptPei\r
;\r
;------------------------------------------------------------------------------\r
\r
#
# Notes:
#
-# The following BaseMemoryLib instances share the same version of this file:
+# The following BaseMemoryLib instances contain the same copy of this file:
#
# BaseMemoryLibRepStr
# BaseMemoryLibMmx
# BaseMemoryLibSse2
+# BaseMemoryLibOptDxe
+# BaseMemoryLibOptPei
#
#------------------------------------------------------------------------------
;\r
; Notes:\r
;\r
-; The following BaseMemoryLib instances share the same version of this file:\r
+; The following BaseMemoryLib instances contain the same copy of this file:\r
;\r
; BaseMemoryLibRepStr\r
; BaseMemoryLibMmx\r
; BaseMemoryLibSse2\r
+; BaseMemoryLibOptDxe\r
+; BaseMemoryLibOptPei\r
;\r
;------------------------------------------------------------------------------\r
\r
#
# Notes:
#
-# The following BaseMemoryLib instances share the same version of this file:
+# The following BaseMemoryLib instances contain the same copy of this file:
#
# BaseMemoryLibRepStr
# BaseMemoryLibMmx
# BaseMemoryLibSse2
+# BaseMemoryLibOptDxe
+# BaseMemoryLibOptPei
#
#------------------------------------------------------------------------------
;\r
; Notes:\r
;\r
-; The following BaseMemoryLib instances share the same version of this file:\r
+; The following BaseMemoryLib instances contain the same copy of this file:\r
;\r
; BaseMemoryLibRepStr\r
; BaseMemoryLibMmx\r
; BaseMemoryLibSse2\r
+; BaseMemoryLibOptDxe\r
+; BaseMemoryLibOptPei\r
;\r
;------------------------------------------------------------------------------\r
\r
#
# Notes:
#
-# The following BaseMemoryLib instances share the same version of this file:
+# The following BaseMemoryLib instances contain the same copy of this file:
#
# BaseMemoryLibRepStr
# BaseMemoryLibMmx
# BaseMemoryLibSse2
+# BaseMemoryLibOptDxe
+# BaseMemoryLibOptPei
#
#------------------------------------------------------------------------------
;\r
; Notes:\r
;\r
-; The following BaseMemoryLib instances share the same version of this file:\r
+; The following BaseMemoryLib instances contain the same copy of this file:\r
;\r
; BaseMemoryLibRepStr\r
; BaseMemoryLibMmx\r
; BaseMemoryLibSse2\r
+; BaseMemoryLibOptDxe\r
+; BaseMemoryLibOptPei\r
;\r
;------------------------------------------------------------------------------\r
\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
/** @file\r
Declaration of internal functions for Base Memory Library.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
IN UINT16 Value\r
)\r
{\r
- if (0 == Length) {\r
+ if (Length == 0) {\r
return NULL;\r
}\r
\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
IN UINT32 Value\r
)\r
{\r
- if (0 == Length) {\r
+ if (Length == 0) {\r
return NULL;\r
}\r
\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
IN UINT64 Value\r
)\r
{\r
- if (0 == Length) {\r
+ if (Length == 0) {\r
return NULL;\r
}\r
\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
IN UINT8 Value\r
)\r
{\r
- if (0 == Length) {\r
+ if (Length == 0) {\r
return NULL;\r
}\r
ASSERT (Buffer != NULL);\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contains the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
IN UINT16 Value\r
)\r
{\r
- if (0 == Length) {\r
+ if (Length == 0) {\r
return Buffer;\r
}\r
\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
IN UINT32 Value\r
)\r
{\r
- if (0 == Length) {\r
+ if (Length == 0) {\r
return Buffer;\r
}\r
\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
IN UINT64 Value\r
)\r
{\r
- if (0 == Length) {\r
+ if (Length == 0) {\r
return Buffer;\r
}\r
\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
IN UINT8 Value\r
)\r
{\r
- if (0 == Length) {\r
+ if (Length == 0) {\r
return Buffer;\r
}\r
\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contains the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
IN UINTN Length\r
)\r
{\r
- ASSERT (!(NULL == Buffer && Length > 0));\r
+ ASSERT (!(Buffer == NULL && Length > 0));\r
ASSERT (Length <= (MAX_ADDRESS - (UINTN)Buffer + 1));\r
+ if (Length == 0) {\r
+ return Buffer;\r
+ }\r
return InternalMemZeroMem (Buffer, Length);\r
}\r
;\r
; Notes:\r
;\r
-; The following BaseMemoryLib instances share the same version of this file:\r
+; The following BaseMemoryLib instances contain the same copy of this file:\r
;\r
; BaseMemoryLibRepStr\r
; BaseMemoryLibMmx\r
; BaseMemoryLibSse2\r
+; BaseMemoryLibOptDxe\r
+; BaseMemoryLibOptPei\r
;\r
;------------------------------------------------------------------------------\r
\r
;\r
; Notes:\r
;\r
-; The following BaseMemoryLib instances share the same version of this file:\r
+; The following BaseMemoryLib instances contain the same copy of this file:\r
;\r
; BaseMemoryLibRepStr\r
; BaseMemoryLibMmx\r
; BaseMemoryLibSse2\r
+; BaseMemoryLibOptDxe\r
+; BaseMemoryLibOptPei\r
;\r
;------------------------------------------------------------------------------\r
\r
;\r
; Notes:\r
;\r
-; The following BaseMemoryLib instances share the same version of this file:\r
+; The following BaseMemoryLib instances contain the same copy of this file:\r
;\r
; BaseMemoryLibRepStr\r
; BaseMemoryLibMmx\r
; BaseMemoryLibSse2\r
+; BaseMemoryLibOptDxe\r
+; BaseMemoryLibOptPei\r
;\r
;------------------------------------------------------------------------------\r
\r
;\r
; Notes:\r
;\r
-; The following BaseMemoryLib instances share the same version of this file:\r
+; The following BaseMemoryLib instances contain the same copy of this file:\r
;\r
; BaseMemoryLibRepStr\r
; BaseMemoryLibMmx\r
; BaseMemoryLibSse2\r
+; BaseMemoryLibOptDxe\r
+; BaseMemoryLibOptPei\r
;\r
;------------------------------------------------------------------------------\r
\r
;\r
; Notes:\r
;\r
-; The following BaseMemoryLib instances share the same version of this file:\r
+; The following BaseMemoryLib instances contain the same copy of this file:\r
;\r
; BaseMemoryLibRepStr\r
; BaseMemoryLibMmx\r
; BaseMemoryLibSse2\r
+; BaseMemoryLibOptDxe\r
+; BaseMemoryLibOptPei\r
;\r
;------------------------------------------------------------------------------\r
\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
If all Length bytes of the two buffers are identical, then 0 is returned. Otherwise, the\r
value returned is the first mismatched byte in SourceBuffer subtracted from the first\r
mismatched byte in DestinationBuffer.\r
- If Length > 0 and DestinationBuffer is NULL and Length > 0, then ASSERT().\r
- If Length > 0 and SourceBuffer is NULL and Length > 0, then ASSERT().\r
+ If Length > 0 and DestinationBuffer is NULL, then ASSERT().\r
+ If Length > 0 and SourceBuffer is NULL, then ASSERT().\r
If Length is greater than (MAX_ADDRESS - DestinationBuffer + 1), then ASSERT(). \r
If Length is greater than (MAX_ADDRESS - SourceBuffer + 1), then ASSERT(). \r
\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
IN UINTN Length\r
)\r
{\r
- if (0 == Length) {\r
+ if (Length == 0) {\r
return DestinationBuffer;\r
}\r
ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)DestinationBuffer));\r
#
# Notes:
#
-# The following BaseMemoryLib instances share the same version of this file:
+# The following BaseMemoryLib instances contain the same copy of this file:
#
# BaseMemoryLibRepStr
# BaseMemoryLibMmx
# BaseMemoryLibSse2
+# BaseMemoryLibOptDxe
+# BaseMemoryLibOptPei
#
#------------------------------------------------------------------------------
;\r
; Notes:\r
;\r
-; The following BaseMemoryLib instances share the same version of this file:\r
+; The following BaseMemoryLib instances contain the same copy of this file:\r
;\r
; BaseMemoryLibRepStr\r
; BaseMemoryLibMmx\r
; BaseMemoryLibSse2\r
+; BaseMemoryLibOptDxe\r
+; BaseMemoryLibOptPei\r
;\r
;------------------------------------------------------------------------------\r
\r
#
# Notes:
#
-# The following BaseMemoryLib instances share the same version of this file:
+# The following BaseMemoryLib instances contain the same copy of this file:
#
# BaseMemoryLibRepStr
# BaseMemoryLibMmx
# BaseMemoryLibSse2
+# BaseMemoryLibOptDxe
+# BaseMemoryLibOptPei
#
#------------------------------------------------------------------------------
;\r
; Notes:\r
;\r
-; The following BaseMemoryLib instances share the same version of this file:\r
+; The following BaseMemoryLib instances contain the same copy of this file:\r
;\r
; BaseMemoryLibRepStr\r
; BaseMemoryLibMmx\r
; BaseMemoryLibSse2\r
+; BaseMemoryLibOptDxe\r
+; BaseMemoryLibOptPei\r
;\r
;------------------------------------------------------------------------------\r
\r
#
# Notes:
#
-# The following BaseMemoryLib instances share the same version of this file:
+# The following BaseMemoryLib instances contain the same copy of this file:
#
# BaseMemoryLibRepStr
# BaseMemoryLibMmx
# BaseMemoryLibSse2
+# BaseMemoryLibOptDxe
+# BaseMemoryLibOptPei
#
#------------------------------------------------------------------------------
;\r
; Notes:\r
;\r
-; The following BaseMemoryLib instances share the same version of this file:\r
+; The following BaseMemoryLib instances contain the same copy of this file:\r
;\r
; BaseMemoryLibRepStr\r
; BaseMemoryLibMmx\r
; BaseMemoryLibSse2\r
+; BaseMemoryLibOptDxe\r
+; BaseMemoryLibOptPei\r
;\r
;------------------------------------------------------------------------------\r
\r
#
# Notes:
#
-# The following BaseMemoryLib instances share the same version of this file:
+# The following BaseMemoryLib instances contain the same copy of this file:
#
# BaseMemoryLibRepStr
# BaseMemoryLibMmx
# BaseMemoryLibSse2
+# BaseMemoryLibOptDxe
+# BaseMemoryLibOptPei
#
#------------------------------------------------------------------------------
;\r
; Notes:\r
;\r
-; The following BaseMemoryLib instances share the same version of this file:\r
+; The following BaseMemoryLib instances contain the same copy of this file:\r
;\r
; BaseMemoryLibRepStr\r
; BaseMemoryLibMmx\r
; BaseMemoryLibSse2\r
+; BaseMemoryLibOptDxe\r
+; BaseMemoryLibOptPei\r
;\r
;------------------------------------------------------------------------------\r
\r
#
# Notes:
#
-# The following BaseMemoryLib instances share the same version of this file:
+# The following BaseMemoryLib instances contain the same copy of this file:
#
# BaseMemoryLibRepStr
# BaseMemoryLibMmx
# BaseMemoryLibSse2
+# BaseMemoryLibOptDxe
+# BaseMemoryLibOptPei
#
#------------------------------------------------------------------------------
;\r
; Notes:\r
;\r
-; The following BaseMemoryLib instances share the same version of this file:\r
+; The following BaseMemoryLib instances contain the same copy of this file:\r
;\r
; BaseMemoryLibRepStr\r
; BaseMemoryLibMmx\r
; BaseMemoryLibSse2\r
+; BaseMemoryLibOptDxe\r
+; BaseMemoryLibOptPei\r
;\r
;------------------------------------------------------------------------------\r
\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
/** @file\r
Declaration of internal functions for Base Memory Library.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
IN UINT16 Value\r
)\r
{\r
- if (0 == Length) {\r
+ if (Length == 0) {\r
return NULL;\r
}\r
\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
IN UINT32 Value\r
)\r
{\r
- if (0 == Length) {\r
+ if (Length == 0) {\r
return NULL;\r
}\r
\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
IN UINT64 Value\r
)\r
{\r
- if (0 == Length) {\r
+ if (Length == 0) {\r
return NULL;\r
}\r
\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
IN UINT8 Value\r
)\r
{\r
- if (0 == Length) {\r
+ if (Length == 0) {\r
return NULL;\r
}\r
ASSERT (Buffer != NULL);\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
IN UINT16 Value\r
)\r
{\r
- if (0 == Length) {\r
+ if (Length == 0) {\r
return Buffer;\r
}\r
\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
IN UINT32 Value\r
)\r
{\r
- if (0 == Length) {\r
+ if (Length == 0) {\r
return Buffer;\r
}\r
\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
IN UINT64 Value\r
)\r
{\r
- if (0 == Length) {\r
+ if (Length == 0) {\r
return Buffer;\r
}\r
\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
IN UINT8 Value\r
)\r
{\r
- if (0 == Length) {\r
+ if (Length == 0) {\r
return Buffer;\r
}\r
\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
IN UINTN Length\r
)\r
{\r
- ASSERT (!(NULL == Buffer && Length > 0));\r
+ ASSERT (!(Buffer == NULL && Length > 0));\r
ASSERT (Length <= (MAX_ADDRESS - (UINTN)Buffer + 1));\r
return InternalMemZeroMem (Buffer, Length);\r
}\r
;\r
; Notes:\r
;\r
-; The following BaseMemoryLib instances share the same version of this file:\r
+; The following BaseMemoryLib instances contain the same copy of this file:\r
;\r
; BaseMemoryLibRepStr\r
; BaseMemoryLibMmx\r
; BaseMemoryLibSse2\r
+; BaseMemoryLibOptDxe\r
+; BaseMemoryLibOptPei\r
;\r
;------------------------------------------------------------------------------\r
\r
;\r
; Notes:\r
;\r
-; The following BaseMemoryLib instances share the same version of this file:\r
+; The following BaseMemoryLib instances contain the same copy of this file:\r
;\r
; BaseMemoryLibRepStr\r
; BaseMemoryLibMmx\r
; BaseMemoryLibSse2\r
+; BaseMemoryLibOptDxe\r
+; BaseMemoryLibOptPei\r
;\r
;------------------------------------------------------------------------------\r
\r
;\r
; Notes:\r
;\r
-; The following BaseMemoryLib instances share the same version of this file:\r
+; The following BaseMemoryLib instances contain the same copy of this file:\r
;\r
; BaseMemoryLibRepStr\r
; BaseMemoryLibMmx\r
; BaseMemoryLibSse2\r
+; BaseMemoryLibOptDxe\r
+; BaseMemoryLibOptPei\r
;\r
;------------------------------------------------------------------------------\r
\r
;\r
; Notes:\r
;\r
-; The following BaseMemoryLib instances share the same version of this file:\r
+; The following BaseMemoryLib instances contain the same copy of this file:\r
;\r
; BaseMemoryLibRepStr\r
; BaseMemoryLibMmx\r
; BaseMemoryLibSse2\r
+; BaseMemoryLibOptDxe\r
+; BaseMemoryLibOptPei\r
;\r
;------------------------------------------------------------------------------\r
\r
;\r
; Notes:\r
;\r
-; The following BaseMemoryLib instances share the same version of this file:\r
+; The following BaseMemoryLib instances contain the same copy of this file:\r
;\r
; BaseMemoryLibRepStr\r
; BaseMemoryLibMmx\r
; BaseMemoryLibSse2\r
+; BaseMemoryLibOptDxe\r
+; BaseMemoryLibOptPei\r
;\r
;------------------------------------------------------------------------------\r
\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
If all Length bytes of the two buffers are identical, then 0 is returned. Otherwise, the\r
value returned is the first mismatched byte in SourceBuffer subtracted from the first\r
mismatched byte in DestinationBuffer.\r
- If Length > 0 and DestinationBuffer is NULL and Length > 0, then ASSERT().\r
- If Length > 0 and SourceBuffer is NULL and Length > 0, then ASSERT().\r
+ If Length > 0 and DestinationBuffer is NULL, then ASSERT().\r
+ If Length > 0 and SourceBuffer is NULL, then ASSERT().\r
If Length is greater than (MAX_ADDRESS - DestinationBuffer + 1), then ASSERT(). \r
If Length is greater than (MAX_ADDRESS - SourceBuffer + 1), then ASSERT(). \r
\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
IN UINTN Length\r
)\r
{\r
- if (0 == Length) {\r
+ if (Length == 0) {\r
return DestinationBuffer;\r
}\r
ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)DestinationBuffer));\r
#
# Notes:
#
-# The following BaseMemoryLib instances share the same version of this file:
+# The following BaseMemoryLib instances contain the same copy of this file:
#
# BaseMemoryLibRepStr
# BaseMemoryLibMmx
# BaseMemoryLibSse2
+# BaseMemoryLibOptDxe
+# BaseMemoryLibOptPei
#
#------------------------------------------------------------------------------
;\r
; Notes:\r
;\r
-; The following BaseMemoryLib instances share the same version of this file:\r
+; The following BaseMemoryLib instances contain the same copy of this file:\r
;\r
; BaseMemoryLibRepStr\r
; BaseMemoryLibMmx\r
; BaseMemoryLibSse2\r
+; BaseMemoryLibOptDxe\r
+; BaseMemoryLibOptPei\r
;\r
;------------------------------------------------------------------------------\r
\r
#
# Notes:
#
-# The following BaseMemoryLib instances share the same version of this file:
+# The following BaseMemoryLib instances contain the same copy of this file:
#
# BaseMemoryLibRepStr
# BaseMemoryLibMmx
# BaseMemoryLibSse2
+# BaseMemoryLibOptDxe
+# BaseMemoryLibOptPei
#
#------------------------------------------------------------------------------
;\r
; Notes:\r
;\r
-; The following BaseMemoryLib instances share the same version of this file:\r
+; The following BaseMemoryLib instances contain the same copy of this file:\r
;\r
; BaseMemoryLibRepStr\r
; BaseMemoryLibMmx\r
; BaseMemoryLibSse2\r
+; BaseMemoryLibOptDxe\r
+; BaseMemoryLibOptPei\r
;\r
;------------------------------------------------------------------------------\r
\r
#
# Notes:
#
-# The following BaseMemoryLib instances share the same version of this file:
+# The following BaseMemoryLib instances contain the same copy of this file:
#
# BaseMemoryLibRepStr
# BaseMemoryLibMmx
# BaseMemoryLibSse2
+# BaseMemoryLibOptDxe
+# BaseMemoryLibOptPei
#
#------------------------------------------------------------------------------
;\r
; Notes:\r
;\r
-; The following BaseMemoryLib instances share the same version of this file:\r
+; The following BaseMemoryLib instances contain the same copy of this file:\r
;\r
; BaseMemoryLibRepStr\r
; BaseMemoryLibMmx\r
; BaseMemoryLibSse2\r
+; BaseMemoryLibOptDxe\r
+; BaseMemoryLibOptPei\r
;\r
;------------------------------------------------------------------------------\r
\r
#
# Notes:
#
-# The following BaseMemoryLib instances share the same version of this file:
+# The following BaseMemoryLib instances contain the same copy of this file:
#
# BaseMemoryLibRepStr
# BaseMemoryLibMmx
# BaseMemoryLibSse2
+# BaseMemoryLibOptDxe
+# BaseMemoryLibOptPei
#
#------------------------------------------------------------------------------
;\r
; Notes:\r
;\r
-; The following BaseMemoryLib instances share the same version of this file:\r
+; The following BaseMemoryLib instances contain the same copy of this file:\r
;\r
; BaseMemoryLibRepStr\r
; BaseMemoryLibMmx\r
; BaseMemoryLibSse2\r
+; BaseMemoryLibOptDxe\r
+; BaseMemoryLibOptPei\r
;\r
;------------------------------------------------------------------------------\r
\r
#
# Notes:
#
-# The following BaseMemoryLib instances share the same version of this file:
+# The following BaseMemoryLib instances contain the same copy of this file:
#
# BaseMemoryLibRepStr
# BaseMemoryLibMmx
# BaseMemoryLibSse2
+# BaseMemoryLibOptDxe
+# BaseMemoryLibOptPei
#
#------------------------------------------------------------------------------
;\r
; Notes:\r
;\r
-; The following BaseMemoryLib instances share the same version of this file:\r
+; The following BaseMemoryLib instances contain the same copy of this file:\r
;\r
; BaseMemoryLibRepStr\r
; BaseMemoryLibMmx\r
; BaseMemoryLibSse2\r
+; BaseMemoryLibOptDxe\r
+; BaseMemoryLibOptPei\r
;\r
;------------------------------------------------------------------------------\r
\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
/** @file\r
Declaration of internal functions for Base Memory Library.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
IN UINT16 Value\r
)\r
{\r
- if (0 == Length) {\r
+ if (Length == 0) {\r
return NULL;\r
}\r
\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
IN UINT32 Value\r
)\r
{\r
- if (0 == Length) {\r
+ if (Length == 0) {\r
return NULL;\r
}\r
\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
IN UINT64 Value\r
)\r
{\r
- if (0 == Length) {\r
+ if (Length == 0) {\r
return NULL;\r
}\r
\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
IN UINT8 Value\r
)\r
{\r
- if (0 == Length) {\r
+ if (Length == 0) {\r
return NULL;\r
}\r
ASSERT (Buffer != NULL);\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
IN UINT16 Value\r
)\r
{\r
- if (0 == Length) {\r
+ if (Length == 0) {\r
return Buffer;\r
}\r
\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
IN UINT32 Value\r
)\r
{\r
- if (0 == Length) {\r
+ if (Length == 0) {\r
return Buffer;\r
}\r
\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
IN UINT64 Value\r
)\r
{\r
- if (0 == Length) {\r
+ if (Length == 0) {\r
return Buffer;\r
}\r
\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
IN UINT8 Value\r
)\r
{\r
- if (0 == Length) {\r
+ if (Length == 0) {\r
return Buffer;\r
}\r
\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
IN UINTN Length\r
)\r
{\r
- ASSERT (!(NULL == Buffer && Length > 0));\r
+ ASSERT (!(Buffer == NULL && Length > 0));\r
ASSERT (Length <= (MAX_ADDRESS - (UINTN)Buffer + 1));\r
return InternalMemZeroMem (Buffer, Length);\r
}\r
#
# Notes:
#
-# The following BaseMemoryLib instances share the same version of this file:
+# The following BaseMemoryLib instances contain the same copy of this file:
#
# BaseMemoryLibRepStr
# BaseMemoryLibMmx
# BaseMemoryLibSse2
+# BaseMemoryLibOptDxe
+# BaseMemoryLibOptPei
#
#------------------------------------------------------------------------------
;\r
; Notes:\r
;\r
-; The following BaseMemoryLib instances share the same version of this file:\r
+; The following BaseMemoryLib instances contain the same copy of this file:\r
;\r
; BaseMemoryLibRepStr\r
; BaseMemoryLibMmx\r
; BaseMemoryLibSse2\r
+; BaseMemoryLibOptDxe\r
+; BaseMemoryLibOptPei\r
;\r
;------------------------------------------------------------------------------\r
\r
#
# Notes:
#
-# The following BaseMemoryLib instances share the same version of this file:
+# The following BaseMemoryLib instances contain the same copy of this file:
#
# BaseMemoryLibRepStr
# BaseMemoryLibMmx
# BaseMemoryLibSse2
+# BaseMemoryLibOptDxe
+# BaseMemoryLibOptPei
#
#------------------------------------------------------------------------------
;\r
; Notes:\r
;\r
-; The following BaseMemoryLib instances share the same version of this file:\r
+; The following BaseMemoryLib instances contain the same copy of this file:\r
;\r
; BaseMemoryLibRepStr\r
; BaseMemoryLibMmx\r
; BaseMemoryLibSse2\r
+; BaseMemoryLibOptDxe\r
+; BaseMemoryLibOptPei\r
;\r
;------------------------------------------------------------------------------\r
\r
#
# Notes:
#
-# The following BaseMemoryLib instances share the same version of this file:
+# The following BaseMemoryLib instances contain the same copy of this file:
#
# BaseMemoryLibRepStr
# BaseMemoryLibMmx
# BaseMemoryLibSse2
+# BaseMemoryLibOptDxe
+# BaseMemoryLibOptPei
#
#------------------------------------------------------------------------------
;\r
; Notes:\r
;\r
-; The following BaseMemoryLib instances share the same version of this file:\r
+; The following BaseMemoryLib instances contain the same copy of this file:\r
;\r
; BaseMemoryLibRepStr\r
; BaseMemoryLibMmx\r
; BaseMemoryLibSse2\r
+; BaseMemoryLibOptDxe\r
+; BaseMemoryLibOptPei\r
;\r
;------------------------------------------------------------------------------\r
\r
#
# Notes:
#
-# The following BaseMemoryLib instances share the same version of this file:
+# The following BaseMemoryLib instances contain the same copy of this file:
#
# BaseMemoryLibRepStr
# BaseMemoryLibMmx
# BaseMemoryLibSse2
+# BaseMemoryLibOptDxe
+# BaseMemoryLibOptPei
#
#------------------------------------------------------------------------------
;\r
; Notes:\r
;\r
-; The following BaseMemoryLib instances share the same version of this file:\r
+; The following BaseMemoryLib instances contain the same copy of this file:\r
;\r
; BaseMemoryLibRepStr\r
; BaseMemoryLibMmx\r
; BaseMemoryLibSse2\r
+; BaseMemoryLibOptDxe\r
+; BaseMemoryLibOptPei\r
;\r
;------------------------------------------------------------------------------\r
\r
#
# Notes:
#
-# The following BaseMemoryLib instances share the same version of this file:
+# The following BaseMemoryLib instances contain the same copy of this file:
#
# BaseMemoryLibRepStr
# BaseMemoryLibMmx
# BaseMemoryLibSse2
+# BaseMemoryLibOptDxe
+# BaseMemoryLibOptPei
#
#------------------------------------------------------------------------------
;\r
; Notes:\r
;\r
-; The following BaseMemoryLib instances share the same version of this file:\r
+; The following BaseMemoryLib instances contain the same copy of this file:\r
;\r
; BaseMemoryLibRepStr\r
; BaseMemoryLibMmx\r
; BaseMemoryLibSse2\r
+; BaseMemoryLibOptDxe\r
+; BaseMemoryLibOptPei\r
;\r
;------------------------------------------------------------------------------\r
\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
If all Length bytes of the two buffers are identical, then 0 is returned. Otherwise, the\r
value returned is the first mismatched byte in SourceBuffer subtracted from the first\r
mismatched byte in DestinationBuffer.\r
- If Length > 0 and DestinationBuffer is NULL and Length > 0, then ASSERT().\r
- If Length > 0 and SourceBuffer is NULL and Length > 0, then ASSERT().\r
+ If Length > 0 and DestinationBuffer is NULL, then ASSERT().\r
+ If Length > 0 and SourceBuffer is NULL, then ASSERT().\r
If Length is greater than (MAX_ADDRESS - DestinationBuffer + 1), then ASSERT(). \r
If Length is greater than (MAX_ADDRESS - SourceBuffer + 1), then ASSERT(). \r
\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
IN UINTN Length\r
)\r
{\r
- if (0 == Length) {\r
+ if (Length == 0) {\r
return DestinationBuffer;\r
}\r
ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)DestinationBuffer));\r
#
# Notes:
#
-# The following BaseMemoryLib instances share the same version of this file:
+# The following BaseMemoryLib instances contain the same copy of this file:
#
# BaseMemoryLibRepStr
# BaseMemoryLibMmx
# BaseMemoryLibSse2
+# BaseMemoryLibOptDxe
+# BaseMemoryLibOptPei
#
#------------------------------------------------------------------------------
;\r
; Notes:\r
;\r
-; The following BaseMemoryLib instances share the same version of this file:\r
+; The following BaseMemoryLib instances contain the same copy of this file:\r
;\r
; BaseMemoryLibRepStr\r
; BaseMemoryLibMmx\r
; BaseMemoryLibSse2\r
+; BaseMemoryLibOptDxe\r
+; BaseMemoryLibOptPei\r
;\r
;------------------------------------------------------------------------------\r
\r
#
# Notes:
#
-# The following BaseMemoryLib instances share the same version of this file:
+# The following BaseMemoryLib instances contain the same copy of this file:
#
# BaseMemoryLibRepStr
# BaseMemoryLibMmx
# BaseMemoryLibSse2
+# BaseMemoryLibOptDxe
+# BaseMemoryLibOptPei
#
#------------------------------------------------------------------------------
;\r
; Notes:\r
;\r
-; The following BaseMemoryLib instances share the same version of this file:\r
+; The following BaseMemoryLib instances contain the same copy of this file:\r
;\r
; BaseMemoryLibRepStr\r
; BaseMemoryLibMmx\r
; BaseMemoryLibSse2\r
+; BaseMemoryLibOptDxe\r
+; BaseMemoryLibOptPei\r
;\r
;------------------------------------------------------------------------------\r
\r
#
# Notes:
#
-# The following BaseMemoryLib instances share the same version of this file:
+# The following BaseMemoryLib instances contain the same copy of this file:
#
# BaseMemoryLibRepStr
# BaseMemoryLibMmx
# BaseMemoryLibSse2
+# BaseMemoryLibOptDxe
+# BaseMemoryLibOptPei
#
#------------------------------------------------------------------------------
;\r
; Notes:\r
;\r
-; The following BaseMemoryLib instances share the same version of this file:\r
+; The following BaseMemoryLib instances contain the same copy of this file:\r
;\r
; BaseMemoryLibRepStr\r
; BaseMemoryLibMmx\r
; BaseMemoryLibSse2\r
+; BaseMemoryLibOptDxe\r
+; BaseMemoryLibOptPei\r
;\r
;------------------------------------------------------------------------------\r
\r
#
# Notes:
#
-# The following BaseMemoryLib instances share the same version of this file:
+# The following BaseMemoryLib instances contain the same copy of this file:
#
# BaseMemoryLibRepStr
# BaseMemoryLibMmx
# BaseMemoryLibSse2
+# BaseMemoryLibOptDxe
+# BaseMemoryLibOptPei
#
#------------------------------------------------------------------------------
;\r
; Notes:\r
;\r
-; The following BaseMemoryLib instances share the same version of this file:\r
+; The following BaseMemoryLib instances contain the same copy of this file:\r
;\r
; BaseMemoryLibRepStr\r
; BaseMemoryLibMmx\r
; BaseMemoryLibSse2\r
+; BaseMemoryLibOptDxe\r
+; BaseMemoryLibOptPei\r
;\r
;------------------------------------------------------------------------------\r
\r
#
# Notes:
#
-# The following BaseMemoryLib instances share the same version of this file:
+# The following BaseMemoryLib instances contain the same copy of this file:
#
# BaseMemoryLibRepStr
# BaseMemoryLibMmx
# BaseMemoryLibSse2
+# BaseMemoryLibOptDxe
+# BaseMemoryLibOptPei
#
#------------------------------------------------------------------------------
;\r
; Notes:\r
;\r
-; The following BaseMemoryLib instances share the same version of this file:\r
+; The following BaseMemoryLib instances contain the same copy of this file:\r
;\r
; BaseMemoryLibRepStr\r
; BaseMemoryLibMmx\r
; BaseMemoryLibSse2\r
+; BaseMemoryLibOptDxe\r
+; BaseMemoryLibOptPei\r
;\r
;------------------------------------------------------------------------------\r
\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
/** @file\r
Declaration of internal functions for Base Memory Library.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
IN UINT16 Value\r
)\r
{\r
- if (0 == Length) {\r
+ if (Length == 0) {\r
return NULL;\r
}\r
\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
IN UINT32 Value\r
)\r
{\r
- if (0 == Length) {\r
+ if (Length == 0) {\r
return NULL;\r
}\r
\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
IN UINT64 Value\r
)\r
{\r
- if (0 == Length) {\r
+ if (Length == 0) {\r
return NULL;\r
}\r
\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
IN UINT8 Value\r
)\r
{\r
- if (0 == Length) {\r
+ if (Length == 0) {\r
return NULL;\r
}\r
ASSERT (Buffer != NULL);\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
IN UINT16 Value\r
)\r
{\r
- if (0 == Length) {\r
+ if (Length == 0) {\r
return Buffer;\r
}\r
\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
IN UINT32 Value\r
)\r
{\r
- if (0 == Length) {\r
+ if (Length == 0) {\r
return Buffer;\r
}\r
\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
IN UINT64 Value\r
)\r
{\r
- if (0 == Length) {\r
+ if (Length == 0) {\r
return Buffer;\r
}\r
\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
IN UINT8 Value\r
)\r
{\r
- if (0 == Length) {\r
+ if (Length == 0) {\r
return Buffer;\r
}\r
\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
IN UINTN Length\r
)\r
{\r
- ASSERT (!(NULL == Buffer && Length > 0));\r
+ ASSERT (!(Buffer == NULL && Length > 0));\r
ASSERT (Length <= (MAX_ADDRESS - (UINTN)Buffer + 1));\r
return InternalMemZeroMem (Buffer, Length);\r
}\r
;\r
; Notes:\r
;\r
-; The following BaseMemoryLib instances share the same version of this file:\r
+; The following BaseMemoryLib instances contain the same copy of this file:\r
;\r
; BaseMemoryLibRepStr\r
; BaseMemoryLibMmx\r
; BaseMemoryLibSse2\r
+; BaseMemoryLibOptDxe\r
+; BaseMemoryLibOptPei\r
;\r
;------------------------------------------------------------------------------\r
\r
;\r
; Notes:\r
;\r
-; The following BaseMemoryLib instances share the same version of this file:\r
+; The following BaseMemoryLib instances contain the same copy of this file:\r
;\r
; BaseMemoryLibRepStr\r
; BaseMemoryLibMmx\r
; BaseMemoryLibSse2\r
+; BaseMemoryLibOptDxe\r
+; BaseMemoryLibOptPei\r
;\r
;------------------------------------------------------------------------------\r
\r
;\r
; Notes:\r
;\r
-; The following BaseMemoryLib instances share the same version of this file:\r
+; The following BaseMemoryLib instances contain the same copy of this file:\r
;\r
; BaseMemoryLibRepStr\r
; BaseMemoryLibMmx\r
; BaseMemoryLibSse2\r
+; BaseMemoryLibOptDxe\r
+; BaseMemoryLibOptPei\r
;\r
;------------------------------------------------------------------------------\r
\r
;\r
; Notes:\r
;\r
-; The following BaseMemoryLib instances share the same version of this file:\r
+; The following BaseMemoryLib instances contain the same copy of this file:\r
;\r
; BaseMemoryLibRepStr\r
; BaseMemoryLibMmx\r
; BaseMemoryLibSse2\r
+; BaseMemoryLibOptDxe\r
+; BaseMemoryLibOptPei\r
;\r
;------------------------------------------------------------------------------\r
\r
;\r
; Notes:\r
;\r
-; The following BaseMemoryLib instances share the same version of this file:\r
+; The following BaseMemoryLib instances contain the same copy of this file:\r
;\r
; BaseMemoryLibRepStr\r
; BaseMemoryLibMmx\r
; BaseMemoryLibSse2\r
+; BaseMemoryLibOptDxe\r
+; BaseMemoryLibOptPei\r
;\r
;------------------------------------------------------------------------------\r
\r
/** @file\r
- Tiano PE/COFF loader.\r
-\r
- This PE/COFF loader supports loading any PE32 or PE32+ image type, but\r
+ Base PE/COFF loader supports loading any PE32/PE32+ or TE image, but\r
only supports relocating IA32, X64, IPF, and EBC images.\r
\r
- Copyright (c) 2006, Intel Corporation\r
+ Copyright (c) 2006 - 2008, Intel Corporation\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-\r
-\r
-\r
#include "BasePeCoffLibInternals.h"\r
\r
/**\r
ImageContext->IsTeImage = TRUE;\r
ImageContext->Machine = Hdr.Te->Machine;\r
ImageContext->ImageType = (UINT16)(Hdr.Te->Subsystem);\r
+ //\r
+ // For TeImage, SectionAlignment is undefined to be set to Zero\r
+ // ImageSize can be calculated.\r
+ //\r
ImageContext->ImageSize = 0;\r
- ImageContext->SectionAlignment = 4096;\r
+ ImageContext->SectionAlignment = 0;\r
ImageContext->SizeOfHeaders = sizeof (EFI_TE_IMAGE_HEADER) + (UINTN)Hdr.Te->BaseOfCode - (UINTN)Hdr.Te->StrippedSize;\r
\r
} else if (Hdr.Pe32->Signature == EFI_IMAGE_NT_SIGNATURE) {\r
/**\r
Retrieves information about a PE/COFF image.\r
\r
- Computes the PeCoffHeaderOffset, ImageAddress, ImageSize, DestinationAddress, CodeView,\r
- PdbPointer, RelocationsStripped, SectionAlignment, SizeOfHeaders, and DebugDirectoryEntryRva\r
- fields of the ImageContext structure. If ImageContext is NULL, then return RETURN_INVALID_PARAMETER.\r
+ Computes the PeCoffHeaderOffset, ImageAddress, ImageSize, DestinationAddress, RelocationsStripped, \r
+ SectionAlignment, SizeOfHeaders, and DebugDirectoryEntryRva fields of the ImageContext structure. \r
+ If ImageContext is NULL, then return RETURN_INVALID_PARAMETER.\r
If the PE/COFF image accessed through the ImageRead service in the ImageContext structure is not\r
a supported PE/COFF image type, then return RETURN_UNSUPPORTED. If any errors occur while\r
computing the fields of ImageContext, then the error status is returned in the ImageError field of\r
UINT32 NumberOfRvaAndSizes;\r
UINT16 Magic;\r
\r
- if (NULL == ImageContext) {\r
+ if (ImageContext == NULL) {\r
return RETURN_INVALID_PARAMETER;\r
}\r
//\r
// section headers in the Section Table must appear in order of the RVA\r
// values for the corresponding sections. So the ImageSize can be determined\r
// by the RVA and the VirtualSize of the last section header in the\r
- // Section Table.\r
+ // Section Table. \r
//\r
if ((++Index) == (UINTN)Hdr.Te->NumberOfSections) {\r
- ImageContext->ImageSize = (SectionHeader.VirtualAddress + SectionHeader.Misc.VirtualSize +\r
- ImageContext->SectionAlignment - 1) & ~(ImageContext->SectionAlignment - 1);\r
+ ImageContext->ImageSize = (SectionHeader.VirtualAddress + SectionHeader.Misc.VirtualSize);\r
}\r
\r
SectionHeaderOffset += sizeof (EFI_IMAGE_SECTION_HEADER);\r
Size = (UINTN) Section->SizeOfRawData;\r
}\r
\r
- if (Section->SizeOfRawData) {\r
+ if (Section->SizeOfRawData > 0) {\r
if (!(ImageContext->IsTeImage)) {\r
Status = ImageContext->ImageRead (\r
ImageContext->Handle,\r
RelocBaseEnd = (EFI_IMAGE_BASE_RELOCATION *)(UINTN)(ImageBase + RelocDir->VirtualAddress + RelocDir->Size);\r
} else {\r
//\r
- // Cannot find relocations, cannot continue\r
+ // Cannot find relocations, cannot continue to relocate the image, ASSERT for this invalid image.\r
//\r
ASSERT (FALSE);\r
return ;\r
}\r
-\r
+ \r
+ //\r
+ // ASSERT for the invalid image when RelocBase and RelocBaseEnd are both NULL.\r
+ //\r
ASSERT (RelocBase != NULL && RelocBaseEnd != NULL);\r
\r
//\r
\r
case EFI_IMAGE_REL_BASED_HIGHADJ:\r
//\r
- // Not implemented, but not used in UEFI 2.0\r
+ // Not valid Relocation type for UEFI image, ASSERT\r
//\r
ASSERT (FALSE);\r
break;\r
#/** @file\r
# Component description file for Base PE/COFF Library\r
#\r
-# PE/COFF Loader Library implementation.\r
-# Copyright (c) 2006, Intel Corporation.\r
+# Base PE/COFF Loader Library implementation.\r
+# Copyright (c) 2006 - 2008, Intel Corporation.\r
#\r
# All rights reserved. This program and the accompanying materials\r
# are licensed and made available under the terms and conditions of the BSD License\r
BasePeCoffLibInternals.h\r
BasePeCoff.c\r
\r
-[Sources.Ia32]\r
- Ia32/PeCoffLoaderEx.c\r
-\r
-[Sources.X64]\r
- x64/PeCoffLoaderEx.c\r
+[Sources.Ia32, Sources.X64, Sources.EBC]\r
+ PeCoffLoaderEx.c\r
\r
[Sources.IPF]\r
Ipf/PeCoffLoaderEx.c\r
\r
-[Sources.EBC]\r
- Ebc/PeCoffLoaderEx.c\r
-\r
-\r
[Packages]\r
MdePkg/MdePkg.dec\r
\r
-\r
[LibraryClasses]\r
DebugLib\r
BaseMemoryLib\r
+++ /dev/null
-/** @file\r
- EBC Specific relocation fixups.\r
-\r
- Copyright (c) 2006, Intel Corporation\r
- All rights reserved. This program and the accompanying materials\r
- are licensed and made available under the terms and conditions of the BSD License\r
- which accompanies this distribution. The full text of the license may be found at\r
- http://opensource.org/licenses/bsd-license.php\r
-\r
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-\r
-**/\r
-\r
-#include "BasePeCoffLibInternals.h"\r
-\r
-/**\r
- Performs an EBC specific relocation fixup.\r
-\r
- @param Reloc Pointer to the relocation record.\r
- @param Fixup Pointer to the address to fix up.\r
- @param FixupData Pointer to a buffer to log the fixups.\r
- @param Adjust The offset to adjust the fixup.\r
-\r
- @retval EFI_UNSUPPORTED Unsupported now.\r
-\r
-**/\r
-RETURN_STATUS\r
-PeCoffLoaderRelocateImageEx (\r
- IN UINT16 *Reloc,\r
- IN OUT CHAR8 *Fixup,\r
- IN OUT CHAR8 **FixupData,\r
- IN UINT64 Adjust\r
- )\r
-{\r
- return RETURN_UNSUPPORTED;\r
-}\r
-\r
-/**\r
- Returns TRUE if the machine type of PE/COFF image is supported. Supported \r
- does not mean the image can be executed it means the PE/COFF loader supports\r
- loading and relocating of the image type. It's up to the caller to support\r
- the entry point. \r
-\r
- This function implies the basic PE/COFF loader/relocator supports IA32, EBC,\r
- & X64 images. Calling the entry point in a correct mannor is up to the \r
- consumer of this library.\r
-\r
- @param Machine Machine type from the PE Header.\r
-\r
- @return TRUE if this PE/COFF loader can load the image\r
-\r
-**/\r
-BOOLEAN\r
-PeCoffLoaderImageFormatSupported (\r
- IN UINT16 Machine\r
- )\r
-{\r
- if ((Machine == EFI_IMAGE_MACHINE_IA32) || (Machine == EFI_IMAGE_MACHINE_X64) || \r
- (Machine == EFI_IMAGE_MACHINE_EBC)) {\r
- return TRUE; \r
- }\r
-\r
- return FALSE;\r
-}\r
-\r
-\r
-/**\r
- Performs an Itanium-based specific re-relocation fixup and is a no-op on other\r
- instruction sets. This is used to re-relocated the image into the EFI virtual\r
- space for runtime calls.\r
-\r
- @param Reloc Pointer to the relocation record.\r
- @param Fixup Pointer to the address to fix up.\r
- @param FixupData Pointer to a buffer to log the fixups.\r
- @param Adjust The offset to adjust the fixup.\r
-\r
- @return Always return UNSUPPORTED.\r
-\r
-**/\r
-RETURN_STATUS\r
-PeHotRelocateImageEx (\r
- IN UINT16 *Reloc,\r
- IN OUT CHAR8 *Fixup,\r
- IN OUT CHAR8 **FixupData,\r
- IN UINT64 Adjust\r
- )\r
-{\r
- return RETURN_UNSUPPORTED;\r
-}\r
+++ /dev/null
-/** @file\r
- IA-32 Specific relocation fixups.\r
-\r
- Copyright (c) 2006, Intel Corporation<BR>\r
- All rights reserved. This program and the accompanying materials\r
- are licensed and made available under the terms and conditions of the BSD License\r
- which accompanies this distribution. The full text of the license may be found at\r
- http://opensource.org/licenses/bsd-license.php\r
-\r
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-\r
-**/\r
-\r
-#include "BasePeCoffLibInternals.h"\r
-\r
-\r
-/**\r
- Performs an IA-32 specific relocation fixup.\r
-\r
- @param Reloc Pointer to the relocation record.\r
- @param Fixup Pointer to the address to fix up.\r
- @param FixupData Pointer to a buffer to log the fixups.\r
- @param Adjust The offset to adjust the fixup.\r
-\r
- @retval EFI_UNSUPPORTED Unsupported now.\r
-\r
-**/\r
-RETURN_STATUS\r
-PeCoffLoaderRelocateImageEx (\r
- IN UINT16 *Reloc,\r
- IN OUT CHAR8 *Fixup,\r
- IN OUT CHAR8 **FixupData,\r
- IN UINT64 Adjust\r
- )\r
-{\r
- return RETURN_UNSUPPORTED;\r
-}\r
-\r
-/**\r
- Returns TRUE if the machine type of PE/COFF image is supported. Supported \r
- does not mean the image can be executed it means the PE/COFF loader supports\r
- loading and relocating of the image type. It's up to the caller to support\r
- the entry point. \r
-\r
- This function implies the basic PE/COFF loader/relocator supports IA32, EBC,\r
- & X64 images. Calling the entry point in a correct mannor is up to the \r
- consumer of this library.\r
-\r
- @param Machine Machine type from the PE Header.\r
-\r
- @return TRUE if this PE/COFF loader can load the image\r
-\r
-**/\r
-BOOLEAN\r
-PeCoffLoaderImageFormatSupported (\r
- IN UINT16 Machine\r
- )\r
-{\r
- if ((Machine == EFI_IMAGE_MACHINE_IA32) || (Machine == EFI_IMAGE_MACHINE_X64) || \r
- (Machine == EFI_IMAGE_MACHINE_EBC)) {\r
- return TRUE; \r
- }\r
-\r
- return FALSE;\r
-}\r
-\r
-/**\r
- Performs an Itanium-based specific re-relocation fixup and is a no-op on other\r
- instruction sets. This is used to re-relocated the image into the EFI virtual\r
- space for runtime calls.\r
-\r
- @param Reloc Pointer to the relocation record.\r
- @param Fixup Pointer to the address to fix up.\r
- @param FixupData Pointer to a buffer to log the fixups.\r
- @param Adjust The offset to adjust the fixup.\r
-\r
- @return Always return UNSUPPORTED.\r
-\r
-**/\r
-RETURN_STATUS\r
-PeHotRelocateImageEx (\r
- IN UINT16 *Reloc,\r
- IN OUT CHAR8 *Fixup,\r
- IN OUT CHAR8 **FixupData,\r
- IN UINT64 Adjust\r
- )\r
-{\r
- return RETURN_UNSUPPORTED;\r
-}\r
-\r
--- /dev/null
+/** @file\r
+ Specific relocation fixups for none Itanium architecture.\r
+\r
+ Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+ All rights reserved. This program and the accompanying materials\r
+ are licensed and made available under the terms and conditions of the BSD License\r
+ which accompanies this distribution. The full text of the license may be found at\r
+ http://opensource.org/licenses/bsd-license.php\r
+\r
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+\r
+**/\r
+\r
+#include "BasePeCoffLibInternals.h"\r
+\r
+\r
+/**\r
+ Performs an IA-32 specific relocation fixup.\r
+\r
+ @param Reloc Pointer to the relocation record.\r
+ @param Fixup Pointer to the address to fix up.\r
+ @param FixupData Pointer to a buffer to log the fixups.\r
+ @param Adjust The offset to adjust the fixup.\r
+\r
+ @retval EFI_UNSUPPORTED Unsupported now.\r
+\r
+**/\r
+RETURN_STATUS\r
+PeCoffLoaderRelocateImageEx (\r
+ IN UINT16 *Reloc,\r
+ IN OUT CHAR8 *Fixup,\r
+ IN OUT CHAR8 **FixupData,\r
+ IN UINT64 Adjust\r
+ )\r
+{\r
+ return RETURN_UNSUPPORTED;\r
+}\r
+\r
+/**\r
+ Returns TRUE if the machine type of PE/COFF image is supported. Supported \r
+ does not mean the image can be executed it means the PE/COFF loader supports\r
+ loading and relocating of the image type. It's up to the caller to support\r
+ the entry point. \r
+\r
+ This function implies the basic PE/COFF loader/relocator supports IA32, EBC,\r
+ & X64 images. Calling the entry point in a correct mannor is up to the \r
+ consumer of this library.\r
+\r
+ @param Machine Machine type from the PE Header.\r
+\r
+ @return TRUE if this PE/COFF loader can load the image\r
+\r
+**/\r
+BOOLEAN\r
+PeCoffLoaderImageFormatSupported (\r
+ IN UINT16 Machine\r
+ )\r
+{\r
+ if ((Machine == EFI_IMAGE_MACHINE_IA32) || (Machine == EFI_IMAGE_MACHINE_X64) || \r
+ (Machine == EFI_IMAGE_MACHINE_EBC)) {\r
+ return TRUE; \r
+ }\r
+\r
+ return FALSE;\r
+}\r
+\r
+/**\r
+ Performs an Itanium-based specific re-relocation fixup and is a no-op on other\r
+ instruction sets. This is used to re-relocated the image into the EFI virtual\r
+ space for runtime calls.\r
+\r
+ @param Reloc Pointer to the relocation record.\r
+ @param Fixup Pointer to the address to fix up.\r
+ @param FixupData Pointer to a buffer to log the fixups.\r
+ @param Adjust The offset to adjust the fixup.\r
+\r
+ @return Always return UNSUPPORTED.\r
+\r
+**/\r
+RETURN_STATUS\r
+PeHotRelocateImageEx (\r
+ IN UINT16 *Reloc,\r
+ IN OUT CHAR8 *Fixup,\r
+ IN OUT CHAR8 **FixupData,\r
+ IN UINT64 Adjust\r
+ )\r
+{\r
+ return RETURN_UNSUPPORTED;\r
+}\r
+\r
+++ /dev/null
-/** @file\r
- x64 Specific relocation fixups.\r
-\r
-Copyright (c) 2005 - 2006 Intel Corporation. <BR>\r
-All rights reserved. This program and the accompanying materials \r
-are licensed and made available under the terms and conditions of the BSD License \r
-which accompanies this distribution. The full text of the license may be found at \r
-http://opensource.org/licenses/bsd-license.php \r
- \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
-\r
-**/\r
-\r
-#include "BasePeCoffLibInternals.h"\r
-\r
-/**\r
- Performs an x64 specific relocation fixup.\r
-\r
- @param Reloc Pointer to the relocation record\r
- @param Fixup Pointer to the address to fix up\r
- @param FixupData Pointer to a buffer to log the fixups\r
- @param Adjust The offset to adjust the fixup\r
-\r
- @retval RETURN_SUCCESS Success to perform relocation\r
- @retval RETURN_UNSUPPORTED Unsupported.\r
-**/\r
-RETURN_STATUS\r
-PeCoffLoaderRelocateImageEx (\r
- IN UINT16 *Reloc,\r
- IN OUT CHAR8 *Fixup, \r
- IN OUT CHAR8 **FixupData,\r
- IN UINT64 Adjust\r
- )\r
-{\r
- return RETURN_UNSUPPORTED;\r
-}\r
-\r
-/**\r
- Returns TRUE if the machine type of PE/COFF image is supported. Supported \r
- does not mean the image can be executed it means the PE/COFF loader supports\r
- loading and relocating of the image type. It's up to the caller to support\r
- the entry point. \r
-\r
- This function implies the basic PE/COFF loader/relocator supports IA32, EBC,\r
- & X64 images. Calling the entry point in a correct mannor is up to the \r
- consumer of this library.\r
-\r
- @param Machine Machine type from the PE Header.\r
-\r
- @return TRUE if this PE/COFF loader can load the image\r
-\r
-**/\r
-BOOLEAN\r
-PeCoffLoaderImageFormatSupported (\r
- IN UINT16 Machine\r
- )\r
-{\r
- if ((Machine == EFI_IMAGE_MACHINE_IA32) || (Machine == EFI_IMAGE_MACHINE_X64) || \r
- (Machine == EFI_IMAGE_MACHINE_EBC)) {\r
- return TRUE; \r
- }\r
-\r
- return FALSE;\r
-}\r
-\r
-\r
-/**\r
- Performs an X64 specific re-relocation fixup and is a no-op on other\r
- instruction sets. This is used to re-relocated the image into the EFI virtual\r
- space for runtime calls.\r
-\r
- @param Reloc Pointer to the relocation record.\r
- @param Fixup Pointer to the address to fix up.\r
- @param FixupData Pointer to a buffer to log the fixups.\r
- @param Adjust The offset to adjust the fixup.\r
-\r
- @return EFI_UNSUPPORTED.\r
-\r
-**/\r
-RETURN_STATUS\r
-PeHotRelocateImageEx (\r
- IN UINT16 *Reloc,\r
- IN OUT CHAR8 *Fixup,\r
- IN OUT CHAR8 **FixupData,\r
- IN UINT64 Adjust\r
- )\r
-{\r
- return RETURN_UNSUPPORTED;\r
-}\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
If all Length bytes of the two buffers are identical, then 0 is returned. Otherwise, the\r
value returned is the first mismatched byte in SourceBuffer subtracted from the first\r
mismatched byte in DestinationBuffer.\r
- If Length > 0 and DestinationBuffer is NULL and Length > 0, then ASSERT().\r
- If Length > 0 and SourceBuffer is NULL and Length > 0, then ASSERT().\r
+ If Length > 0 and DestinationBuffer is NULL, then ASSERT().\r
+ If Length > 0 and SourceBuffer is NULL, then ASSERT().\r
If Length is greater than (MAX_ADDRESS - DestinationBuffer + 1), then ASSERT(). \r
If Length is greater than (MAX_ADDRESS - SourceBuffer + 1), then ASSERT(). \r
\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
PeiMemoryLib\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
If all Length bytes of the two buffers are identical, then 0 is returned. Otherwise, the\r
value returned is the first mismatched byte in SourceBuffer subtracted from the first\r
mismatched byte in DestinationBuffer.\r
- If Length > 0 and DestinationBuffer is NULL and Length > 0, then ASSERT().\r
- If Length > 0 and SourceBuffer is NULL and Length > 0, then ASSERT().\r
+ If Length > 0 and DestinationBuffer is NULL, then ASSERT().\r
+ If Length > 0 and SourceBuffer is NULL, then ASSERT().\r
If Length is greater than (MAX_ADDRESS - DestinationBuffer + 1), then ASSERT().\r
If Length is greater than (MAX_ADDRESS - SourceBuffer + 1), then ASSERT().\r
\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
PeiMemoryLib\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- The following BaseMemoryLib instances share the same version of this file:\r
+ The following BaseMemoryLib instances contain the same copy of this file:\r
\r
BaseMemoryLib\r
BaseMemoryLibMmx\r
BaseMemoryLibSse2\r
BaseMemoryLibRepStr\r
+ BaseMemoryLibOptDxe\r
+ BaseMemoryLibOptPei\r
PeiMemoryLib\r
DxeMemoryLib\r
\r