summaryrefslogtreecommitdiff
path: root/MdePkg/Library/BaseMemoryLib/SetMem32Wrapper.c
diff options
context:
space:
mode:
authorbxing <bxing@6f19259b-4bc3-4df7-8a09-765794883524>2006-05-30 05:42:49 +0000
committerbxing <bxing@6f19259b-4bc3-4df7-8a09-765794883524>2006-05-30 05:42:49 +0000
commit49c80af423d4eecd932aa9831fbba3f74ea4a424 (patch)
tree5d94673809f70748baaecc570c7b8f592a9dcac0 /MdePkg/Library/BaseMemoryLib/SetMem32Wrapper.c
parent9d6d8b24f36f782690a918ebabf8da88d54a050e (diff)
downloadedk2-platforms-49c80af423d4eecd932aa9831fbba3f74ea4a424.tar.xz
1. Fixed incorrect ASSERT conditions in wrapper functions.
2. Removed unnecessary SUB instructions in CompareMem.asm git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@318 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library/BaseMemoryLib/SetMem32Wrapper.c')
-rw-r--r--MdePkg/Library/BaseMemoryLib/SetMem32Wrapper.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/MdePkg/Library/BaseMemoryLib/SetMem32Wrapper.c b/MdePkg/Library/BaseMemoryLib/SetMem32Wrapper.c
index 4b9d2413eb..620b69aef4 100644
--- a/MdePkg/Library/BaseMemoryLib/SetMem32Wrapper.c
+++ b/MdePkg/Library/BaseMemoryLib/SetMem32Wrapper.c
@@ -54,8 +54,8 @@ SetMem32 (
{
ASSERT (Buffer != NULL);
ASSERT (Length <= MAX_ADDRESS - (UINTN)Buffer + 1);
- ASSERT ((((UINTN)Buffer) & 1) != 0);
- ASSERT ((Length & 1) != 0);
+ ASSERT ((((UINTN)Buffer) & (sizeof (Value) - 1)) != 0);
+ ASSERT ((Length & (sizeof (Value) - 1)) != 0);
if ((Length /= sizeof (Value)) == 0) {
return Buffer;