32 return Operand << Count;
55 return Operand >> Count;
83 TestValue = (
INTN)((INT64)(1ULL << 63) >> 63);
84 if (TestValue == -1) {
88 return (UINT64)((INT64)Operand >> Count);
94 return (Operand >> Count) |
95 ((
INTN)Operand < 0 ? ~((
UINTN)-1 >> Count) : 0);
119 return (Operand << Count) | (Operand >> (64 - Count));
143 return (Operand >> Count) | (Operand << (64 - Count));
167 LowerBytes = (UINT64)
SwapBytes32 ((UINT32)Operand);
168 HigherBytes = (UINT64)
SwapBytes32 ((UINT32)(Operand >> 32));
170 return (LowerBytes << 32 | HigherBytes);
190 IN UINT64 Multiplicand,
194 return Multiplicand * Multiplier;
214 IN UINT64 Multiplicand,
218 return Multiplicand * Multiplier;
242 return Dividend / Divisor;
266 return (UINT32)(Dividend % Divisor);
291 OUT UINT32 *Remainder OPTIONAL
294 if (Remainder !=
NULL) {
295 *Remainder = (UINT32)(Dividend % Divisor);
298 return Dividend / Divisor;
323 OUT UINT64 *Remainder OPTIONAL
326 if (Remainder !=
NULL) {
327 *Remainder = Dividend % Divisor;
330 return Dividend / Divisor;
355 OUT INT64 *Remainder OPTIONAL
358 if (Remainder !=
NULL) {
359 *Remainder = Dividend % Divisor;
362 return Dividend / Divisor;
UINT32 EFIAPI SwapBytes32(IN UINT32 Value)
UINT64 EFIAPI InternalMathMultU64x64(IN UINT64 Multiplicand, IN UINT64 Multiplier)
UINT64 EFIAPI InternalMathDivRemU64x64(IN UINT64 Dividend, IN UINT64 Divisor, OUT UINT64 *Remainder OPTIONAL)
UINT64 EFIAPI InternalMathRRotU64(IN UINT64 Operand, IN UINTN Count)
UINT64 EFIAPI InternalMathSwapBytes64(IN UINT64 Operand)
UINT64 EFIAPI InternalMathDivU64x32(IN UINT64 Dividend, IN UINT32 Divisor)
UINT64 EFIAPI InternalMathLShiftU64(IN UINT64 Operand, IN UINTN Count)
INT64 EFIAPI InternalMathDivRemS64x64(IN INT64 Dividend, IN INT64 Divisor, OUT INT64 *Remainder OPTIONAL)
UINT64 EFIAPI InternalMathDivRemU64x32(IN UINT64 Dividend, IN UINT32 Divisor, OUT UINT32 *Remainder OPTIONAL)
UINT32 EFIAPI InternalMathModU64x32(IN UINT64 Dividend, IN UINT32 Divisor)
UINT64 EFIAPI InternalMathMultU64x32(IN UINT64 Multiplicand, IN UINT32 Multiplier)
UINT64 EFIAPI InternalMathRShiftU64(IN UINT64 Operand, IN UINTN Count)
UINT64 EFIAPI InternalMathLRotU64(IN UINT64 Operand, IN UINTN Count)
UINT64 EFIAPI InternalMathARShiftU64(IN UINT64 Operand, IN UINTN Count)