TianoCore EDK2 master
Loading...
Searching...
No Matches
SwapBytes32.c
Go to the documentation of this file.
1
9#include "BaseLibInternals.h"
10
23UINT32
24EFIAPI
26 IN UINT32 Value
27 )
28{
29 UINT32 LowerBytes;
30 UINT32 HigherBytes;
31
32 LowerBytes = (UINT32)SwapBytes16 ((UINT16)Value);
33 HigherBytes = (UINT32)SwapBytes16 ((UINT16)(Value >> 16));
34
35 return (LowerBytes << 16 | HigherBytes);
36}
UINT16 EFIAPI SwapBytes16(IN UINT16 Value)
Definition: SwapBytes16.c:25
#define IN
Definition: Base.h:279
UINT32 EFIAPI SwapBytes32(IN UINT32 Value)
Definition: SwapBytes32.c:25