Home
last modified time | relevance | path

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

123

/netbsd-src/sys/external/bsd/acpica/dist/utilities/
H A Dutmath.c339 UINT32 Divisor, in AcpiUtShortDivide() argument
353 if (Divisor == 0) in AcpiUtShortDivide()
365 ACPI_DIV_64_BY_32 (0, DividendOvl.Part.Hi, Divisor, in AcpiUtShortDivide()
368 ACPI_DIV_64_BY_32 (Remainder32, DividendOvl.Part.Lo, Divisor, in AcpiUtShortDivide()
409 UINT64_OVERLAY Divisor; in AcpiUtDivide() local
430 Divisor.Full = InDivisor; in AcpiUtDivide()
432 if (Divisor.Part.Hi == 0) in AcpiUtDivide()
444 ACPI_DIV_64_BY_32 (0, Dividend.Part.Hi, Divisor.Part.Lo, in AcpiUtDivide()
447 ACPI_DIV_64_BY_32 (Partial1, Dividend.Part.Lo, Divisor.Part.Lo, in AcpiUtDivide()
459 NormalizedDivisor = Divisor; in AcpiUtDivide()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Support/
H A DScaledNumber.cpp58 uint32_t Divisor) { in divide32() argument
60 assert(Divisor && "expected non-zero divisor"); in divide32()
69 uint64_t Quotient = Dividend64 / Divisor; in divide32()
70 uint64_t Remainder = Dividend64 % Divisor; in divide32()
77 return getRounded<uint32_t>(Quotient, Shift, Remainder >= getHalf(Divisor)); in divide32()
81 uint64_t Divisor) { in divide64() argument
83 assert(Divisor && "expected non-zero divisor"); in divide64()
87 if (int Zeros = countTrailingZeros(Divisor)) { in divide64()
89 Divisor >>= Zeros; in divide64()
93 if (Divisor == 1) in divide64()
[all …]
/netbsd-src/sys/external/bsd/gnu-efi/dist/lib/ia32/
H A Dmath.c139 IN UINTN Divisor, in DivU64x32() argument
147 *Remainder = Dividend % Divisor; in DivU64x32()
148 return Dividend / Divisor; in DivU64x32()
153 ASSERT (Divisor != 0); in DivU64x32()
154 ASSERT ((Divisor >> 31) == 0); in DivU64x32()
175 : "m"(Dividend), "m"(Divisor), "m"(Rem) in DivU64x32()
185 cmp eax, Divisor ; Is Rem >= Divisor? in DivU64x32()
189 and eax, Divisor ; and in DivU64x32()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/
H A DBypassSlowDivision.cpp158 Value *Divisor = SlowDivOrRem->getOperand(1); in getReplacement() local
159 DivRemMapKey Key(isSignedOp(), Dividend, Divisor); in getReplacement()
269 Value *Divisor = SlowDivOrRem->getOperand(1); in createSlowBB() local
272 DivRemPair.Quotient = Builder.CreateSDiv(Dividend, Divisor); in createSlowBB()
273 DivRemPair.Remainder = Builder.CreateSRem(Dividend, Divisor); in createSlowBB()
275 DivRemPair.Quotient = Builder.CreateUDiv(Dividend, Divisor); in createSlowBB()
276 DivRemPair.Remainder = Builder.CreateURem(Dividend, Divisor); in createSlowBB()
293 Value *Divisor = SlowDivOrRem->getOperand(1); in createFastBB() local
295 Builder.CreateCast(Instruction::Trunc, Divisor, BypassType); in createFastBB()
355 Value *Divisor = SlowDivOrRem->getOperand(1); in insertFastDivAndRem() local
[all …]
H A DIntegerDivision.cpp33 static Value *generateSignedRemainderCode(Value *Dividend, Value *Divisor, in generateSignedRemainderCode() argument
58 Value *DivisorSign = Builder.CreateAShr(Divisor, Shift); in generateSignedRemainderCode()
60 Value *DvsXor = Builder.CreateXor(Divisor, DivisorSign); in generateSignedRemainderCode()
79 static Value *generatedUnsignedRemainderCode(Value *Dividend, Value *Divisor, in generatedUnsignedRemainderCode() argument
88 Value *Quotient = Builder.CreateUDiv(Dividend, Divisor); in generatedUnsignedRemainderCode()
89 Value *Product = Builder.CreateMul(Divisor, Quotient); in generatedUnsignedRemainderCode()
103 static Value *generateSignedDivisionCode(Value *Dividend, Value *Divisor, in generateSignedDivisionCode() argument
131 Value *Tmp1 = Builder.CreateAShr(Divisor, Shift); in generateSignedDivisionCode()
134 Value *Tmp3 = Builder.CreateXor(Tmp1, Divisor); in generateSignedDivisionCode()
150 static Value *generateUnsignedDivisionCode(Value *Dividend, Value *Divisor, in generateUnsignedDivisionCode() argument
[all …]
/netbsd-src/sys/external/bsd/gnu-efi/dist/lib/x86_64/
H A Dmath.c139 IN UINTN Divisor, in DivU64x32() argument
147 *Remainder = Dividend % Divisor; in DivU64x32()
148 return Dividend / Divisor; in DivU64x32()
153 ASSERT (Divisor != 0); in DivU64x32()
154 ASSERT ((Divisor >> 31) == 0); in DivU64x32()
168 cmp eax, Divisor ; Is Rem >= Divisor? in DivU64x32()
172 and eax, Divisor ; and in DivU64x32()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Transforms/Utils/
H A DBypassSlowDivision.h33 AssertingVH<Value> Divisor; member
38 : SignedOp(InSignedOp), Dividend(InDividend), Divisor(InDivisor) {} in DivRemMapKey()
44 Val1.Divisor == Val2.Divisor;
59 static_cast<Value *>(Val.Divisor))) ^
/netbsd-src/sys/external/bsd/gnu-efi/dist/lib/riscv64/
H A Dmath.c53 IN UINTN Divisor, in DivU64x32() argument
57 ASSERT(Divisor != 0); in DivU64x32()
60 *Remainder = Dividend % Divisor; in DivU64x32()
63 return Dividend / Divisor; in DivU64x32()
/netbsd-src/sys/external/bsd/gnu-efi/dist/lib/ia64/
H A Dmath.c77 IN UINTN Divisor, in DivU64x32() argument
83 ASSERT (Divisor != 0); in DivU64x32()
86 *Remainder = Dividend % Divisor; in DivU64x32()
89 return Dividend / Divisor; in DivU64x32()
/netbsd-src/sys/external/bsd/gnu-efi/dist/lib/aarch64/
H A Dmath.c56 IN UINTN Divisor, in DivU64x32() argument
63 *Remainder = Dividend % Divisor; in DivU64x32()
64 return Dividend / Divisor; in DivU64x32()
/netbsd-src/sys/external/bsd/gnu-efi/dist/lib/mips64el/
H A Dmath.c56 IN UINTN Divisor, in DivU64x32() argument
63 *Remainder = Dividend % Divisor; in DivU64x32()
64 return Dividend / Divisor; in DivU64x32()
/netbsd-src/sys/external/bsd/gnu-efi/dist/lib/arm/
H A Dmath.c56 IN UINTN Divisor, in DivU64x32() argument
67 *Remainder = Dividend % Divisor; in DivU64x32()
68 return Dividend / Divisor; in DivU64x32()
H A Ddiv.S33 # IN UINT32 Divisor
52 # IN INT32 Divisor
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Support/
H A DScaledNumber.h138 std::pair<uint64_t, int16_t> divide64(uint64_t Dividend, uint64_t Divisor);
145 std::pair<uint32_t, int16_t> divide32(uint32_t Dividend, uint32_t Divisor);
153 std::pair<DigitsT, int16_t> getQuotient(DigitsT Dividend, DigitsT Divisor) { in getQuotient() argument
161 if (!Divisor) in getQuotient()
165 return divide64(Dividend, Divisor); in getQuotient()
166 return divide32(Dividend, Divisor); in getQuotient()
171 uint32_t Divisor) { in getQuotient32() argument
172 return getQuotient(Dividend, Divisor); in getQuotient32()
177 uint64_t Divisor) { in getQuotient64() argument
178 return getQuotient(Dividend, Divisor); in getQuotient64()
[all …]
H A DAlignment.h327 inline Align operator/(Align Lhs, uint64_t Divisor) {
328 assert(llvm::isPowerOf2_64(Divisor) &&
331 return Align(Lhs.value() / Divisor);
334 inline MaybeAlign operator/(MaybeAlign Lhs, uint64_t Divisor) {
335 assert(llvm::isPowerOf2_64(Divisor) &&
337 return Lhs ? Lhs.getValue() / Divisor : MaybeAlign();
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/
H A DDivRemPairs.cpp57 Value *Divisor; in matchExpandedRem() local
62 m_c_Mul(m_CombineAnd(m_IDiv(m_Specific(Dividend), m_Value(Divisor)), in matchExpandedRem()
64 m_Deferred(Divisor)))) in matchExpandedRem()
70 M.Key.Divisor = Divisor; in matchExpandedRem()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/
H A DTargetSchedule.cpp47 static unsigned gcd(unsigned Dividend, unsigned Divisor) { in gcd() argument
49 while (Divisor) { in gcd()
50 unsigned Rem = Dividend % Divisor; in gcd()
51 Dividend = Divisor; in gcd()
52 Divisor = Rem; in gcd()
/netbsd-src/external/apache2/llvm/dist/libcxx/include/__support/ibm/
H A Dgettod_zos.h45 uint64_t Divisor = 1000000; in gettimeofdayMonotonic() local
46 asm(" dlgr %0,%2" : "+r"(DivPair0), "+r"(DivPair1) : "r"(Divisor) :); in gettimeofdayMonotonic()
/netbsd-src/external/gpl3/gcc.old/dist/libgcc/config/microblaze/
H A Dmoddi3.S64 RSUBI r8,r8,0 # Make Divisor Positive
65 RSUBIC r9,r9,0 # Make Divisor Positive
83 rsub r18,r7,r3 # Compare the High Parts of Mod and Divisor
85 rsub r18,r6,r4 # Compare Low Parts only if Mod[h] == Divisor[h]
H A Ddivsi3.S30 # Divisor in Reg r6
/netbsd-src/external/gpl3/gcc/dist/libgcc/config/microblaze/
H A Dmoddi3.S64 RSUBI r8,r8,0 # Make Divisor Positive
65 RSUBIC r9,r9,0 # Make Divisor Positive
83 rsub r18,r7,r3 # Compare the High Parts of Mod and Divisor
85 rsub r18,r6,r4 # Compare Low Parts only if Mod[h] == Divisor[h]
H A Ddivsi3.S30 # Divisor in Reg r6
/netbsd-src/external/apache2/llvm/dist/llvm/lib/ProfileData/
H A DGCOV.cpp519 static uint32_t branchDiv(uint64_t Numerator, uint64_t Divisor) { in branchDiv() argument
522 if (Numerator == Divisor) in branchDiv()
525 uint8_t Res = (Numerator * 100 + Divisor / 2) / Divisor; in branchDiv()
/netbsd-src/external/gpl3/gcc.old/dist/libgcc/config/avr/
H A Dlib1funcs.S1484 ;; B[0..2]: In: Divisor; Out: Remainder
1767 ;; B[0..7]: In: Divisor; Out: Clobber
1855 1: ;; Compare shifted Devidend against Divisor
1873 ;; Divisor is greater than Dividend. We have:
1888 ;; Compare shifted Dividend against Divisor
1896 ;; Divisor is greater than shifted Dividen: We can shift the Dividend
1897 ;; and it is still smaller than the Divisor --> Shift one 32-Bit Chunk
1919 ;; Compare Remainder and Divisor
1925 ;; Divisor fits into Remainder: Subtract it from Remainder...
/netbsd-src/external/gpl3/gcc/dist/libgcc/config/avr/
H A Dlib1funcs.S1484 ;; B[0..2]: In: Divisor; Out: Remainder
1767 ;; B[0..7]: In: Divisor; Out: Clobber
1855 1: ;; Compare shifted Devidend against Divisor
1873 ;; Divisor is greater than Dividend. We have:
1888 ;; Compare shifted Dividend against Divisor
1896 ;; Divisor is greater than shifted Dividen: We can shift the Dividend
1897 ;; and it is still smaller than the Divisor --> Shift one 32-Bit Chunk
1919 ;; Compare Remainder and Divisor
1925 ;; Divisor fits into Remainder: Subtract it from Remainder...

123