Lines Matching defs:EndBit

20   Returns the bitfield specified by the StartBit and the EndBit from Operand.
24 @param EndBit The ordinal of the most significant bit in the bit field.
34 IN UINTN EndBit
38 // ~((UINTN)-2 << EndBit) is a mask in which bit[0] thru bit[EndBit]
39 // are 1's while bit[EndBit + 1] thru the most significant bit are 0's.
41 return (Operand & ~((UINTN)-2 << EndBit)) >> StartBit;
48 Performs a bitwise OR between the bit field specified by StartBit and EndBit
54 @param EndBit The ordinal of the most significant bit in the bit field.
65 IN UINTN EndBit,
70 // ~((UINTN)-2 << EndBit) is a mask in which bit[0] thru bit[EndBit]
71 // are 1's while bit[EndBit + 1] thru the most significant bit are 0's.
73 return Operand | ((OrData << StartBit) & ~((UINTN) -2 << EndBit));
80 Performs a bitwise AND between the bit field specified by StartBit and EndBit
86 @param EndBit The ordinal of the most significant bit in the bit field.
97 IN UINTN EndBit,
102 // ~((UINTN)-2 << EndBit) is a mask in which bit[0] thru bit[EndBit]
103 // are 1's while bit[EndBit + 1] thru the most significant bit are 0's.
105 return Operand & ~((~AndData << StartBit) & ~((UINTN)-2 << EndBit));
111 Returns the bitfield specified by the StartBit and the EndBit from Operand.
115 If EndBit is greater than 7, then ASSERT().
116 If EndBit is less than StartBit, then ASSERT().
121 @param EndBit The ordinal of the most significant bit in the bit field.
132 IN UINTN EndBit
135 ASSERT (EndBit < 8);
136 ASSERT (StartBit <= EndBit);
137 return (UINT8)InternalBaseLibBitFieldReadUint (Operand, StartBit, EndBit);
143 Writes Value to the bit field specified by the StartBit and the EndBit in
149 If EndBit is greater than 7, then ASSERT().
150 If EndBit is less than StartBit, then ASSERT().
155 @param EndBit The ordinal of the most significant bit in the bit field.
167 IN UINTN EndBit,
171 ASSERT (EndBit < 8);
172 ASSERT (StartBit <= EndBit);
173 return BitFieldAndThenOr8 (Operand, StartBit, EndBit, 0, Value);
181 and EndBit in Operand and the value specified by OrData. All other bits in
186 If EndBit is greater than 7, then ASSERT().
187 If EndBit is less than StartBit, then ASSERT().
192 @param EndBit The ordinal of the most significant bit in the bit field.
204 IN UINTN EndBit,
208 ASSERT (EndBit < 8);
209 ASSERT (StartBit <= EndBit);
210 return (UINT8)InternalBaseLibBitFieldOrUint (Operand, StartBit, EndBit, OrData);
217 Performs a bitwise AND between the bit field specified by StartBit and EndBit
223 If EndBit is greater than 7, then ASSERT().
224 If EndBit is less than StartBit, then ASSERT().
229 @param EndBit The ordinal of the most significant bit in the bit field.
241 IN UINTN EndBit,
245 ASSERT (EndBit < 8);
246 ASSERT (StartBit <= EndBit);
247 return (UINT8)InternalBaseLibBitFieldAndUint (Operand, StartBit, EndBit, AndData);
254 Performs a bitwise AND between the bit field specified by StartBit and EndBit
261 If EndBit is greater than 7, then ASSERT().
262 If EndBit is less than StartBit, then ASSERT().
267 @param EndBit The ordinal of the most significant bit in the bit field.
280 IN UINTN EndBit,
285 ASSERT (EndBit < 8);
286 ASSERT (StartBit <= EndBit);
288 BitFieldAnd8 (Operand, StartBit, EndBit, AndData),
290 EndBit,
298 Returns the bitfield specified by the StartBit and the EndBit from Operand.
302 If EndBit is greater than 15, then ASSERT().
303 If EndBit is less than StartBit, then ASSERT().
308 @param EndBit The ordinal of the most significant bit in the bit field.
319 IN UINTN EndBit
322 ASSERT (EndBit < 16);
323 ASSERT (StartBit <= EndBit);
324 return (UINT16)InternalBaseLibBitFieldReadUint (Operand, StartBit, EndBit);
330 Writes Value to the bit field specified by the StartBit and the EndBit in
336 If EndBit is greater than 15, then ASSERT().
337 If EndBit is less than StartBit, then ASSERT().
342 @param EndBit The ordinal of the most significant bit in the bit field.
354 IN UINTN EndBit,
358 ASSERT (EndBit < 16);
359 ASSERT (StartBit <= EndBit);
360 return BitFieldAndThenOr16 (Operand, StartBit, EndBit, 0, Value);
368 and EndBit in Operand and the value specified by OrData. All other bits in
373 If EndBit is greater than 15, then ASSERT().
374 If EndBit is less than StartBit, then ASSERT().
379 @param EndBit The ordinal of the most significant bit in the bit field.
391 IN UINTN EndBit,
395 ASSERT (EndBit < 16);
396 ASSERT (StartBit <= EndBit);
397 return (UINT16)InternalBaseLibBitFieldOrUint (Operand, StartBit, EndBit, OrData);
404 Performs a bitwise AND between the bit field specified by StartBit and EndBit
410 If EndBit is greater than 15, then ASSERT().
411 If EndBit is less than StartBit, then ASSERT().
416 @param EndBit The ordinal of the most significant bit in the bit field.
428 IN UINTN EndBit,
432 ASSERT (EndBit < 16);
433 ASSERT (StartBit <= EndBit);
434 return (UINT16)InternalBaseLibBitFieldAndUint (Operand, StartBit, EndBit, AndData);
441 Performs a bitwise AND between the bit field specified by StartBit and EndBit
448 If EndBit is greater than 15, then ASSERT().
449 If EndBit is less than StartBit, then ASSERT().
454 @param EndBit The ordinal of the most significant bit in the bit field.
467 IN UINTN EndBit,
472 ASSERT (EndBit < 16);
473 ASSERT (StartBit <= EndBit);
475 BitFieldAnd16 (Operand, StartBit, EndBit, AndData),
477 EndBit,
485 Returns the bitfield specified by the StartBit and the EndBit from Operand.
489 If EndBit is greater than 31, then ASSERT().
490 If EndBit is less than StartBit, then ASSERT().
495 @param EndBit The ordinal of the most significant bit in the bit field.
506 IN UINTN EndBit
509 ASSERT (EndBit < 32);
510 ASSERT (StartBit <= EndBit);
511 return (UINT32)InternalBaseLibBitFieldReadUint (Operand, StartBit, EndBit);
517 Writes Value to the bit field specified by the StartBit and the EndBit in
523 If EndBit is greater than 31, then ASSERT().
524 If EndBit is less than StartBit, then ASSERT().
529 @param EndBit The ordinal of the most significant bit in the bit field.
541 IN UINTN EndBit,
545 ASSERT (EndBit < 32);
546 ASSERT (StartBit <= EndBit);
547 return BitFieldAndThenOr32 (Operand, StartBit, EndBit, 0, Value);
555 and EndBit in Operand and the value specified by OrData. All other bits in
560 If EndBit is greater than 31, then ASSERT().
561 If EndBit is less than StartBit, then ASSERT().
566 @param EndBit The ordinal of the most significant bit in the bit field.
578 IN UINTN EndBit,
582 ASSERT (EndBit < 32);
583 ASSERT (StartBit <= EndBit);
584 return (UINT32)InternalBaseLibBitFieldOrUint (Operand, StartBit, EndBit, OrData);
591 Performs a bitwise AND between the bit field specified by StartBit and EndBit
597 If EndBit is greater than 31, then ASSERT().
598 If EndBit is less than StartBit, then ASSERT().
603 @param EndBit The ordinal of the most significant bit in the bit field.
615 IN UINTN EndBit,
619 ASSERT (EndBit < 32);
620 ASSERT (StartBit <= EndBit);
621 return (UINT32)InternalBaseLibBitFieldAndUint (Operand, StartBit, EndBit, AndData);
628 Performs a bitwise AND between the bit field specified by StartBit and EndBit
635 If EndBit is greater than 31, then ASSERT().
636 If EndBit is less than StartBit, then ASSERT().
641 @param EndBit The ordinal of the most significant bit in the bit field.
654 IN UINTN EndBit,
659 ASSERT (EndBit < 32);
660 ASSERT (StartBit <= EndBit);
662 BitFieldAnd32 (Operand, StartBit, EndBit, AndData),
664 EndBit,
672 Returns the bitfield specified by the StartBit and the EndBit from Operand.
676 If EndBit is greater than 63, then ASSERT().
677 If EndBit is less than StartBit, then ASSERT().
682 @param EndBit The ordinal of the most significant bit in the bit field.
693 IN UINTN EndBit
696 ASSERT (EndBit < 64);
697 ASSERT (StartBit <= EndBit);
698 return RShiftU64 (Operand & ~LShiftU64 ((UINT64)-2, EndBit), StartBit);
704 Writes Value to the bit field specified by the StartBit and the EndBit in
710 If EndBit is greater than 63, then ASSERT().
711 If EndBit is less than StartBit, then ASSERT().
716 @param EndBit The ordinal of the most significant bit in the bit field.
728 IN UINTN EndBit,
732 ASSERT (EndBit < 64);
733 ASSERT (StartBit <= EndBit);
734 return BitFieldAndThenOr64 (Operand, StartBit, EndBit, 0, Value);
742 and EndBit in Operand and the value specified by OrData. All other bits in
747 If EndBit is greater than 63, then ASSERT().
748 If EndBit is less than StartBit, then ASSERT().
753 @param EndBit The ordinal of the most significant bit in the bit field.
765 IN UINTN EndBit,
772 ASSERT (EndBit < 64);
773 ASSERT (StartBit <= EndBit);
776 Value2 = LShiftU64 ((UINT64) - 2, EndBit);
785 Performs a bitwise AND between the bit field specified by StartBit and EndBit
791 If EndBit is greater than 63, then ASSERT().
792 If EndBit is less than StartBit, then ASSERT().
797 @param EndBit The ordinal of the most significant bit in the bit field.
809 IN UINTN EndBit,
816 ASSERT (EndBit < 64);
817 ASSERT (StartBit <= EndBit);
820 Value2 = LShiftU64 ((UINT64)-2, EndBit);
829 Performs a bitwise AND between the bit field specified by StartBit and EndBit
836 If EndBit is greater than 63, then ASSERT().
837 If EndBit is less than StartBit, then ASSERT().
842 @param EndBit The ordinal of the most significant bit in the bit field.
855 IN UINTN EndBit,
860 ASSERT (EndBit < 64);
861 ASSERT (StartBit <= EndBit);
863 BitFieldAnd64 (Operand, StartBit, EndBit, AndData),
865 EndBit,