MCPcopy Create free account
hub / github.com/CloverHackyColor/CloverBootloader / SwapBytes32

Function SwapBytes32

MdePkg/Library/BaseLib/SwapBytes32.c:26–39  ·  view source on GitHub ↗

Switches the endianess of a 32-bit integer. This function swaps the bytes in a 32-bit unsigned value to switch the value from little endian to big endian or vice versa. The byte swapped value is returned. @param Value A 32-bit unsigned value. @return The byte swapped Value. **/

Source from the content-addressed store, hash-verified

24
25**/
26UINT32
27EFIAPI
28SwapBytes32 (
29 IN UINT32 Value
30 )
31{
32 UINT32 LowerBytes;
33 UINT32 HigherBytes;
34
35 LowerBytes = (UINT32) SwapBytes16 ((UINT16) Value);
36 HigherBytes = (UINT32) SwapBytes16 ((UINT16) (Value >> 16));
37
38 return (LowerBytes << 16 | HigherBytes);
39}

Callers 15

StrToGuidFunction · 0.70
AsciiStrToGuidFunction · 0.70
InternalMathSwapBytes64Function · 0.70
UefiScsiLib.cFile · 0.50
ThinFatFileFunction · 0.50
patch_mkext_v1Method · 0.50
devprop_generate_stringFunction · 0.50
swab32Function · 0.50
ScsiDiskUnmapFunction · 0.50
UfsPeimRead10Function · 0.50
UfsPeimRead16Function · 0.50

Calls 1

SwapBytes16Function · 0.70

Tested by

no test coverage detected