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. **/
| 24 | |
| 25 | **/ |
| 26 | UINT32 |
| 27 | EFIAPI |
| 28 | SwapBytes32 ( |
| 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 | } |
no test coverage detected