/vbox/src/VBox/Devices/EFI/Firmware/MdePkg/Library/BaseLib/ |
H A D | DivS64x64Remainder.c | 25 value Divisor and generates a 64-bit signed quotient. If Remainder is not 29 It is the caller's responsibility to not call this function with a Divisor of 0. 30 If Divisor is 0, then the quotient and remainder should be assumed to be 33 If Divisor is 0, then ASSERT(). 36 @param Divisor A 64-bit signed value. 40 @return Dividend / Divisor 47 IN INT64 Divisor, 51 ASSERT (Divisor != 0); 52 return InternalMathDivRemS64x64 (Dividend, Divisor, Remainder); 45 DivS64x64Remainder( IN INT64 Dividend, IN INT64 Divisor, OUT INT64 *Remainder OPTIONAL ) argument
|
H A D | DivU64x32Remainder.c | 25 unsigned value Divisor and generates a 64-bit unsigned quotient. If Remainder 29 If Divisor is 0, then ASSERT(). 32 @param Divisor A 32-bit unsigned value. 36 @return Dividend / Divisor 43 IN UINT32 Divisor, 47 ASSERT (Divisor != 0); 48 return InternalMathDivRemU64x32 (Dividend, Divisor, Remainder); 41 DivU64x32Remainder( IN UINT64 Dividend, IN UINT32 Divisor, OUT UINT32 *Remainder OPTIONAL ) argument
|
H A D | DivU64x64Remainder.c | 25 unsigned value Divisor and generates a 64-bit unsigned quotient. If Remainder 29 If Divisor is 0, then ASSERT(). 32 @param Divisor A 64-bit unsigned value. 36 @return Dividend / Divisor 43 IN UINT64 Divisor, 47 ASSERT (Divisor != 0); 48 return InternalMathDivRemU64x64 (Dividend, Divisor, Remainder); 41 DivU64x64Remainder( IN UINT64 Dividend, IN UINT64 Divisor, OUT UINT64 *Remainder OPTIONAL ) argument
|
H A D | Math64.c | 234 unsigned value Divisor and generates a 64-bit unsigned quotient. This 238 @param Divisor A 32-bit unsigned value. 240 @return Dividend / Divisor. 247 IN UINT32 Divisor 250 return Dividend / Divisor; 258 unsigned value Divisor and generates a 32-bit remainder. This function 262 @param Divisor A 32-bit unsigned value. 264 @return Dividend % Divisor. 271 IN UINT32 Divisor 274 return (UINT32)(Dividend % Divisor); 296 InternalMathDivRemU64x32( IN UINT64 Dividend, IN UINT32 Divisor, OUT UINT32 *Remainder OPTIONAL ) argument 327 InternalMathDivRemU64x64( IN UINT64 Dividend, IN UINT64 Divisor, OUT UINT64 *Remainder OPTIONAL ) argument 358 InternalMathDivRemS64x64( IN INT64 Dividend, IN INT64 Divisor, OUT INT64 *Remainder OPTIONAL ) argument [all...] |
/vbox/src/VBox/Devices/EFI/Firmware/MdePkg/Library/BaseLib/Ia32/ |
H A D | DivS64x64Remainder.c | 22 signed value Divisor and generates a 64-bit signed quotient. If Remainder 27 @param Divisor A 64-bit signed value. 31 @return Dividend / Divisor 38 IN INT64 Divisor, 46 (UINT64) (Divisor >= 0 ? Divisor : -Divisor), 52 return (Dividend ^ Divisor) >= 0 ? Quot : -Quot; 36 InternalMathDivRemS64x64( IN INT64 Dividend, IN INT64 Divisor, OUT INT64 *Remainder OPTIONAL ) argument
|
H A D | DivU64x32Remainder.c | 20 unsigned value Divisor and generates a 64-bit unsigned quotient. If Remainder 25 @param Divisor A 32-bit unsigned value. 29 @return Dividend / Divisor 36 IN UINT32 Divisor, 41 mov ecx, Divisor 34 InternalMathDivRemU64x32( IN UINT64 Dividend, IN UINT32 Divisor, OUT UINT32 *Remainder ) argument
|
/vbox/src/VBox/Devices/EFI/Firmware/UefiCpuPkg/Library/SecPeiDxeTimerLibUefiCpu/ |
H A D | X86TimerLib.c | 36 UINTN Divisor; local 38 GetApicTimerState (&Divisor, NULL, NULL); 39 return PcdGet32(PcdFSBClock) / (UINT32)Divisor;
|
/vbox/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Library/BaseSerialPortLib16550/ |
H A D | BaseSerialPortLib16550.c | 109 UINTN Divisor; local 133 Divisor = SerialPortReadRegister (R_UART_BAUD_HIGH) << 8; 134 Divisor |= SerialPortReadRegister (R_UART_BAUD_LOW); 136 if (Divisor != 115200 / PcdGet32 (PcdSerialBaudRate)) { 146 Divisor = 115200 / PcdGet32 (PcdSerialBaudRate); 148 SerialPortWriteRegister (R_UART_BAUD_HIGH, (UINT8) (Divisor >> 8)); 149 SerialPortWriteRegister (R_UART_BAUD_LOW, (UINT8) (Divisor & 0xff));
|
/vbox/src/VBox/Devices/EFI/Firmware/PcAtChipsetPkg/Library/SerialIoLib/ |
H A D | SerialPortLib.c | 70 UINTN Divisor; local 82 Divisor = 115200 / gBps; 93 IoWrite8 ((UINTN) (gUartBase + BAUD_HIGH_OFFSET), (UINT8) (Divisor >> 8)); 94 IoWrite8 ((UINTN) (gUartBase + BAUD_LOW_OFFSET), (UINT8) (Divisor & 0xff));
|
/vbox/src/VBox/Devices/EFI/Firmware/StdLib/LibC/CRT/ |
H A D | Gcc.c | 62 // Return the quotient of the signed division of Dividend and Divisor 64 int __divsi3(int Dividend, int Divisor) argument 67 return (int) DivS64x64Remainder ((INT64) Dividend, (INT64) Divisor, NULL); 70 INT64 __divdi3(INT64 Dividend, INT64 Divisor) argument 74 Quotient = DivS64x64Remainder ((INT64) Dividend, (INT64) Divisor, NULL); 75 DEBUG((DEBUG_INFO, "%a: %Ld / %Ld = %Ld\n", __func__, Dividend, Divisor, Quotient)); 80 long long __divti3(long long Dividend, long long Divisor) argument 83 return (long long) DivS64x64Remainder ((INT64) Dividend, (INT64) Divisor, NULL); 106 // Return the remainder of the signed division of Dividend and Divisor 108 int __modsi3(int Dividend, int Divisor) argument 118 __moddi3(INT64 Dividend, INT64 Divisor) argument 128 __modti3(long long Dividend, long long Divisor) argument 148 __udivsi3(unsigned int Dividend, unsigned int Divisor) argument 154 __udivdi3(unsigned long Dividend, unsigned long Divisor) argument 160 __udivti3(unsigned long long Dividend, unsigned long long Divisor) argument 167 __umodsi3(unsigned int Dividend, unsigned int Divisor) argument 177 __umoddi3(unsigned long Dividend, unsigned long Divisor) argument 187 __umodti3(unsigned long long Dividend, unsigned long long Divisor) argument [all...] |
/vbox/src/VBox/Devices/EFI/Firmware/UefiCpuPkg/Library/BaseXApicLib/ |
H A D | BaseXApicLib.c | 536 UINT32 Divisor; local 553 Divisor = (UINT32)((HighBitSet32 ((UINT32)DivideValue) - 1) & 0x7); 556 Dcr.Bits.DivideValue1 = (Divisor & 0x3); 557 Dcr.Bits.DivideValue2 = (Divisor >> 2); 590 UINT32 Divisor; local 596 Divisor = Dcr.Bits.DivideValue1 | (Dcr.Bits.DivideValue2 << 2); 597 Divisor = (Divisor + 1) & 0x7; 598 *DivideValue = ((UINTN)1) << Divisor;
|
/vbox/src/VBox/Devices/EFI/Firmware/UefiCpuPkg/Library/BaseXApicX2ApicLib/ |
H A D | BaseXApicX2ApicLib.c | 619 UINT32 Divisor; local 636 Divisor = (UINT32)((HighBitSet32 ((UINT32)DivideValue) - 1) & 0x7); 639 Dcr.Bits.DivideValue1 = (Divisor & 0x3); 640 Dcr.Bits.DivideValue2 = (Divisor >> 2); 673 UINT32 Divisor; local 679 Divisor = Dcr.Bits.DivideValue1 | (Dcr.Bits.DivideValue2 << 2); 680 Divisor = (Divisor + 1) & 0x7; 681 *DivideValue = ((UINTN)1) << Divisor;
|
/vbox/src/VBox/Devices/EFI/Firmware/IntelFrameworkModulePkg/Bus/Isa/IsaSerialDxe/ |
H A D | Serial.c | 1263 UINT32 Divisor; local 1384 Divisor = (UINT32) DivU64x32Remainder ( 1390 Divisor += 1; 1393 if ((Divisor == 0) || ((Divisor & 0xffff0000) != 0)) { 1402 BaudRate = SERIAL_PORT_INPUT_CLOCK / Divisor / 16; 1405 // Put serial port on Divisor Latch Mode 1414 WRITE_DLL (SerialDevice->IsaIo, SerialDevice->BaseAddress, (UINT8) (Divisor & 0xff)); 1415 WRITE_DLM (SerialDevice->IsaIo, SerialDevice->BaseAddress, (UINT8) ((Divisor >> 8) & 0xff));
|