Home
last modified time | relevance | path

Searched refs:Divisor (Results 1 – 25 of 88) sorted by relevance

1234

/device/linaro/bootloader/edk2/StdLib/LibC/CRT/
DGcc.c64 int __divsi3(int Dividend, int Divisor) in __divsi3() argument
67 return (int) DivS64x64Remainder ((INT64) Dividend, (INT64) Divisor, NULL); in __divsi3()
70 INT64 __divdi3(INT64 Dividend, INT64 Divisor) in __divdi3() argument
74 Quotient = DivS64x64Remainder ((INT64) Dividend, (INT64) Divisor, NULL); in __divdi3()
75 DEBUG((DEBUG_INFO, "%a: %Ld / %Ld = %Ld\n", __func__, Dividend, Divisor, Quotient)); in __divdi3()
80 long long __divti3(long long Dividend, long long Divisor) in __divti3() argument
83 return (long long) DivS64x64Remainder ((INT64) Dividend, (INT64) Divisor, NULL); in __divti3()
108 int __modsi3(int Dividend, int Divisor) in __modsi3() argument
112 (void) DivS64x64Remainder ((INT64) Dividend, (INT64) Divisor, &Remainder); in __modsi3()
113 DEBUG((DEBUG_INFO, "modsi3: %d %% %d = %d\n", Dividend, Divisor, (int)Remainder)); in __modsi3()
[all …]
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/
DMath64.c257 IN UINT32 Divisor in InternalMathDivU64x32() argument
260 return Dividend / Divisor; in InternalMathDivU64x32()
281 IN UINT32 Divisor in InternalMathModU64x32() argument
284 return (UINT32)(Dividend % Divisor); in InternalMathModU64x32()
308 IN UINT32 Divisor, in InternalMathDivRemU64x32() argument
313 *Remainder = (UINT32)(Dividend % Divisor); in InternalMathDivRemU64x32()
315 return Dividend / Divisor; in InternalMathDivRemU64x32()
339 IN UINT64 Divisor, in InternalMathDivRemU64x64() argument
344 *Remainder = Dividend % Divisor; in InternalMathDivRemU64x64()
346 return Dividend / Divisor; in InternalMathDivRemU64x64()
[all …]
DDivU64x32.c45 IN UINT32 Divisor in GlueDivU64x32() argument
48 ASSERT (Divisor != 0); in GlueDivU64x32()
49 return InternalMathDivU64x32 (Dividend, Divisor); in GlueDivU64x32()
DModU64x32.c45 IN UINT32 Divisor in ModU64x32() argument
48 ASSERT (Divisor != 0); in ModU64x32()
49 return InternalMathModU64x32 (Dividend, Divisor); in ModU64x32()
DDivS64x64Remainder.c48 IN INT64 Divisor, in DivS64x64Remainder() argument
52 ASSERT (Divisor != 0); in DivS64x64Remainder()
53 return InternalMathDivRemS64x64 (Dividend, Divisor, Remainder); in DivS64x64Remainder()
DDivU64x32Remainder.c48 IN UINT32 Divisor, in DivU64x32Remainder() argument
52 ASSERT (Divisor != 0); in DivU64x32Remainder()
53 return InternalMathDivRemU64x32 (Dividend, Divisor, Remainder); in DivU64x32Remainder()
DDivU64x64Remainder.c47 IN UINT64 Divisor, in DivU64x64Remainder() argument
51 ASSERT (Divisor != 0); in DivU64x64Remainder()
52 return InternalMathDivRemU64x64 (Dividend, Divisor, Remainder); in DivU64x64Remainder()
/device/linaro/bootloader/edk2/MdePkg/Library/BaseLib/
DMath64.c247 IN UINT32 Divisor in InternalMathDivU64x32() argument
250 return Dividend / Divisor; in InternalMathDivU64x32()
271 IN UINT32 Divisor in InternalMathModU64x32() argument
274 return (UINT32)(Dividend % Divisor); in InternalMathModU64x32()
298 IN UINT32 Divisor, in InternalMathDivRemU64x32() argument
303 *Remainder = (UINT32)(Dividend % Divisor); in InternalMathDivRemU64x32()
305 return Dividend / Divisor; in InternalMathDivRemU64x32()
329 IN UINT64 Divisor, in InternalMathDivRemU64x64() argument
334 *Remainder = Dividend % Divisor; in InternalMathDivRemU64x64()
336 return Dividend / Divisor; in InternalMathDivRemU64x64()
[all …]
DDivU64x32.c40 IN UINT32 Divisor in DivU64x32() argument
43 ASSERT (Divisor != 0); in DivU64x32()
44 return InternalMathDivU64x32 (Dividend, Divisor); in DivU64x32()
DModU64x32.c40 IN UINT32 Divisor in ModU64x32() argument
43 ASSERT (Divisor != 0); in ModU64x32()
44 return InternalMathModU64x32 (Dividend, Divisor); in ModU64x32()
DDivU64x64Remainder.c43 IN UINT64 Divisor, in DivU64x64Remainder() argument
47 ASSERT (Divisor != 0); in DivU64x64Remainder()
48 return InternalMathDivRemU64x64 (Dividend, Divisor, Remainder); in DivU64x64Remainder()
DDivU64x32Remainder.c43 IN UINT32 Divisor, in DivU64x32Remainder() argument
47 ASSERT (Divisor != 0); in DivU64x32Remainder()
48 return InternalMathDivRemU64x32 (Dividend, Divisor, Remainder); in DivU64x32Remainder()
DDivS64x64Remainder.c47 IN INT64 Divisor, in DivS64x64Remainder() argument
51 ASSERT (Divisor != 0); in DivS64x64Remainder()
52 return InternalMathDivRemS64x64 (Dividend, Divisor, Remainder); in DivS64x64Remainder()
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/Ia32/
DDivS64x64Remainder.c45 IN INT64 Divisor, in InternalMathDivRemS64x64() argument
53 (UINT64) (Divisor >= 0 ? Divisor : -Divisor), in InternalMathDivRemS64x64()
59 return (Dividend ^ Divisor) >= 0 ? Quot : -Quot; in InternalMathDivRemS64x64()
DDivU64x64Remainder.c22 IN UINT64 Divisor, in InternalMathDivRemU64x64() argument
31 mov ecx, dword ptr [Divisor + 4] in InternalMathDivRemU64x64()
32 mov ebx, dword ptr [Divisor + 0] // ecx:ebx <- divisor in InternalMathDivRemU64x64()
41 mov ecx, dword ptr [Divisor + 4] in InternalMathDivRemU64x64()
42 mul dword ptr [Divisor] in InternalMathDivRemU64x64()
55 sub eax, dword ptr [Divisor + 0] in InternalMathDivRemU64x64()
56 sbb edx, dword ptr [Divisor + 4] in InternalMathDivRemU64x64()
DModU64x32.c29 IN UINT32 Divisor in InternalMathModU64x32() argument
34 mov ecx, Divisor in InternalMathModU64x32()
/device/linaro/bootloader/edk2/MdePkg/Library/BaseLib/Ia32/
DDivS64x64Remainder.c38 IN INT64 Divisor, in InternalMathDivRemS64x64() argument
46 (UINT64) (Divisor >= 0 ? Divisor : -Divisor), in InternalMathDivRemS64x64()
52 return (Dividend ^ Divisor) >= 0 ? Quot : -Quot; in InternalMathDivRemS64x64()
DModU64x32.c36 IN UINT32 Divisor in InternalMathModU64x32() argument
41 mov ecx, Divisor in InternalMathModU64x32()
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/Pei/PeiLib/Ipf/
DMath.c110 IN UINTN Divisor, in DivU64x32() argument
135 *Remainder = Dividend % Divisor; in DivU64x32()
138 return Dividend / Divisor; in DivU64x32()
/device/linaro/bootloader/edk2/PcAtChipsetPkg/Library/SerialIoLib/
DSerialPortLib.c76 UINTN Divisor; in SerialPortInitialize() local
88 Divisor = 115200 / gBps; in SerialPortInitialize()
99 IoWrite8 ((UINTN) (gUartBase + BAUD_HIGH_OFFSET), (UINT8) (Divisor >> 8)); in SerialPortInitialize()
100 IoWrite8 ((UINTN) (gUartBase + BAUD_LOW_OFFSET), (UINT8) (Divisor & 0xff)); in SerialPortInitialize()
391 UINTN Divisor; in SerialPortSetAttributes() local
467 Divisor = 115200 / (UINTN) *BaudRate; in SerialPortSetAttributes()
478 IoWrite8 ((UINTN) (gUartBase + BAUD_HIGH_OFFSET), (UINT8) (Divisor >> 8)); in SerialPortSetAttributes()
479 IoWrite8 ((UINTN) (gUartBase + BAUD_LOW_OFFSET), (UINT8) (Divisor & 0xff)); in SerialPortSetAttributes()
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EfiCommonLib/Ia32/
DDivU64x32.c27 IN UINTN Divisor, in DivU64x32() argument
56 mov ecx, Divisor ; Put 32 bits divisor in ECX in DivU64x32()
57 div ecx ; Dividend Divisor Quoitent...Remainder in DivU64x32()
64 ; Dividend Divisor Quoitent...Remainder in DivU64x32()
/device/linaro/bootloader/edk2/Vlv2TbltDevicePkg/Library/SerialPortLib/
DSerialPortLib.c62 UINTN Divisor; in UARTInitialize()
74 Divisor = 115200 / gBps; in UARTInitialize()
85 IoWrite8 (gComBase + BAUD_HIGH_OFFSET, (UINT8) (Divisor >> 8)); in UARTInitialize()
86 IoWrite8 (gComBase + BAUD_LOW_OFFSET, (UINT8) (Divisor & 0xff)); in UARTInitialize()
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EfiCommonLib/
DMath.c123 IN UINTN Divisor, in DivU64x32() argument
147 *Remainder = Dividend % Divisor; in DivU64x32()
150 return Dividend / Divisor; in DivU64x32()
/device/linaro/bootloader/edk2/EmbeddedPkg/Library/GdbSerialLib/
DGdbSerialLib.c116 UINTN Divisor; in GdbSerialInit() local
133 Divisor = 115200/(UINTN)BaudRate; in GdbSerialInit()
144 IoWrite8 (gPort + BAUD_HIGH_OFFSET, (UINT8)(Divisor >> 8)); in GdbSerialInit()
145 IoWrite8 (gPort + BAUD_LOW_OFFSET, (UINT8)(Divisor & 0xff)); in GdbSerialInit()
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/Pei/PeiLib/X64/
DMath.c87 IN UINTN Divisor, in DivU64x32() argument
114 return Dividend/Divisor; in DivU64x32()

1234