Home
last modified time | relevance | path

Searched refs:factor (Results 1 – 12 of 12) sorted by relevance

/libcore/benchmarks/src/benchmarks/
DMultiplicationBenchmark.java43 int factor = 10; in timeMultiplyIntByVariable10() local
45 result *= factor; in timeMultiplyIntByVariable10()
51 int factor = 8; in timeMultiplyIntByVariable8() local
53 result *= factor; in timeMultiplyIntByVariable8()
/libcore/luni/src/main/java/java/lang/
DStrictMath.java1020 long factor = (int) ((bits & Double.EXPONENT_MASK) >> Double.MANTISSA_BITS) in scalb() local
1031 factor = factor - subNormalFactor; in scalb()
1033 if (factor > Double.MAX_EXPONENT) { in scalb()
1039 if (factor < -Double.EXPONENT_BIAS) { in scalb()
1041 long digits = factor + Double.EXPONENT_BIAS + subNormalFactor; in scalb()
1052 result = ((factor + Double.EXPONENT_BIAS) << Double.MANTISSA_BITS) in scalb()
1056 result = ((factor + Double.EXPONENT_BIAS) << Double.MANTISSA_BITS) in scalb()
1073 int factor = ((bits & Float.EXPONENT_MASK) >> Float.MANTISSA_BITS) in scalb() local
1083 factor = factor - subNormalFactor; in scalb()
1085 if (factor > Float.MAX_EXPONENT) { in scalb()
[all …]
DMath.java1156 long factor = ((bits & Double.EXPONENT_MASK) >> Double.MANTISSA_BITS) in scalb() local
1166 factor = factor - subNormalFactor; in scalb()
1168 if (factor > Double.MAX_EXPONENT) { in scalb()
1174 if (factor <= -Double.EXPONENT_BIAS) { in scalb()
1176 long digits = factor + Double.EXPONENT_BIAS + subNormalFactor; in scalb()
1187 result = ((factor + Double.EXPONENT_BIAS) << Double.MANTISSA_BITS) in scalb()
1191 result = ((factor + Double.EXPONENT_BIAS) << Double.MANTISSA_BITS) in scalb()
1208 int factor = ((bits & Float.EXPONENT_MASK) >> Float.MANTISSA_BITS) in scalb() local
1217 factor = factor - subNormalFactor; in scalb()
1219 if (factor > Float.MAX_EXPONENT) { in scalb()
[all …]
/libcore/benchmarks/src/benchmarks/regression/
DIntConstantDivisionBenchmark.java68 int factor = 2; in timeDivideIntByVariable2() local
70 result /= factor; in timeDivideIntByVariable2()
76 int factor = 10; in timeDivideIntByVariable10() local
78 result /= factor; in timeDivideIntByVariable10()
DIntConstantMultiplicationBenchmark.java89 int factor = 10; in timeMultiplyIntByVariable10() local
91 result *= factor; in timeMultiplyIntByVariable10()
97 int factor = 8; in timeMultiplyIntByVariable8() local
99 result *= factor; in timeMultiplyIntByVariable8()
DIntConstantRemainderBenchmark.java63 int factor = 2; in timeRemainderIntByVariable2() local
65 result %= factor; in timeRemainderIntByVariable2()
DR.java1598 public static final int factor = 0; field in R
/libcore/luni/src/main/java/java/math/
DMultiplication.java91 static BigInteger multiplyByPositiveInt(BigInteger val, int factor) { in multiplyByPositiveInt() argument
93 bi.multiplyByPositiveInt(factor); in multiplyByPositiveInt()
DBigInteger.java1135 static int multiplyByInt(int[] res, int[] a, int aSize, int factor) {
1139 carry += (a[i] & 0xFFFFFFFFL) * (factor & 0xFFFFFFFFL);
/libcore/luni/src/main/java/javax/xml/datatype/
DDuration.java633 public Duration multiply(int factor) { in multiply() argument
634 return multiply(BigDecimal.valueOf(factor)); in multiply()
684 public abstract Duration multiply(final BigDecimal factor); in multiply() argument
/libcore/luni/src/test/java/tests/java/sql/
DUpdateFunctionalityTest.java232 int factor = 3; in testUpdate5() local
234 + " SET field2=field2 *" + factor; in testUpdate5()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DMathTest.java1877 public int factor; in test_shiftIntBits_II() field in MathTest.Tuple
1879 public Tuple(int result, int value, int factor) { in test_shiftIntBits_II() argument
1882 this.factor = factor; in test_shiftIntBits_II()
1909 .intBitsToFloat(tuple.value), tuple.factor))); in test_shiftIntBits_II()
1911 .intBitsToFloat(tuple.value), tuple.factor))); in test_shiftIntBits_II()
1927 public int factor; in test_shiftLongBits_LL() field in MathTest.Tuple
1929 public Tuple(long result, long value, int factor) { in test_shiftLongBits_LL() argument
1932 this.factor = factor; in test_shiftLongBits_LL()
1955 Double.longBitsToDouble(tuple.value), tuple.factor))); in test_shiftLongBits_LL()
1957 -Double.longBitsToDouble(tuple.value), tuple.factor))); in test_shiftLongBits_LL()