diff options
author | yshang1 <yshang1@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-09-19 06:15:43 +0000 |
---|---|---|
committer | yshang1 <yshang1@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-09-19 06:15:43 +0000 |
commit | d074a8e1a25a05cb77d9185e0e4e5a5363c80871 (patch) | |
tree | 8811da49f92d3491e988dae11941a86dcd9a8097 /MdePkg/Library/BaseMemoryLibRepStr | |
parent | d940d5e59fd316b9e873eef419fe4c8c715e5ee8 (diff) | |
download | edk2-platforms-d074a8e1a25a05cb77d9185e0e4e5a5363c80871.tar.xz |
Update Mde/MdeModulePkg to support ICC build for IA32/X64.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3892 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library/BaseMemoryLibRepStr')
-rw-r--r-- | MdePkg/Library/BaseMemoryLibRepStr/MemLibGuid.c | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/MdePkg/Library/BaseMemoryLibRepStr/MemLibGuid.c b/MdePkg/Library/BaseMemoryLibRepStr/MemLibGuid.c index 431ffa3931..c13cd462e4 100644 --- a/MdePkg/Library/BaseMemoryLibRepStr/MemLibGuid.c +++ b/MdePkg/Library/BaseMemoryLibRepStr/MemLibGuid.c @@ -80,11 +80,21 @@ CompareGuid ( IN CONST GUID *Guid2
)
{
- return (BOOLEAN)(
- ReadUnaligned64 ((CONST UINT64*)Guid1)
- == ReadUnaligned64 ((CONST UINT64*)Guid2) &&
- ReadUnaligned64 ((CONST UINT64*)Guid1 + 1)
- == ReadUnaligned64 ((CONST UINT64*)Guid2 + 1)
+ UINT64 Guid1ValueLo;
+ UINT64 Guid1ValueHi;
+ UINT64 Guid2ValueLo;
+ UINT64 Guid2ValueHi;
+
+ Guid1ValueLo = ReadUnaligned64 ((CONST UINT64*)Guid1);
+ Guid2ValueLo = ReadUnaligned64 ((CONST UINT64*)Guid2);
+
+ Guid1ValueHi = ReadUnaligned64 ((CONST UINT64*)Guid1 + 1);
+ Guid2ValueHi = ReadUnaligned64 ((CONST UINT64*)Guid2 + 1);
+
+
+ return (BOOLEAN)
+ ((Guid1ValueLo == Guid2ValueLo) &&
+ (Guid1ValueHi == Guid2ValueHi)
);
}
|