35 return (Operand & ~((
UINTN)-2 << EndBit)) >> StartBit;
71 ASSERT ((OrData >> (EndBit - StartBit)) == ((OrData >> (EndBit - StartBit)) & 1));
77 return Operand | ((OrData << StartBit) & ~((
UINTN)-2 << EndBit));
113 ASSERT ((AndData >> (EndBit - StartBit)) == ((AndData >> (EndBit - StartBit)) & 1));
119 return Operand & ~((~AndData << StartBit) & ~((
UINTN)-2 << EndBit));
150 ASSERT (StartBit <= EndBit);
187 ASSERT (StartBit <= EndBit);
225 ASSERT (StartBit <= EndBit);
263 ASSERT (StartBit <= EndBit);
305 ASSERT (StartBit <= EndBit);
341 ASSERT (EndBit < 16);
342 ASSERT (StartBit <= EndBit);
378 ASSERT (EndBit < 16);
379 ASSERT (StartBit <= EndBit);
416 ASSERT (EndBit < 16);
417 ASSERT (StartBit <= EndBit);
454 ASSERT (EndBit < 16);
455 ASSERT (StartBit <= EndBit);
496 ASSERT (EndBit < 16);
497 ASSERT (StartBit <= EndBit);
533 ASSERT (EndBit < 32);
534 ASSERT (StartBit <= EndBit);
570 ASSERT (EndBit < 32);
571 ASSERT (StartBit <= EndBit);
608 ASSERT (EndBit < 32);
609 ASSERT (StartBit <= EndBit);
646 ASSERT (EndBit < 32);
647 ASSERT (StartBit <= EndBit);
688 ASSERT (EndBit < 32);
689 ASSERT (StartBit <= EndBit);
725 ASSERT (EndBit < 64);
726 ASSERT (StartBit <= EndBit);
762 ASSERT (EndBit < 64);
763 ASSERT (StartBit <= EndBit);
803 ASSERT (EndBit < 64);
804 ASSERT (StartBit <= EndBit);
811 ASSERT (
RShiftU64 (OrData, EndBit - StartBit) == (
RShiftU64 (OrData, EndBit - StartBit) & 1));
816 return Operand | (Value1 & ~Value2);
855 ASSERT (EndBit < 64);
856 ASSERT (StartBit <= EndBit);
863 ASSERT (
RShiftU64 (AndData, EndBit - StartBit) == (
RShiftU64 (AndData, EndBit - StartBit) & 1));
868 return Operand & ~(Value1 & ~Value2);
908 ASSERT (EndBit < 64);
909 ASSERT (StartBit <= EndBit);
948 ASSERT (EndBit < 32);
949 ASSERT (StartBit <= EndBit);
952 Count -= ((Count >> 1) & 0x55555555);
953 Count = (Count & 0x33333333) + ((Count >> 2) & 0x33333333);
957 Count += Count >> 16;
959 return (UINT8)Count & 0x3F;
993 ASSERT (EndBit < 64);
994 ASSERT (StartBit <= EndBit);
UINT64 EFIAPI RShiftU64(IN UINT64 Operand, IN UINTN Count)
UINT64 EFIAPI LShiftU64(IN UINT64 Operand, IN UINTN Count)
UINT32 EFIAPI BitFieldAnd32(IN UINT32 Operand, IN UINTN StartBit, IN UINTN EndBit, IN UINT32 AndData)
UINT64 EFIAPI BitFieldOr64(IN UINT64 Operand, IN UINTN StartBit, IN UINTN EndBit, IN UINT64 OrData)
UINT8 EFIAPI BitFieldCountOnes64(IN UINT64 Operand, IN UINTN StartBit, IN UINTN EndBit)
UINT16 EFIAPI BitFieldAnd16(IN UINT16 Operand, IN UINTN StartBit, IN UINTN EndBit, IN UINT16 AndData)
UINT64 EFIAPI BitFieldAndThenOr64(IN UINT64 Operand, IN UINTN StartBit, IN UINTN EndBit, IN UINT64 AndData, IN UINT64 OrData)
UINT8 EFIAPI BitFieldAndThenOr8(IN UINT8 Operand, IN UINTN StartBit, IN UINTN EndBit, IN UINT8 AndData, IN UINT8 OrData)
UINT32 EFIAPI BitFieldAndThenOr32(IN UINT32 Operand, IN UINTN StartBit, IN UINTN EndBit, IN UINT32 AndData, IN UINT32 OrData)
UINTN EFIAPI InternalBaseLibBitFieldAndUint(IN UINTN Operand, IN UINTN StartBit, IN UINTN EndBit, IN UINTN AndData)
UINTN EFIAPI InternalBaseLibBitFieldReadUint(IN UINTN Operand, IN UINTN StartBit, IN UINTN EndBit)
UINT32 EFIAPI BitFieldWrite32(IN UINT32 Operand, IN UINTN StartBit, IN UINTN EndBit, IN UINT32 Value)
UINT16 EFIAPI BitFieldAndThenOr16(IN UINT16 Operand, IN UINTN StartBit, IN UINTN EndBit, IN UINT16 AndData, IN UINT16 OrData)
UINT32 EFIAPI BitFieldOr32(IN UINT32 Operand, IN UINTN StartBit, IN UINTN EndBit, IN UINT32 OrData)
UINT64 EFIAPI BitFieldWrite64(IN UINT64 Operand, IN UINTN StartBit, IN UINTN EndBit, IN UINT64 Value)
UINT8 EFIAPI BitFieldWrite8(IN UINT8 Operand, IN UINTN StartBit, IN UINTN EndBit, IN UINT8 Value)
UINT8 EFIAPI BitFieldRead8(IN UINT8 Operand, IN UINTN StartBit, IN UINTN EndBit)
UINT8 EFIAPI BitFieldAnd8(IN UINT8 Operand, IN UINTN StartBit, IN UINTN EndBit, IN UINT8 AndData)
UINTN EFIAPI InternalBaseLibBitFieldOrUint(IN UINTN Operand, IN UINTN StartBit, IN UINTN EndBit, IN UINTN OrData)
UINT16 EFIAPI BitFieldWrite16(IN UINT16 Operand, IN UINTN StartBit, IN UINTN EndBit, IN UINT16 Value)
UINT64 EFIAPI BitFieldRead64(IN UINT64 Operand, IN UINTN StartBit, IN UINTN EndBit)
UINT64 EFIAPI BitFieldAnd64(IN UINT64 Operand, IN UINTN StartBit, IN UINTN EndBit, IN UINT64 AndData)
UINT16 EFIAPI BitFieldOr16(IN UINT16 Operand, IN UINTN StartBit, IN UINTN EndBit, IN UINT16 OrData)
UINT8 EFIAPI BitFieldCountOnes32(IN UINT32 Operand, IN UINTN StartBit, IN UINTN EndBit)
UINT16 EFIAPI BitFieldRead16(IN UINT16 Operand, IN UINTN StartBit, IN UINTN EndBit)
UINT8 EFIAPI BitFieldOr8(IN UINT8 Operand, IN UINTN StartBit, IN UINTN EndBit, IN UINT8 OrData)
UINT32 EFIAPI BitFieldRead32(IN UINT32 Operand, IN UINTN StartBit, IN UINTN EndBit)