Home
last modified time | relevance | path

Searched refs:quotient (Results 1 – 25 of 116) sorted by relevance

12345

/external/icu/icu4c/source/i18n/
Dgregoimp.cpp37 double quotient; in floorDivide() local
38 quotient = uprv_floor(numerator / denominator); in floorDivide()
39 remainder = (int32_t) (numerator - (quotient * denominator)); in floorDivide()
40 return (int32_t) quotient; in floorDivide()
47 double quotient = floorDivide(dividend, divisor); in floorDivide() local
48 remainder = dividend - (quotient * divisor); in floorDivide()
56 double q = quotient; in floorDivide()
57 quotient += (remainder < 0) ? -1 : +1; in floorDivide()
58 if (q == quotient) { in floorDivide()
70 remainder = dividend - (quotient * divisor); in floorDivide()
[all …]
/external/u-boot/lib/
Ddiv64.c66 u64 quotient; in div_s64_rem() local
69 quotient = div_u64_rem(-dividend, abs(divisor), (u32 *)remainder); in div_s64_rem()
72 quotient = -quotient; in div_s64_rem()
74 quotient = div_u64_rem(dividend, abs(divisor), (u32 *)remainder); in div_s64_rem()
76 quotient = -quotient; in div_s64_rem()
78 return quotient; in div_s64_rem()
/external/libxaac/decoder/
Dixheaacd_basic_ops.h74 WORD32 quotient; in ixheaacd_div32_pos_normb() local
81 quotient = MAX_32; in ixheaacd_div32_pos_normb()
83 quotient = 0; in ixheaacd_div32_pos_normb()
86 quotient = quotient << 1; in ixheaacd_div32_pos_normb()
90 quotient += 1; in ixheaacd_div32_pos_normb()
97 return quotient; in ixheaacd_div32_pos_normb()
Dixheaacd_basic_funcs.c126 WORD32 quotient = 0; in ixheaacd_fix_div_dec() local
137 quotient = (quotient << 1); in ixheaacd_fix_div_dec()
141 quotient++; in ixheaacd_fix_div_dec()
145 if (sign < 0) quotient = -(quotient); in ixheaacd_fix_div_dec()
147 return quotient; in ixheaacd_fix_div_dec()
Dixheaacd_basic_ops16.h239 WORD32 quotient; in div16() local
248 quotient = 0; in div16()
265 quotient = 0; in div16()
274 quotient = quotient << 1; in div16()
278 quotient += 1; in div16()
285 quotient = -quotient; in div16()
288 return (WORD16)quotient; in div16()
Dixheaacd_basic_ops32.h325 WORD32 quotient; in div32() local
334 quotient = 0; in div32()
351 quotient = 0; in div32()
360 quotient = quotient << 1; in div32()
364 quotient += 1; in div32()
371 quotient = -quotient; in div32()
374 return quotient; in div32()
/external/protobuf/src/google/protobuf/stubs/
Dint128.cc103 uint128 quotient = 0; in DivModImpl() local
115 quotient |= position; in DivModImpl()
121 *quotient_ret = quotient; in DivModImpl()
126 uint128 quotient = 0; in operator /=() local
128 DivModImpl(*this, divisor, &quotient, &remainder); in operator /=()
129 *this = quotient; in operator /=()
133 uint128 quotient = 0; in operator %=() local
135 DivModImpl(*this, divisor, &quotient, &remainder); in operator %=()
/external/compiler-rt/lib/builtins/
Ddivdf3.c135 rep_t quotient, quotientLo; in ARM_EABI_FNALIAS() local
136 wideMultiply(aSignificand << 2, reciprocal, &quotient, &quotientLo); in ARM_EABI_FNALIAS()
152 if (quotient < (implicitBit << 1)) { in ARM_EABI_FNALIAS()
153 residual = (aSignificand << 53) - quotient * bSignificand; in ARM_EABI_FNALIAS()
156 quotient >>= 1; in ARM_EABI_FNALIAS()
157 residual = (aSignificand << 52) - quotient * bSignificand; in ARM_EABI_FNALIAS()
176 rep_t absResult = quotient & significandMask; in ARM_EABI_FNALIAS()
Ddivsf3.c121 rep_t quotient = (uint64_t)reciprocal*(aSignificand << 1) >> 32; in ARM_EABI_FNALIAS() local
137 if (quotient < (implicitBit << 1)) { in ARM_EABI_FNALIAS()
138 residual = (aSignificand << 24) - quotient * bSignificand; in ARM_EABI_FNALIAS()
141 quotient >>= 1; in ARM_EABI_FNALIAS()
142 residual = (aSignificand << 23) - quotient * bSignificand; in ARM_EABI_FNALIAS()
161 rep_t absResult = quotient & significandMask; in ARM_EABI_FNALIAS()
Ddivtf3.c149 rep_t quotient, quotientLo; in __divtf3() local
150 wideMultiply(aSignificand << 2, reciprocal, &quotient, &quotientLo); in __divtf3()
168 if (quotient < (implicitBit << 1)) { in __divtf3()
169 wideMultiply(quotient, bSignificand, &dummy, &qb); in __divtf3()
173 quotient >>= 1; in __divtf3()
174 wideMultiply(quotient, bSignificand, &dummy, &qb); in __divtf3()
192 rep_t absResult = quotient & significandMask; in __divtf3()
/external/guava/guava/src/com/google/common/primitives/
DUnsignedLongs.java202 long quotient = ((dividend >>> 1) / divisor) << 1; in divide() local
203 long rem = dividend - quotient * divisor; in divide()
204 return quotient + (compare(rem, divisor) >= 0 ? 1 : 0); in divide()
236 long quotient = ((dividend >>> 1) / divisor) << 1; in remainder() local
237 long rem = dividend - quotient * divisor; in remainder()
368 long quotient = divide(x, radix); in toString() local
369 long rem = x - quotient * radix; in toString()
371 x = quotient; in toString()
/external/u-boot/drivers/ddr/marvell/a38x/
Dmv_ddr_common.c32 int round_div(unsigned int dividend, unsigned int divisor, unsigned int *quotient) in round_div() argument
34 if (quotient == NULL) { in round_div()
43 *quotient = (dividend + divisor / 2) / divisor; in round_div()
/external/jemalloc_new/test/unit/
Ddiv.c15 size_t quotient = div_compute( in TEST_BEGIN() local
17 assert_zu_eq(dividend, quotient * divisor, in TEST_BEGIN()
19 "got quotient %zu", divisor, dividend, quotient); in TEST_BEGIN()
/external/libhevc/encoder/
Dia_basic_ops32.h1058 WORD32 quotient; in div32() local
1067 quotient = 0; in div32()
1087 quotient = 0; in div32()
1113 quotient = (quotient << 1) + bit; in div32()
1118 quotient = -quotient; in div32()
1121 return quotient; in div32()
/external/protobuf/js/binary/
Darith.js235 var quotient = new jspb.arith.UInt64(0, 0);
251 quotient = quotient.add(unit);
259 return [quotient, remainder];
273 var quotient = divResult[0], remainder = divResult[1];
275 num = quotient;
/external/fonttools/Lib/fontTools/misc/
Dpy23.py362 quotient, remainder = divmod(number, exponent)
364 quotient += 1
365 return float(quotient * exponent)
432 quotient, remainder = divmod(number, exponent)
434 if remainder > half or (remainder == half and quotient % 2 != 0):
435 quotient += 1
436 d = quotient * exponent
/external/swiftshader/third_party/LLVM/test/CodeGen/X86/
Ddiv8.ll10 %quotient = alloca i8, align 1
19 store i8 %div, i8* %quotient, align 1
20 %tmp4 = load i8* %quotient, align 1
/external/llvm/test/CodeGen/X86/
Ddiv8.ll10 %quotient = alloca i8, align 1
19 store i8 %div, i8* %quotient, align 1
20 %tmp4 = load i8, i8* %quotient, align 1
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/X86/
Ddiv8.ll10 %quotient = alloca i8, align 1
19 store i8 %div, i8* %quotient, align 1
20 %tmp4 = load i8, i8* %quotient, align 1
/external/v8/src/compiler/
Dmachine-operator-reducer.cc110 Node* quotient = graph()->NewNode(machine()->Int32MulHigh(), dividend, in Int32Div() local
113 quotient = Int32Add(quotient, dividend); in Int32Div()
115 quotient = Int32Sub(quotient, dividend); in Int32Div()
117 return Int32Add(Word32Sar(quotient, mag.shift), Word32Shr(dividend, 31)); in Int32Div()
131 Node* quotient = graph()->NewNode(machine()->Uint32MulHigh(), dividend, in Uint32Div() local
135 quotient = Word32Shr( in Uint32Div()
136 Int32Add(Word32Shr(Int32Sub(dividend, quotient), 1), quotient), in Uint32Div()
139 quotient = Word32Shr(quotient, mag.shift); in Uint32Div()
141 return quotient; in Uint32Div()
799 Node* quotient = dividend; in ReduceInt32Div() local
[all …]
/external/pdfium/fxbarcode/common/reedsolomon/
DBC_ReedSolomonGF256Poly.cpp206 auto quotient = m_field->GetZero()->Clone(); in Divide() local
207 if (!quotient) in Divide()
230 quotient = quotient->AddOrSubtract(iteratorQuotient.get()); in Divide()
231 if (!quotient) in Divide()
/external/tensorflow/tensorflow/core/kernels/
Dreduce_join_op.cc54 int64 quotient = output_index; in LinearSubIndexToFullIndex() local
57 int64 dim_value = quotient % input_shape.dim_size(dim); in LinearSubIndexToFullIndex()
58 quotient = quotient / input_shape.dim_size(dim); in LinearSubIndexToFullIndex()
/external/llvm/test/CodeGen/ARM/
Ddiv.ll46 ; EABI MODE = Remainder in R1, quotient in R0
61 ; EABI MODE = Remainder in R1, quotient in R0
76 ; EABI MODE = Remainder in R2-R3, quotient in R0-R1
91 ; EABI MODE = Remainder in R2-R3, quotient in R0-R1
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/AVR/
Ddiv.ll9 %quotient = udiv i8 %a, %b
10 ret i8 %quotient
19 %quotient = sdiv i8 %a, %b
20 ret i8 %quotient
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DGrego.java198 long quotient = ((numerator + 1) / denominator) - 1; in floorDivide() local
199 remainder[0] = numerator - (quotient * denominator); in floorDivide()
200 return quotient; in floorDivide()

12345