33 volatile UINT8 LowerByte;
34 volatile UINT8 HigherByte;
36 ASSERT (Buffer !=
NULL);
38 LowerByte = ((UINT8 *)Buffer)[0];
39 HigherByte = ((UINT8 *)Buffer)[1];
41 return (UINT16)(LowerByte | (HigherByte << 8));
66 ASSERT (Buffer !=
NULL);
68 ((
volatile UINT8 *)Buffer)[0] = (UINT8)Value;
69 ((
volatile UINT8 *)Buffer)[1] = (UINT8)(Value >> 8);
93 ASSERT (Buffer !=
NULL);
97 (((UINT8 *)Buffer)[2] << 16)
123 ASSERT (Buffer !=
NULL);
126 *(UINT8 *)((UINT16 *)Buffer + 1) = (UINT8)(Value >> 16);
152 ASSERT (Buffer !=
NULL);
157 return (UINT32)(LowerBytes | (HigherBytes << 16));
182 ASSERT (Buffer !=
NULL);
211 ASSERT (Buffer !=
NULL);
216 return (UINT64)(LowerBytes |
LShiftU64 (HigherBytes, 32));
241 ASSERT (Buffer !=
NULL);
UINT32 EFIAPI WriteUnaligned24(OUT UINT32 *Buffer, IN UINT32 Value)
UINT64 EFIAPI ReadUnaligned64(IN CONST UINT64 *Buffer)
UINT16 EFIAPI ReadUnaligned16(IN CONST UINT16 *Buffer)
UINT32 EFIAPI WriteUnaligned32(OUT UINT32 *Buffer, IN UINT32 Value)
UINT16 EFIAPI WriteUnaligned16(OUT UINT16 *Buffer, IN UINT16 Value)
UINT32 EFIAPI ReadUnaligned24(IN CONST UINT32 *Buffer)
UINT64 EFIAPI WriteUnaligned64(OUT UINT64 *Buffer, IN UINT64 Value)
UINT32 EFIAPI ReadUnaligned32(IN CONST UINT32 *Buffer)
UINT64 EFIAPI RShiftU64(IN UINT64 Operand, IN UINTN Count)
UINT64 EFIAPI LShiftU64(IN UINT64 Operand, IN UINTN Count)