/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/ |
H A D | DivS64x64Remainder.c | 30 value Divisor and generates a 64-bit signed quotient. If Remainder is not
34 If Divisor is 0, then ASSERT().
37 @param Divisor A 64-bit signed value.
41 @return Dividend / Divisor
48 IN INT64 Divisor,
52 ASSERT (Divisor != 0);
53 return InternalMathDivRemS64x64 (Dividend, Divisor, Remainder);
46 DivS64x64Remainder( IN INT64 Dividend, IN INT64 Divisor, OUT INT64 *Remainder OPTIONAL ) argument
|
H A D | DivU64x32Remainder.c | 30 unsigned value Divisor and generates a 64-bit unsigned quotient. If Remainder
34 If Divisor is 0, then ASSERT().
37 @param Divisor A 32-bit unsigned value.
41 @return Dividend / Divisor
48 IN UINT32 Divisor,
52 ASSERT (Divisor != 0);
53 return InternalMathDivRemU64x32 (Dividend, Divisor, Remainder);
46 DivU64x32Remainder( IN UINT64 Dividend, IN UINT32 Divisor, OUT UINT32 *Remainder OPTIONAL ) argument
|
H A D | DivU64x64Remainder.c | 29 unsigned value Divisor and generates a 64-bit unsigned quotient. If Remainder
33 If Divisor is 0, then ASSERT().
36 @param Divisor A 64-bit unsigned value.
40 @return Dividend / Divisor
47 IN UINT64 Divisor,
51 ASSERT (Divisor != 0);
52 return InternalMathDivRemU64x64 (Dividend, Divisor, Remainder);
45 DivU64x64Remainder( IN UINT64 Dividend, IN UINT64 Divisor, OUT UINT64 *Remainder OPTIONAL ) argument
|
H A D | Math64.c | 244 unsigned value Divisor and generates a 64-bit unsigned quotient. This
248 @param Divisor A 32-bit unsigned value.
250 @return Dividend / Divisor
257 IN UINT32 Divisor
260 return Dividend / Divisor;
268 unsigned value Divisor and generates a 32-bit remainder. This function
272 @param Divisor A 32-bit unsigned value.
274 @return Dividend % Divisor
281 IN UINT32 Divisor
284 return (UINT32)(Dividend % Divisor);
306 InternalMathDivRemU64x32( IN UINT64 Dividend, IN UINT32 Divisor, OUT UINT32 *Remainder OPTIONAL ) argument 337 InternalMathDivRemU64x64( IN UINT64 Dividend, IN UINT64 Divisor, OUT UINT64 *Remainder OPTIONAL ) argument 367 InternalMathDivRemS64x64( IN INT64 Dividend, IN INT64 Divisor, OUT INT64 *Remainder OPTIONAL ) argument [all...] |
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/Ia32/ |
H A D | DivS64x64Remainder.c | 30 unsigned value Divisor and generates a 64-bit unsigned quotient. If Remainder
35 @param Divisor A 64-bit signed value.
39 @return Dividend / Divisor
45 IN INT64 Divisor,
53 (UINT64) (Divisor >= 0 ? Divisor : -Divisor),
59 return (Dividend ^ Divisor) >= 0 ? Quot : -Quot;
43 InternalMathDivRemS64x64( IN INT64 Dividend, IN INT64 Divisor, OUT INT64 *Remainder OPTIONAL ) argument
|
H A D | DivU64x32Remainder.c | 21 IN UINT32 Divisor,
26 mov ecx, Divisor
19 InternalMathDivRemU64x32( IN UINT64 Dividend, IN UINT32 Divisor, OUT UINT32 *Remainder ) argument
|
H A D | DivU64x64Remainder.c | 22 IN UINT64 Divisor,
31 mov ecx, dword ptr [Divisor + 4]
32 mov ebx, dword ptr [Divisor + 0] // ecx:ebx <- divisor
41 mov ecx, dword ptr [Divisor + 4]
42 mul dword ptr [Divisor]
55 sub eax, dword ptr [Divisor + 0]
56 sbb edx, dword ptr [Divisor + 4]
20 InternalMathDivRemU64x64( IN UINT64 Dividend, IN UINT64 Divisor, OUT UINT64 *Remainder OPTIONAL ) argument
|
/device/linaro/bootloader/edk2/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...] |
/device/linaro/bootloader/edk2/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
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/Pei/PeiLib/X64/ |
H A D | Math.c | 87 IN UINTN Divisor,
101 Divisor -
107 Dividend / Divisor
108 Remainder = Dividend mod Divisor
114 return Dividend/Divisor;
85 DivU64x32( IN UINT64 Dividend, IN UINTN Divisor, OUT UINTN *Remainder OPTIONAL ) argument
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EfiCommonLib/Ia32/ |
H A D | DivU64x32.c | 27 IN UINTN Divisor,
40 Divisor - divisor
45 Dividend / Divisor
46 Remainder = Dividend mod Divisor
56 mov ecx, Divisor ; Put 32 bits divisor in ECX
local 57 div ecx ; Dividend Divisor Quoitent...Remainder
64 ; Dividend Divisor Quoitent...Remainder
25 DivU64x32( IN UINT64 Dividend, IN UINTN Divisor, OUT UINTN *Remainder OPTIONAL ) argument
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/Pei/PeiLib/Ipf/ |
H A D | Math.c | 110 IN UINTN Divisor,
124 Divisor - divisor
129 Dividend / Divisor
130 Remainder = Dividend mod Divisor
135 *Remainder = Dividend % Divisor;
138 return Dividend / Divisor;
108 DivU64x32( IN UINT64 Dividend, IN UINTN Divisor, OUT UINTN *Remainder OPTIONAL ) argument
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EfiCommonLib/ |
H A D | Math.c | 123 IN UINTN Divisor,
136 Divisor - divisor
141 Dividend / Divisor
142 Remainder = Dividend mod Divisor
147 *Remainder = Dividend % Divisor;
150 return Dividend / Divisor;
121 DivU64x32( IN UINT64 Dividend, IN UINTN Divisor, OUT UINTN *Remainder OPTIONAL ) argument
|
/device/linaro/bootloader/edk2/ArmPlatformPkg/Drivers/PL011Uart/ |
H A D | PL011Uart.c | 49 UINT32 Divisor;
local 153 Divisor = (PcdGet32 (PL011UartClkInHz) * 4) / *BaudRate;
154 MmioWrite32 (UartBase + UARTIBRD, Divisor >> 6);
155 MmioWrite32 (UartBase + UARTFBRD, Divisor & 0x3F);
|
/device/linaro/bootloader/edk2/UefiCpuPkg/Library/SecPeiDxeTimerLibUefiCpu/ |
H A D | X86TimerLib.c | 36 UINTN Divisor;
local 38 GetApicTimerState (&Divisor, NULL, NULL);
39 return PcdGet32(PcdFSBClock) / (UINT32)Divisor;
|
/device/linaro/bootloader/edk2/Vlv2TbltDevicePkg/Library/SerialPortLib/ |
H A D | SerialPortLib.c | 47 The Baud Rate Divisor registers are programmed and the LCR
62 UINTN Divisor;
74 Divisor = 115200 / gBps;
85 IoWrite8 (gComBase + BAUD_HIGH_OFFSET, (UINT8) (Divisor >> 8));
86 IoWrite8 (gComBase + BAUD_LOW_OFFSET, (UINT8) (Divisor & 0xff));
53 UINTN Divisor; local
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Platform/Generic/RuntimeDxe/StatusCode/Lib/BsSerialStatusCode/ |
H A D | BsSerialStatusCode.c | 2109 The Baud Rate Divisor registers are programmed and the LCR
2123 UINTN Divisor;
local 2138 Divisor = 115200 / gBps;
2149 IoWrite8 (gComBase + BAUD_HIGH_OFFSET, (UINT8) (Divisor >> 8));
2150 IoWrite8 (gComBase + BAUD_LOW_OFFSET, (UINT8) (Divisor & 0xff));
|
/device/linaro/bootloader/edk2/EmbeddedPkg/Library/GdbSerialLib/ |
H A D | GdbSerialLib.c | 116 UINTN Divisor;
local 133 Divisor = 115200/(UINTN)BaudRate;
144 IoWrite8 (gPort + BAUD_HIGH_OFFSET, (UINT8)(Divisor >> 8));
145 IoWrite8 (gPort + BAUD_LOW_OFFSET, (UINT8)(Divisor & 0xff));
|
/device/linaro/bootloader/edk2/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...] |
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/PciSioSerialDxe/ |
H A D | SerialIo.c | 53 Checks whether the UART parameters are valid and computes the Divisor.
61 @param Divisor Return the divisor if ClockRate is not 0.
79 OUT UINT64 *Divisor,
106 // Divisor = ClockRate / 16 / BaudRate = ClockRate / (16 * BaudRate)
111 // Round Divisor up by 1 if the Remainder is more than half (16 * BaudRate)
144 DEBUG ((EFI_D_INFO, "Divisor = %ld\n", ComputedDivisor));
156 if (Divisor != NULL) {
157 *Divisor = ComputedDivisor;
165 if (Divisor != NULL) {
166 *Divisor 73 VerifyUartParameters( IN UINT32 ClockRate, IN UINT64 BaudRate, IN UINT8 DataBits, IN EFI_PARITY_TYPE Parity, IN EFI_STOP_BITS_TYPE StopBits, OUT UINT64 *Divisor, OUT UINT64 *ActualBaudRate ) argument 638 UINT64 Divisor; local [all...] |
/device/linaro/bootloader/edk2/PcAtChipsetPkg/Library/SerialIoLib/ |
H A D | SerialPortLib.c | 76 UINTN Divisor;
local 88 Divisor = 115200 / gBps;
99 IoWrite8 ((UINTN) (gUartBase + BAUD_HIGH_OFFSET), (UINT8) (Divisor >> 8));
100 IoWrite8 ((UINTN) (gUartBase + BAUD_LOW_OFFSET), (UINT8) (Divisor & 0xff));
391 UINTN Divisor;
local 467 Divisor = 115200 / (UINTN) *BaudRate;
478 IoWrite8 ((UINTN) (gUartBase + BAUD_HIGH_OFFSET), (UINT8) (Divisor >> 8));
479 IoWrite8 ((UINTN) (gUartBase + BAUD_LOW_OFFSET), (UINT8) (Divisor & 0xff));
|