Code scrub:
MdePkg/Library/BaseCacheMaintenanceLib MdePkg/Library/BaseDebugLibNull MdePkg/Library/BaseIoLibIntrinsic MdePkg/Library/BaseLib MdePkg/Library/BaseMemoryLib MdePkg/Library/BaseMemoryLibMmx MdePkg/Library/BaseMemoryLibOptDxe MdePkg/Library/BaseMemoryLibOptPei MdePkg/Library/BaseMemoryLibRepStr MdePkg/Library/BaseMemoryLibSse2 MdePkg/Library/BasePeCoffGetEntryPointLib git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5426 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -80,22 +80,17 @@ CompareGuid (
|
||||
IN CONST GUID *Guid2
|
||||
)
|
||||
{
|
||||
UINT64 Guid1ValueLo;
|
||||
UINT64 Guid1ValueHi;
|
||||
UINT64 Guid2ValueLo;
|
||||
UINT64 Guid2ValueHi;
|
||||
UINT64 LowPartOfGuid1;
|
||||
UINT64 LowPartOfGuid2;
|
||||
UINT64 HighPartOfGuid1;
|
||||
UINT64 HighPartOfGuid2;
|
||||
|
||||
Guid1ValueLo = ReadUnaligned64 ((CONST UINT64*)Guid1);
|
||||
Guid2ValueLo = ReadUnaligned64 ((CONST UINT64*)Guid2);
|
||||
LowPartOfGuid1 = ReadUnaligned64 ((CONST UINT64*) Guid1);
|
||||
LowPartOfGuid2 = ReadUnaligned64 ((CONST UINT64*) Guid2);
|
||||
HighPartOfGuid1 = ReadUnaligned64 ((CONST UINT64*) Guid1 + 1);
|
||||
HighPartOfGuid2 = ReadUnaligned64 ((CONST UINT64*) Guid2 + 1);
|
||||
|
||||
Guid1ValueHi = ReadUnaligned64 ((CONST UINT64*)Guid1 + 1);
|
||||
Guid2ValueHi = ReadUnaligned64 ((CONST UINT64*)Guid2 + 1);
|
||||
|
||||
|
||||
return (BOOLEAN)
|
||||
((Guid1ValueLo == Guid2ValueLo) &&
|
||||
(Guid1ValueHi == Guid2ValueHi)
|
||||
);
|
||||
return (BOOLEAN) (LowPartOfGuid1 == LowPartOfGuid2 && HighPartOfGuid1 == HighPartOfGuid2);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user