/* Returns the bitfield specified by the StartBit and the EndBit from Operand. */
UINTN EFIAPI InternalBaseLibBitFieldReadUint(IN UINTN Operand, IN UINTN StartBit, IN UINTN EndBit)
/* Returns the bitfield specified by the StartBit and the EndBit from Operand. */
UINTN EFIAPI InternalBaseLibBitFieldReadUint(IN UINTN Operand, IN UINTN StartBit, IN UINTN EndBit)
{
  return (Operand & ~((UINTN)-2 << EndBit)) >> StartBit;
}