/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
|
D | div8.ll | 6 define signext i8 @test_div(i8 %dividend, i8 %divisor) nounwind ssp { 8 %dividend.addr = alloca i8, align 2 11 store i8 %dividend, i8* %dividend.addr, align 2 13 %tmp = load i8, i8* %dividend.addr, align 2
|
/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
|
D | div8.ll | 6 define signext i8 @test_div(i8 %dividend, i8 %divisor) nounwind ssp { 8 %dividend.addr = alloca i8, align 2 11 store i8 %dividend, i8* %dividend.addr, align 2 13 %tmp = load i8, i8* %dividend.addr, align 2
|
/external/u-boot/arch/arm/lib/ |
D | lib1funcs.S | 26 .macro ARM_DIV_BODY dividend, divisor, result, curbit 31 clz \result, \dividend 52 @ larger than the dividend. 54 cmplo \divisor, \dividend 62 cmplo \divisor, \dividend 72 1: cmp \dividend, \divisor 73 subhs \dividend, \dividend, \divisor 75 cmp \dividend, \divisor, lsr #1 76 subhs \dividend, \dividend, \divisor, lsr #1 78 cmp \dividend, \divisor, lsr #2 [all …]
|
/external/u-boot/lib/ |
D | div64.c | 64 s64 div_s64_rem(s64 dividend, s32 divisor, s32 *remainder) in div_s64_rem() argument 68 if (dividend < 0) { in div_s64_rem() 69 quotient = div_u64_rem(-dividend, abs(divisor), (u32 *)remainder); in div_s64_rem() 74 quotient = div_u64_rem(dividend, abs(divisor), (u32 *)remainder); in div_s64_rem() 95 u64 div64_u64_rem(u64 dividend, u64 divisor, u64 *remainder) in div64_u64_rem() argument 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() 135 u64 div64_u64(u64 dividend, u64 divisor) in div64_u64() argument 141 quot = div_u64(dividend, divisor); in div64_u64() [all …]
|
/external/guava/guava/src/com/google/common/primitives/ |
D | UnsignedLongs.java | 182 public static long divide(long dividend, long divisor) { in divide() argument 184 if (compare(dividend, divisor) < 0) { in divide() 192 if (dividend >= 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() 216 public static long remainder(long dividend, long divisor) { in remainder() argument 218 if (compare(dividend, divisor) < 0) { in remainder() 219 return dividend; // dividend < divisor in remainder() 221 return dividend - divisor; // dividend >= divisor in remainder() [all …]
|
D | UnsignedInts.java | 180 public static int divide(int dividend, int divisor) { in divide() argument 181 return (int) (toLong(dividend) / toLong(divisor)); in divide() 192 public static int remainder(int dividend, int divisor) { in remainder() argument 193 return (int) (toLong(dividend) % toLong(divisor)); in remainder()
|
/external/v8/src/wasm/ |
D | wasm-external-refs.cc | 174 int64_t dividend = ReadUnalignedValue<int64_t>(data); in int64_div_wrapper() local 175 int64_t divisor = ReadUnalignedValue<int64_t>(data + sizeof(dividend)); 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() 187 int64_t dividend = ReadUnalignedValue<int64_t>(data); in int64_mod_wrapper() local 188 int64_t divisor = ReadUnalignedValue<int64_t>(data + sizeof(dividend)); in int64_mod_wrapper() 192 WriteUnalignedValue<int64_t>(data, dividend % divisor); in int64_mod_wrapper() 197 uint64_t dividend = ReadUnalignedValue<uint64_t>(data); in uint64_div_wrapper() local 198 uint64_t divisor = ReadUnalignedValue<uint64_t>(data + sizeof(dividend)); in uint64_div_wrapper() 202 WriteUnalignedValue<uint64_t>(data, dividend / divisor); in uint64_div_wrapper() [all …]
|
/external/jemalloc_new/test/unit/ |
D | div.c | 13 for (size_t dividend = 0; dividend < 1000 * divisor; in TEST_BEGIN() local 14 dividend += divisor) { in TEST_BEGIN() 16 &div_info, dividend); in TEST_BEGIN() 17 assert_zu_eq(dividend, quotient * divisor, in TEST_BEGIN() 19 "got quotient %zu", divisor, dividend, quotient); in TEST_BEGIN()
|
/external/protobuf/src/google/protobuf/stubs/ |
D | int128.cc | 82 void uint128::DivModImpl(uint128 dividend, uint128 divisor, in DivModImpl() argument 85 GOOGLE_LOG(FATAL) << "Division or mod by zero: dividend.hi=" << dividend.hi_ in DivModImpl() 86 << ", lo=" << dividend.lo_; in DivModImpl() 89 if (divisor > dividend) { in DivModImpl() 91 *remainder_ret = dividend; in DivModImpl() 95 if (divisor == dividend) { in DivModImpl() 106 int shift = Fls128(dividend) - Fls128(denominator); in DivModImpl() 113 if (dividend >= denominator) { in DivModImpl() 114 dividend -= denominator; in DivModImpl() 122 *remainder_ret = dividend; in DivModImpl()
|
/external/u-boot/arch/x86/lib/ |
D | div64.c | 57 static u64 _64bit_divide(u64 dividend, u64 divider, u64 *rem_p) in _64bit_divide() argument 69 if (dividend <= MAX_32BIT_UINT) { in _64bit_divide() 75 result = (u32)dividend / (u32)divider; in _64bit_divide() 77 *rem_p = (u32)dividend % (u32)divider; in _64bit_divide() 82 while (divider <= dividend) { in _64bit_divide() 84 u64 limit = __lshrdi3(dividend, 1); in _64bit_divide() 92 dividend -= locald; in _64bit_divide() 96 *rem_p = dividend; in _64bit_divide()
|
/external/grpc-grpc/src/php/tests/generated_code/ |
D | math_client.php | 39 $dividend = 7; variable 42 $div_arg->setDividend($dividend); 46 p("Dividing $dividend by $divisor"); 81 $dividend = 2 * $i + 1; variable 83 $div_arg->setDividend($dividend); 86 p("client writing: $dividend / $divisor");
|
/external/swiftshader/third_party/LLVM/test/CodeGen/X86/ |
D | div8.ll | 6 define signext i8 @test_div(i8 %dividend, i8 %divisor) nounwind ssp { 8 %dividend.addr = alloca i8, align 2 11 store i8 %dividend, i8* %dividend.addr, align 2 13 %tmp = load i8* %dividend.addr, align 2
|
/external/tensorflow/tensorflow/compiler/xla/tests/ |
D | scalar_computations_test.cc | 264 int32 dividend; member 271 *os << "{" << p.dividend << ", " << p.divisor << ", " << p.quotient << ", " in PrintTo() 281 Div(ConstantR0<int32>(&builder, p.dividend), in XLA_TEST_P() 290 Rem(ConstantR0<int32>(&builder, p.dividend), in XLA_TEST_P() 299 XlaOp dividend; in XLA_TEST_P() local 302 CreateR0Parameter<int32>(p.dividend, 0, "dividend", &builder, ÷nd); in XLA_TEST_P() 305 Div(dividend, divisor); in XLA_TEST_P() 314 XlaOp dividend; in XLA_TEST_P() local 317 CreateR0Parameter<int32>(p.dividend, 0, "dividend", &builder, ÷nd); in XLA_TEST_P() 320 Rem(dividend, divisor); in XLA_TEST_P() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/SystemZ/ |
D | regalloc-GR128.ll | 6 define void @test0(i64 %dividend, i64 %divisor) { 7 %rem = urem i64 %dividend, %divisor 13 define i64 @test1(i64 %dividend, i64 %divisor) { 14 %rem = urem i64 %dividend, %divisor
|
/external/grpc-grpc/src/ruby/bin/ |
D | math_client.rb | 47 req = Math::DivArgs.new(dividend: 7, divisor: 3) 81 reqs << Math::DivArgs.new(dividend: 7, divisor: 3) 82 reqs << Math::DivArgs.new(dividend: 5, divisor: 2) 83 reqs << Math::DivArgs.new(dividend: 7, divisor: 2)
|
D | math_server.rb | 105 Math::DivReply.new(quotient: div_args.dividend / div_args.divisor, 106 remainder: div_args.dividend % div_args.divisor) 133 resp = Math::DivReply.new(quotient: req.dividend / req.divisor, 134 remainder: req.dividend % req.divisor)
|
/external/u-boot/lib/libavb/ |
D | avb_sysdeps_posix.c | 31 uint32_t avb_div_by_10(uint64_t* dividend) { in avb_div_by_10() argument 32 uint32_t rem = (uint32_t)(*dividend % 10); in avb_div_by_10() 33 *dividend /= 10; in avb_div_by_10()
|
/external/avb/libavb/ |
D | avb_sysdeps_posix.c | 80 uint32_t avb_div_by_10(uint64_t* dividend) { in avb_div_by_10() argument 81 uint32_t rem = (uint32_t)(*dividend % 10); in avb_div_by_10() 82 *dividend /= 10; in avb_div_by_10()
|
/external/v8/src/ |
D | fixed-dtoa.cc | 320 uint64_t dividend = significand; in FastFixedDtoa() local 334 dividend <<= exponent - divisor_power; in FastFixedDtoa() 335 quotient = static_cast<uint32_t>(dividend / divisor); in FastFixedDtoa() 336 remainder = (dividend % divisor) << divisor_power; in FastFixedDtoa() 339 quotient = static_cast<uint32_t>(dividend / divisor); in FastFixedDtoa() 340 remainder = (dividend % divisor) << exponent; in FastFixedDtoa()
|
/external/icu/icu4c/source/i18n/ |
D | gregoimp.cpp | 43 double ClockMath::floorDivide(double dividend, double divisor, in floorDivide() argument 47 double quotient = floorDivide(dividend, divisor); in floorDivide() 48 remainder = dividend - (quotient * divisor); in floorDivide() 70 remainder = dividend - (quotient * divisor); in floorDivide()
|