/external/llvm/lib/Transforms/Utils/ |
BypassSlowDivision.cpp | 30 Value *Dividend; 34 : SignedOp(InSignedOp), Dividend(InDividend), Divisor(InDivisor) {} 51 Val1.Dividend == Val2.Dividend && 64 return (unsigned)(reinterpret_cast<uintptr_t>(Val.Dividend) ^ 85 Value *Dividend = Instr->getOperand(0); 89 (isa<ConstantInt>(Dividend) && isa<ConstantInt>(Divisor))) { 108 SlowQuotientV = SlowBuilder.CreateSDiv(Dividend, Divisor); 109 SlowRemainderV = SlowBuilder.CreateSRem(Dividend, Divisor); 111 SlowQuotientV = SlowBuilder.CreateUDiv(Dividend, Divisor) [all...] |
IntegerDivision.cpp | 27 /// remainder, which will have the sign of the dividend. Builder's insert point 32 static Value *generateSignedRemainderCode(Value *Dividend, Value *Divisor, 36 // ; %dividend_sgn = ashr i32 %dividend, 31 38 // ; %dvd_xor = xor i32 %dividend, %dividend_sgn 42 // ; %urem = urem i32 %dividend, %divisor 45 Value *DividendSign = Builder.CreateAShr(Dividend, ThirtyOne); 47 Value *DvdXor = Builder.CreateXor(Dividend, DividendSign); 67 static Value *generatedUnsignedRemainderCode(Value *Dividend, Value *Divisor, 69 // Remainder = Dividend - Quotient*Divisor 71 // ; %quotient = udiv i32 %dividend, %diviso [all...] |
/external/guava/guava/src/com/google/common/primitives/ |
UnsignedLongs.java | 171 * Returns dividend / divisor, where the dividend and divisor are treated as unsigned 64-bit 174 * @param dividend the dividend (numerator) 178 public static long divide(long dividend, long divisor) { 180 if (compare(dividend, divisor) < 0) { 181 return 0; // dividend < divisor 183 return 1; // dividend >= divisor 187 // Optimization - use signed division if dividend < 2^63 188 if (dividend >= 0) [all...] |
UnsignedInts.java | 169 * Returns dividend / divisor, where the dividend and divisor are treated as unsigned 32-bit 172 * @param dividend the dividend (numerator) 176 public static int divide(int dividend, int divisor) { 177 return (int) (toLong(dividend) / toLong(divisor)); 181 * Returns dividend % divisor, where the dividend and divisor are treated as unsigned 32-bit 184 * @param dividend the dividend (numerator [all...] |
/external/kernel-headers/original/asm-x86/ |
div64.h | 14 * - modifies the 64-bit dividend _in_place_ 53 extern uint64_t div64_64(uint64_t dividend, uint64_t divisor);
|
/libcore/luni/src/main/java/java/math/ |
Division.java | 49 static int divideArrayByInt(int[] quotient, int[] dividend, final int dividendLength, 56 long temp = (rem << 32) | (dividend[i] & 0xffffffffL); 63 * make the dividend positive shifting it right by 1 bit then
|
/external/compiler-rt/lib/arm/ |
modsi3.S | 37 // Set aside the sign of the dividend. 46 // Apply sign of dividend to result and return.
|
/external/chromium_org/printing/ |
units.cc | 16 // to add half of the divisor value to the dividend value. You need to do the
|
/external/compiler-rt/lib/ubsan/lit_tests/Integer/ |
div-zero.cpp | 14 DIVIDEND / 0;
|
/external/guava/guava-tests/test/com/google/common/primitives/ |
UnsignedIntsTest.java | 92 int dividend = r.nextInt(); local 95 assertTrue(dividend 96 - (divisor * UnsignedInts.divide(dividend, divisor) + UnsignedInts.remainder(dividend,
|
UnsignedLongsTest.java | 84 long dividend = r.nextLong(); local 87 assertTrue(dividend - (divisor * UnsignedLongs.divide(dividend, divisor) 88 + UnsignedLongs.remainder(dividend, divisor)) == 0);
|
/external/kernel-headers/original/asm-arm/ |
div64.h | 16 * In other words, a 64-bit dividend with a 32-bit divisor producing
|
/external/chromium_org/v8/test/mjsunit/ |
div-mod.js | 95 function compute_mod(dividend, divisor) { 97 // dividend is an infinity. Return dividend if divisor is an infinity. 98 if (isNaN(dividend) || isNaN(divisor) || divisor == 0) { return NaN; } 100 if (dividend < 0) { dividend = -dividend; sign = -1; } 101 if (dividend == Infinity) { return NaN; } 103 if (divisor == Infinity) { return sign * dividend; } 112 return sign * rec_mod(dividend, divisor) [all...] |
/external/v8/test/mjsunit/ |
div-mod.js | 95 function compute_mod(dividend, divisor) { 97 // dividend is an infinity. Return dividend if divisor is an infinity. 98 if (isNaN(dividend) || isNaN(divisor) || divisor == 0) { return NaN; } 100 if (dividend < 0) { dividend = -dividend; sign = -1; } 101 if (dividend == Infinity) { return NaN; } 103 if (divisor == Infinity) { return sign * dividend; } 112 return sign * rec_mod(dividend, divisor) [all...] |
/external/bison/lib/ |
xalloc-oversized.h | 29 calculations, so the conservative dividend to use here is
|
/packages/wallpapers/Basic/src/com/android/wallpaper/grass/ |
SunCalculator.java | 156 double dividend = offset - getBaseLongitudeHour(); 157 double addend = dividend / 24.0; 236 double dividend = cosineZenith - sinDeclinationTimesSinLat; local 239 return dividend / divisor;
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/div_double/ |
Test_div_double.java | 35 * @title Dividend = 0 43 * @title Dividend is negative 52 * @title Dividend is negative
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/div_double_2addr/ |
Test_div_double_2addr.java | 35 * @title Dividend = 0 43 * @title Dividend is negative 52 * @title Dividend is negative
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/div_int/ |
Test_div_int.java | 43 * @title Dividend = 0 51 * @title Dividend is negative 67 * @title Both Dividend and divisor are negative
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/div_int_2addr/ |
Test_div_int_2addr.java | 42 * @title Dividend = 0 50 * @title Dividend is negative 66 * @title Both Dividend and divisor are negative
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/div_int_lit16/ |
Test_div_int_lit16.java | 55 * @title Dividend = 0 63 * @title Dividend is negative 79 * @title Both Dividend and divisor are negative
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/div_int_lit8/ |
Test_div_int_lit8.java | 54 * @title Dividend = 0 62 * @title Dividend is negative 78 * @title Both Dividend and divisor are negative
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/div_long/ |
Test_div_long.java | 43 * @title Dividend = 0 51 * @title Dividend is negative 67 * @title Both Dividend and divisor are negative
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/div_long_2addr/ |
Test_div_long_2addr.java | 42 * @title Dividend = 0 50 * @title Dividend is negative 66 * @title Both Dividend and divisor are negative
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/rem_int/ |
Test_rem_int.java | 43 * @title Dividend = 0 51 * @title Dividend is negative 67 * @title Both Dividend and divisor are negative
|