Make MDE package pass intel IPF compiler with /W4 /WX switched on.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2312 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
xli24
2007-01-25 06:05:36 +00:00
parent ba3a1cb5bb
commit 582510249f
65 changed files with 1441 additions and 400 deletions

View File

@@ -32,8 +32,11 @@ SwapBytes32 (
IN UINT32 Operand
)
{
return (UINT32)(
((UINT32)SwapBytes16 ((UINT16)Operand) << 16) |
((UINT32)SwapBytes16 ((UINT16)(Operand >> 16)))
);
UINT32 LowerBytes;
UINT32 HigherBytes;
LowerBytes = (UINT32) SwapBytes16 ((UINT16) Operand);
HigherBytes = (UINT32) SwapBytes16 ((UINT16) (Operand >> 16));
return (LowerBytes << 16 | HigherBytes);
}