HomeSort by relevance Sort by last modified time
    Searched refs:Divisor (Results 26 - 50 of 119) sorted by null

12 3 4 5

  /external/llvm/lib/Transforms/Utils/
BypassSlowDivision.cpp 32 Value *Divisor;
35 : SignedOp(InSignedOp), Dividend(InDividend), Divisor(InDivisor) {}
53 Val1.Divisor == Val2.Divisor;
66 reinterpret_cast<uintptr_t>(Val.Divisor)) ^
83 Value *Divisor = I->getOperand(1);
85 if (isa<ConstantInt>(Divisor) ||
86 (isa<ConstantInt>(Dividend) && isa<ConstantInt>(Divisor))) {
104 SlowQuotientV = SlowBuilder.CreateSDiv(Dividend, Divisor);
105 SlowRemainderV = SlowBuilder.CreateSRem(Dividend, Divisor);
    [all...]
IntegerDivision.cpp 34 static Value *generateSignedRemainderCode(Value *Dividend, Value *Divisor,
50 // ; %divisor_sgn = ashr i32 %divisor, 31
52 // ; %dvs_xor = xor i32 %divisor, %divisor_sgn
55 // ; %urem = urem i32 %dividend, %divisor
59 Value *DivisorSign = Builder.CreateAShr(Divisor, Shift);
61 Value *DvsXor = Builder.CreateXor(Divisor, DivisorSign);
80 static Value *generatedUnsignedRemainderCode(Value *Dividend, Value *Divisor,
82 // Remainder = Dividend - Quotient*Divisor
86 // ; %quotient = udiv i32 %dividend, %divisor
87 // ; %product = mul i32 %divisor, %quotien
    [all...]
  /device/linaro/bootloader/edk2/StdLib/LibC/CRT/Ia32/
ulldiv.c 32 // IN UINT64 Divisor,
43 ; |-- Divisor --|
61 ; Set up the local stack for Divisor parameter
lldiv.c 32 // IN UINT64 Divisor,
40 ; 1st pushed: divisor (QWORD)
44 ; EDX:EAX contains the quotient (dividend/divisor)
52 ; |-- Divisor --|
70 ; Set up the local stack for Divisor parameter
lldvrm.c 32 // IN INT64 Divisor,
42 ; |-- Divisor --|
54 ; EDX:EAX contains the quotient (dividend/divisor)
55 ; EBX:ECX contains the remainder (divided % divisor)
66 ; Set up the local stack for Divisor parameter
87 ; EDX:EAX contains the quotient (dividend/divisor)
llrem.c 32 // IN UINT64 Divisor,
42 ; |-- Divisor --|
60 ; Set up the local stack for Divisor parameter
ulldvrm.c 32 // IN UINT64 Divisor,
42 ; |-- Divisor --|
54 ; EDX:EAX contains the quotient (dividend/divisor)
55 ; EBX:ECX contains the remainder (divided % divisor)
66 ; Set up the local stack for Divisor parameter
87 ; EDX:EAX contains the quotient (dividend/divisor)
ullrem.c 32 // IN UINT64 Divisor,
42 ; |-- Divisor --|
60 ; Set up the local stack for Divisor parameter
udivdi3.S 40 # |-- Divisor --|
58 # Set up the local stack for Divisor parameter
umoddi3.S 40 # |-- Divisor --|
58 # Set up the local stack for Divisor parameter
  /external/syslinux/gnu-efi/gnu-efi-3.0/lib/ia32/
math.c 137 IN UINTN Divisor,
145 *Remainder = Dividend % Divisor;
146 return Dividend / Divisor;
151 ASSERT (Divisor != 0);
152 ASSERT ((Divisor >> 31) == 0);
166 cmp eax, Divisor ; Is Rem >= Divisor?
170 and eax, Divisor ; and
171 sub Rem, eax ; subtract divisor
  /external/syslinux/gnu-efi/gnu-efi-3.0/lib/x86_64/
math.c 137 IN UINTN Divisor,
145 *Remainder = Dividend % Divisor;
146 return Dividend / Divisor;
151 ASSERT (Divisor != 0);
152 ASSERT ((Divisor >> 31) == 0);
166 cmp eax, Divisor ; Is Rem >= Divisor?
170 and eax, Divisor ; and
171 sub Rem, eax ; subtract divisor
  /device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EfiCommonLib/Ia32/
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
57 div ecx ; Dividend Divisor Quoitent...Remainder
64 ; Dividend Divisor Quoitent...Remainder
DivU64x32.S 38 # IN UINTN Divisor,
51 # Divisor - divisor
56 # Dividend / Divisor
57 # Remainder = Dividend mod Divisor
70 movl 0x10(%ebp), %ecx # Put 32 bits divisor in ECX
71 divl %ecx # Dividend Divisor Quoitent...Remainder
78 # Dividend Divisor Quoitent...Remainder
DivU64x32.asm 32 ; IN UINTN Divisor,
45 ; Divisor - divisor
50 ; Dividend / Divisor
51 ; Remainder = Dividend mod Divisor
64 mov ecx, [ebp + 10h] ; Put 32 bits divisor in ECX
65 div ecx ; Dividend Divisor Quoitent...Remainder
72 ; Dividend Divisor Quoitent...Remainder
  /device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EfiCommonLib/
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;
  /external/llvm/lib/Support/
ScaledNumber.cpp 59 uint32_t Divisor) {
61 assert(Divisor && "expected non-zero divisor");
70 uint64_t Quotient = Dividend64 / Divisor;
71 uint64_t Remainder = Dividend64 % Divisor;
78 return getRounded<uint32_t>(Quotient, Shift, Remainder >= getHalf(Divisor));
82 uint64_t Divisor) {
84 assert(Divisor && "expected non-zero divisor");
86 // Minimize size of divisor
    [all...]
  /device/linaro/bootloader/edk2/EmbeddedPkg/Library/GdbSerialLib/
GdbSerialLib.c 116 UINTN Divisor;
131 // Calculate divisor for baud generator
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/Vlv2TbltDevicePkg/Library/SerialPortLib/
SerialPortLib.c 47 The Baud Rate Divisor registers are programmed and the LCR
62 UINTN Divisor;
72 // Calculate divisor for baud generator
74 Divisor = 115200 / gBps;
85 IoWrite8 (gComBase + BAUD_HIGH_OFFSET, (UINT8) (Divisor >> 8));
86 IoWrite8 (gComBase + BAUD_LOW_OFFSET, (UINT8) (Divisor & 0xff));
  /device/linaro/bootloader/edk2/PcAtChipsetPkg/Library/SerialIoLib/
SerialPortLib.c 76 UINTN Divisor;
86 // Calculate divisor for baud generator
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;
465 // Calculate divisor for baud generator
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));
    [all...]
  /device/linaro/bootloader/edk2/UefiCpuPkg/Library/SecPeiDxeTimerLibUefiCpu/
X86TimerLib.c 36 UINTN Divisor;
38 GetApicTimerState (&Divisor, NULL, NULL);
39 return PcdGet32(PcdFSBClock) / (UINT32)Divisor;
  /external/clang/test/SemaTemplate/
instantiate-static-var.cpp 5 template<typename T, T Divisor>
8 static const T value = 10 / Divisor; // expected-error{{in-class initializer for static data member is not a constant expression}}
  /device/linaro/bootloader/edk2/UefiCpuPkg/Library/BaseXApicLib/
BaseXApicLib.c 717 UINT32 Divisor;
732 Divisor = (UINT32)((HighBitSet32 ((UINT32)DivideValue) - 1) & 0x7);
735 Dcr.Bits.DivideValue1 = (Divisor & 0x3);
736 Dcr.Bits.DivideValue2 = (Divisor >> 2);
771 UINT32 Divisor;
784 Divisor = Dcr.Bits.DivideValue1 | (Dcr.Bits.DivideValue2 << 2);
785 Divisor = (Divisor + 1) & 0x7;
786 *DivideValue = ((UINTN)1) << Divisor;
  /device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/
BaseLibInternals.h 211 unsigned value Divisor and generates a 64-bit unsigned quotient. This
215 @param Divisor A 32-bit unsigned value.
217 @return Dividend / Divisor
224 IN UINT32 Divisor
232 unsigned value Divisor and generates a 32-bit remainder. This function
236 @param Divisor A 32-bit unsigned value.
238 @return Dividend % Divisor
245 IN UINT32 Divisor
253 unsigned value Divisor and generates a 64-bit unsigned quotient. If Remainder
258 @param Divisor A 32-bit unsigned value.
    [all...]
  /external/llvm/lib/CodeGen/
TargetSchedule.cpp 38 static unsigned gcd(unsigned Dividend, unsigned Divisor) {
39 // Dividend and Divisor will be naturally swapped as needed.
40 while(Divisor) {
41 unsigned Rem = Dividend % Divisor;
42 Dividend = Divisor;
43 Divisor = Rem;

Completed in 944 milliseconds

12 3 4 5