/external/u-boot/arch/arm/lib/ |
D | lib1funcs.S | 26 .macro ARM_DIV_BODY dividend, divisor, result, curbit 30 clz \curbit, \divisor 34 mov \divisor, \divisor, lsl \result 40 @ Initially shift the divisor left 3 bits if possible, 44 tst \divisor, #0xe0000000 45 moveq \divisor, \divisor, lsl #3 49 @ Unless the divisor is very big, shift it up in multiples of 51 @ division loop. Continue shifting until the divisor is 53 1: cmp \divisor, #0x10000000 54 cmplo \divisor, \dividend [all …]
|
/external/u-boot/lib/ |
D | div64.c | 64 s64 div_s64_rem(s64 dividend, s32 divisor, s32 *remainder) in div_s64_rem() argument 69 quotient = div_u64_rem(-dividend, abs(divisor), (u32 *)remainder); in div_s64_rem() 71 if (divisor > 0) in div_s64_rem() 74 quotient = div_u64_rem(dividend, abs(divisor), (u32 *)remainder); in div_s64_rem() 75 if (divisor < 0) in div_s64_rem() 95 u64 div64_u64_rem(u64 dividend, u64 divisor, u64 *remainder) in div64_u64_rem() argument 97 u32 high = divisor >> 32; in div64_u64_rem() 102 quot = div_u64_rem(dividend, divisor, &rem32); in div64_u64_rem() 106 quot = div_u64(dividend >> n, divisor >> n); in div64_u64_rem() 111 *remainder = dividend - quot * divisor; in div64_u64_rem() [all …]
|
/external/u-boot/include/linux/ |
D | math64.h | 19 static inline u64 div_u64_rem(u64 dividend, u32 divisor, u32 *remainder) in div_u64_rem() argument 21 *remainder = dividend % divisor; in div_u64_rem() 22 return dividend / divisor; in div_u64_rem() 28 static inline s64 div_s64_rem(s64 dividend, s32 divisor, s32 *remainder) in div_s64_rem() argument 30 *remainder = dividend % divisor; in div_s64_rem() 31 return dividend / divisor; in div_s64_rem() 37 static inline u64 div64_u64_rem(u64 dividend, u64 divisor, u64 *remainder) in div64_u64_rem() argument 39 *remainder = dividend % divisor; in div64_u64_rem() 40 return dividend / divisor; in div64_u64_rem() 46 static inline u64 div64_u64(u64 dividend, u64 divisor) in div64_u64() argument [all …]
|
/external/llvm/test/CodeGen/X86/ |
D | fast-isel-divrem.ll | 4 define i8 @test_sdiv8(i8 %dividend, i8 %divisor) nounwind { 6 %result = sdiv i8 %dividend, %divisor 14 define i8 @test_srem8(i8 %dividend, i8 %divisor) nounwind { 16 %result = srem i8 %dividend, %divisor 24 define i8 @test_udiv8(i8 %dividend, i8 %divisor) nounwind { 26 %result = udiv i8 %dividend, %divisor 34 define i8 @test_urem8(i8 %dividend, i8 %divisor) nounwind { 36 %result = urem i8 %dividend, %divisor 44 define i16 @test_sdiv16(i16 %dividend, i16 %divisor) nounwind { 46 %result = sdiv i16 %dividend, %divisor [all …]
|
D | fast-isel-divrem-x86-64.ll | 3 define i64 @test_sdiv64(i64 %dividend, i64 %divisor) nounwind { 5 %result = sdiv i64 %dividend, %divisor 13 define i64 @test_srem64(i64 %dividend, i64 %divisor) nounwind { 15 %result = srem i64 %dividend, %divisor 23 define i64 @test_udiv64(i64 %dividend, i64 %divisor) nounwind { 25 %result = udiv i64 %dividend, %divisor 33 define i64 @test_urem64(i64 %dividend, i64 %divisor) nounwind { 35 %result = urem i64 %dividend, %divisor
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/X86/ |
D | fast-isel-divrem.ll | 4 define i8 @test_sdiv8(i8 %dividend, i8 %divisor) nounwind { 6 %result = sdiv i8 %dividend, %divisor 14 define i8 @test_srem8(i8 %dividend, i8 %divisor) nounwind { 16 %result = srem i8 %dividend, %divisor 24 define i8 @test_udiv8(i8 %dividend, i8 %divisor) nounwind { 26 %result = udiv i8 %dividend, %divisor 34 define i8 @test_urem8(i8 %dividend, i8 %divisor) nounwind { 36 %result = urem i8 %dividend, %divisor 44 define i16 @test_sdiv16(i16 %dividend, i16 %divisor) nounwind { 46 %result = sdiv i16 %dividend, %divisor [all …]
|
D | fast-isel-divrem-x86-64.ll | 3 define i64 @test_sdiv64(i64 %dividend, i64 %divisor) nounwind { 5 %result = sdiv i64 %dividend, %divisor 13 define i64 @test_srem64(i64 %dividend, i64 %divisor) nounwind { 15 %result = srem i64 %dividend, %divisor 23 define i64 @test_udiv64(i64 %dividend, i64 %divisor) nounwind { 25 %result = udiv i64 %dividend, %divisor 33 define i64 @test_urem64(i64 %dividend, i64 %divisor) nounwind { 35 %result = urem i64 %dividend, %divisor
|
/external/jemalloc_new/test/unit/ |
D | div.c | 6 for (size_t divisor = 2; divisor < 1000 * 1000; ++divisor) { in TEST_BEGIN() local 8 div_init(&div_info, divisor); in TEST_BEGIN() 9 size_t max = 1000 * divisor; in TEST_BEGIN() 13 for (size_t dividend = 0; dividend < 1000 * divisor; in TEST_BEGIN() 14 dividend += divisor) { in TEST_BEGIN() 17 assert_zu_eq(dividend, quotient * divisor, in TEST_BEGIN() 19 "got quotient %zu", divisor, dividend, quotient); in TEST_BEGIN()
|
/external/u-boot/arch/arm/mach-uniphier/debug-uart/ |
D | debug-uart.c | 32 unsigned int divisor; in _debug_uart_init() local 37 divisor = uniphier_ld4_debug_uart_init(); in _debug_uart_init() 42 divisor = uniphier_pro4_debug_uart_init(); in _debug_uart_init() 47 divisor = uniphier_sld8_debug_uart_init(); in _debug_uart_init() 52 divisor = uniphier_pro5_debug_uart_init(); in _debug_uart_init() 57 divisor = uniphier_pxs2_debug_uart_init(); in _debug_uart_init() 62 divisor = uniphier_ld6b_debug_uart_init(); in _debug_uart_init() 68 divisor = uniphier_ld20_debug_uart_init(); in _debug_uart_init() 77 writel(divisor, base + UNIPHIER_UART_LDR); in _debug_uart_init()
|
/external/guava/guava/src/com/google/common/primitives/ |
D | UnsignedLongs.java | 182 public static long divide(long dividend, long divisor) { in divide() argument 183 if (divisor < 0) { // i.e., divisor >= 2^63: in divide() 184 if (compare(dividend, divisor) < 0) { in divide() 193 return dividend / divisor; in divide() 202 long quotient = ((dividend >>> 1) / divisor) << 1; in divide() 203 long rem = dividend - quotient * divisor; in divide() 204 return quotient + (compare(rem, divisor) >= 0 ? 1 : 0); in divide() 216 public static long remainder(long dividend, long divisor) { in remainder() argument 217 if (divisor < 0) { // i.e., divisor >= 2^63: in remainder() 218 if (compare(dividend, divisor) < 0) { in remainder() [all …]
|
/external/v8/src/wasm/ |
D | wasm-external-refs.cc | 175 int64_t divisor = ReadUnalignedValue<int64_t>(data + sizeof(dividend)); in int64_div_wrapper() local 176 if (divisor == 0) { in int64_div_wrapper() 179 if (divisor == -1 && dividend == std::numeric_limits<int64_t>::min()) { in int64_div_wrapper() 182 WriteUnalignedValue<int64_t>(data, dividend / divisor); in int64_div_wrapper() 188 int64_t divisor = ReadUnalignedValue<int64_t>(data + sizeof(dividend)); in int64_mod_wrapper() local 189 if (divisor == 0) { in int64_mod_wrapper() 192 WriteUnalignedValue<int64_t>(data, dividend % divisor); in int64_mod_wrapper() 198 uint64_t divisor = ReadUnalignedValue<uint64_t>(data + sizeof(dividend)); in uint64_div_wrapper() local 199 if (divisor == 0) { in uint64_div_wrapper() 202 WriteUnalignedValue<uint64_t>(data, dividend / divisor); in uint64_div_wrapper() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/ARM/Windows/ |
D | division.ll | 4 define arm_aapcs_vfpcc i32 @sdiv32(i32 %divisor, i32 %divident) { 6 %div = sdiv i32 %divident, %divisor 15 define arm_aapcs_vfpcc i32 @udiv32(i32 %divisor, i32 %divident) { 17 %div = udiv i32 %divident, %divisor 26 define arm_aapcs_vfpcc i64 @sdiv64(i64 %divisor, i64 %divident) { 28 %div = sdiv i64 %divident, %divisor 38 define arm_aapcs_vfpcc i64 @udiv64(i64 %divisor, i64 %divident) { 40 %div = udiv i64 %divident, %divisor
|
/external/llvm/test/CodeGen/ARM/Windows/ |
D | division.ll | 4 define arm_aapcs_vfpcc i32 @sdiv32(i32 %divisor, i32 %divident) { 6 %div = sdiv i32 %divident, %divisor 16 define arm_aapcs_vfpcc i32 @udiv32(i32 %divisor, i32 %divident) { 18 %div = udiv i32 %divident, %divisor 28 define arm_aapcs_vfpcc i64 @sdiv64(i64 %divisor, i64 %divident) { 30 %div = sdiv i64 %divident, %divisor 41 define arm_aapcs_vfpcc i64 @udiv64(i64 %divisor, i64 %divident) { 43 %div = udiv i64 %divident, %divisor
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | NFSubstitution.java | 667 long divisor; field in MultiplierSubstitution 691 this.divisor = rule.getDivisor(); in MultiplierSubstitution() 693 if (divisor == 0) { // this will cause recursion in MultiplierSubstitution() 706 divisor = NFRule.power(radix, exponent); in setDivisor() 708 if (divisor == 0) { in setDivisor() 724 return super.equals(that) && divisor == ((MultiplierSubstitution) that).divisor; in equals() 738 return (long)Math.floor(number / divisor); in transformNumber() 753 return number / divisor; in transformNumber() 755 return Math.floor(number / divisor); in transformNumber() 774 return newRuleValue * divisor; in composeRuleValue() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
D | NFSubstitution.java | 668 long divisor; field in MultiplierSubstitution 692 this.divisor = rule.getDivisor(); in MultiplierSubstitution() 694 if (divisor == 0) { // this will cause recursion in MultiplierSubstitution() 707 divisor = NFRule.power(radix, exponent); in setDivisor() 709 if (divisor == 0) { in setDivisor() 725 return super.equals(that) && divisor == ((MultiplierSubstitution) that).divisor; in equals() 739 return (long)Math.floor(number / divisor); in transformNumber() 754 return number / divisor; in transformNumber() 756 return Math.floor(number / divisor); in transformNumber() 775 return newRuleValue * divisor; in composeRuleValue() [all …]
|
/external/protobuf/src/google/protobuf/stubs/ |
D | int128.cc | 82 void uint128::DivModImpl(uint128 dividend, uint128 divisor, in DivModImpl() argument 84 if (divisor == 0) { in DivModImpl() 89 if (divisor > dividend) { in DivModImpl() 95 if (divisor == dividend) { in DivModImpl() 101 uint128 denominator = divisor; in DivModImpl() 125 uint128& uint128::operator/=(const uint128& divisor) { in operator /=() argument 128 DivModImpl(*this, divisor, "ient, &remainder); in operator /=() 132 uint128& uint128::operator%=(const uint128& divisor) { in operator %=() argument 135 DivModImpl(*this, divisor, "ient, &remainder); in operator %=()
|
/external/u-boot/board/compulab/common/ |
D | omap3_display.c | 54 .divisor = 12 | (1 << 16), 66 .divisor = 8 | (1 << 16), 78 .divisor = 5 | (1 << 16), 90 .divisor = 4 | (1 << 16), 102 .divisor = 3 | (1 << 16), 114 .divisor = 3 | (1 << 16), 126 .divisor = 10 | (1 << 10), 243 int divisor, pixclock_val; in parse_pixclock() local 247 divisor = DIV_ROUND_UP(PIXEL_CLK_NUMERATOR, pixclock_val); in parse_pixclock() 249 if (divisor <= 1) in parse_pixclock() [all …]
|
/external/caliper/caliper/src/main/java/com/google/caliper/util/ |
D | ShortDuration.java | 151 public abstract ShortDuration dividedBy(long divisor, RoundingMode roundingMode); in dividedBy() argument 160 public abstract ShortDuration dividedBy(BigDecimal divisor, RoundingMode roundingMode); in dividedBy() argument 181 @Override public ShortDuration dividedBy(long divisor, RoundingMode roundingMode) { 182 return dividedBy(new BigDecimal(divisor), roundingMode); 184 @Override public ShortDuration dividedBy(BigDecimal divisor, RoundingMode roundingMode) { 185 checkArgument(divisor.compareTo(BigDecimal.ZERO) != 0); 215 BigDecimal divisor = ONE_IN_PICOS.get(unit); in to() local 216 return toLong(new BigDecimal(picos).divide(divisor), roundingMode); in to() 242 @Override public ShortDuration dividedBy(long divisor, RoundingMode roundingMode) { in dividedBy() argument 243 return dividedBy(new BigDecimal(divisor), roundingMode); in dividedBy() [all …]
|
/external/grpc-grpc/src/php/tests/generated_code/ |
D | math_client.php | 40 $divisor = 4; variable 43 $div_arg->setDivisor($divisor); 46 p("Dividing $dividend by $divisor"); 82 $divisor = 3; variable 84 $div_arg->setDivisor($divisor); 86 p("client writing: $dividend / $divisor");
|
/external/compiler-rt/test/builtins/Unit/ |
D | mulsc3_test.c | 56 float _Complex divisor; in test__mulsc3() local 60 __real__ divisor = c; in test__mulsc3() local 61 __imag__ divisor = d; in test__mulsc3() local 66 switch (classify(divisor)) in test__mulsc3() 91 switch (classify(divisor)) in test__mulsc3() 122 switch (classify(divisor)) in test__mulsc3() 147 switch (classify(divisor)) in test__mulsc3() 172 switch (classify(divisor)) in test__mulsc3()
|
D | multc3_test.c | 59 long double _Complex divisor; in test__multc3() local 63 __real__ divisor = c; in test__multc3() local 64 __imag__ divisor = d; in test__multc3() local 69 switch (classify(divisor)) in test__multc3() 94 switch (classify(divisor)) in test__multc3() 121 switch (classify(divisor)) in test__multc3() 146 switch (classify(divisor)) in test__multc3() 171 switch (classify(divisor)) in test__multc3()
|
D | muldc3_test.c | 56 double _Complex divisor; in test__muldc3() local 60 __real__ divisor = c; in test__muldc3() local 61 __imag__ divisor = d; in test__muldc3() local 66 switch (classify(divisor)) in test__muldc3() 91 switch (classify(divisor)) in test__muldc3() 118 switch (classify(divisor)) in test__muldc3() 143 switch (classify(divisor)) in test__muldc3() 168 switch (classify(divisor)) in test__muldc3()
|
D | divsc3_test.c | 56 float _Complex divisor; in test__divsc3() local 60 __real__ divisor = c; in test__divsc3() local 61 __imag__ divisor = d; in test__divsc3() local 66 switch (classify(divisor)) in test__divsc3() 91 switch (classify(divisor)) in test__divsc3() 122 switch (classify(divisor)) in test__divsc3() 147 switch (classify(divisor)) in test__divsc3() 172 switch (classify(divisor)) in test__divsc3()
|
D | divtc3_test.c | 58 long double _Complex divisor; in test__divtc3() local 62 __real__ divisor = c; in test__divtc3() local 63 __imag__ divisor = d; in test__divtc3() local 68 switch (classify(divisor)) in test__divtc3() 93 switch (classify(divisor)) in test__divtc3() 124 switch (classify(divisor)) in test__divtc3() 149 switch (classify(divisor)) in test__divtc3() 174 switch (classify(divisor)) in test__divtc3()
|
D | mulxc3_test.c | 58 long double _Complex divisor; in test__mulxc3() local 62 __real__ divisor = c; in test__mulxc3() local 63 __imag__ divisor = d; in test__mulxc3() local 68 switch (classify(divisor)) in test__mulxc3() 93 switch (classify(divisor)) in test__mulxc3() 120 switch (classify(divisor)) in test__mulxc3() 145 switch (classify(divisor)) in test__mulxc3() 170 switch (classify(divisor)) in test__mulxc3()
|