/external/v8/test/webkit/ |
D | math-transforms-expected.txt | 29 PASS values.someInt * 1 is +values.someInt 30 PASS values.someInt * 1 is 42 31 PASS 1 * values.someInt is +values.someInt 32 PASS 1 * values.someInt is 42 33 PASS values.someFloat * 1 is +values.someFloat 34 PASS values.someFloat * 1 is 42.42 35 PASS 1 * values.someFloat is +values.someFloat 36 PASS 1 * values.someFloat is 42.42 37 PASS values.one * 1 is +values.one 38 PASS values.one * 1 is 1 [all …]
|
D | math-transforms.js | 30 var values = { variable 49 for (var name in values) { 53 shouldBe("values." + name + " * 1", stringify(values[numForStr])); 56 shouldBe("1 * values." + name, stringify(values[numForStr])); 59 for (var name1 in values) { 61 for (var name2 in values) { 65 … shouldBe("+values." + name1 + " * values." + name2, stringify(values[name1] * values[name2])); 67 … shouldBe("values." + name1 + " * +values." + name2, stringify(values[name1] * values[name2])); 69 … shouldBe("+values." + name1 + " * +values." + name2, stringify(values[name1] * values[name2])); 72 … shouldBe("+values." + name1 + " / values." + name2, stringify(values[name1] / values[name2])); [all …]
|
/external/proguard/src/proguard/evaluation/ |
D | Stack.java | 38 protected Value[] values; field in Stack 49 values = new Value[maxSize]; in Stack() 59 this(stack.values.length); in Stack() 82 if (maxSize > values.length) in reset() 85 values = new Value[maxSize]; in reset() 101 if (other.values.length > values.length) in copy() 104 values = new Value[other.values.length]; in copy() 108 System.arraycopy(other.values, 0, this.values, 0, other.currentSize); in copy() 133 Value thisValue = this.values[index]; in generalize() 139 Value otherValue = other.values[index]; in generalize() [all …]
|
/external/libgdx/gdx/src/com/badlogic/gdx/utils/ |
D | Queue.java | 30 protected T[] values; field in Queue 52 this.values = (T[])new Object[initialSize]; in Queue() 59 this.values = (T[])ArrayReflection.newInstance(type, initialSize); in Queue() 65 T[] values = this.values; in addLast() local 67 if (size == values.length) { in addLast() 68 resize(values.length << 1);// * 2 in addLast() 69 values = this.values; in addLast() 72 values[tail++] = object; in addLast() 73 if (tail == values.length) { in addLast() 83 T[] values = this.values; in addFirst() local [all …]
|
D | ArrayMap.java | 34 public V[] values; field in ArrayMap 58 values = (V[])new Object[capacity]; in ArrayMap() 68 values = (V[])ArrayReflection.newInstance(valueArrayType, capacity); in ArrayMap() 80 …this(array.ordered, array.size, array.keys.getClass().getComponentType(), array.values.getClass().… in ArrayMap() 83 System.arraycopy(array.values, 0, values, 0, size); in ArrayMap() 93 values[index] = value; in put() 104 System.arraycopy(values, index, values, index + 1, size - index); in put() 106 values[index] = value; in put() 121 System.arraycopy(map.values, offset, values, size, length); in putAll() 132 if (keys[i] == key) return values[i]; in get() [all …]
|
/external/valgrind/none/tests/x86/ |
D | gen_insn_test.pl | 218 my @values = split(/,/, $3); 237 foreach my $value (@values) 255 my @values = split(/,/, $3); 274 foreach my $value (@values) 288 my @values = split(/,/, $2); 290 $values[0] = oct($values[0]) if $values[0] =~ /^0/; 291 $values[1] = oct($values[1]) if $values[1] =~ /^0/; 293 $eflagsmask = sprintf "0x%08x", $values[0] ^ 0xffffffff; 294 $eflagsset = sprintf "0x%08x", $values[1]; 299 my @values = split(/,/, $2); [all …]
|
/external/valgrind/none/tests/amd64/ |
D | gen_insn_test.pl | 241 my @values = split(/,/, $3); 260 foreach my $value (@values) 278 my @values = split(/,/, $3); 297 foreach my $value (@values) 311 my @values = split(/,/, $2); 313 $values[0] = oct($values[0]) if $values[0] =~ /^0/; 314 $values[1] = oct($values[1]) if $values[1] =~ /^0/; 316 $eflagsmask = sprintf "0x%08x", $values[0] ^ 0xffffffff; 317 $eflagsset = sprintf "0x%08x", $values[1]; 322 my @values = split(/,/, $2); [all …]
|
/external/proguard/src/proguard/evaluation/value/ |
D | InstructionOffsetValue.java | 36 private int[] values; field in InstructionOffsetValue 46 this.values = new int[] { value }; in InstructionOffsetValue() 50 public InstructionOffsetValue(int[] values) in InstructionOffsetValue() argument 52 this.values = values; in InstructionOffsetValue() 58 return values == null ? 0 : values.length; in instructionOffsetCount() 64 return values[index]; in instructionOffset() 74 if (values != null) in contains() 76 for (int index = 0; index < values.length; index++) in contains() 78 if (values[index] == value) in contains() 97 if (values != null) in minimumValue() [all …]
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/stat/ |
D | StatUtils.java | 90 public static double sum(final double[] values) { in sum() argument 91 return SUM.evaluate(values); in sum() 108 public static double sum(final double[] values, final int begin, in sum() argument 110 return SUM.evaluate(values, begin, length); in sum() 124 public static double sumSq(final double[] values) { in sumSq() argument 125 return SUM_OF_SQUARES.evaluate(values); in sumSq() 142 public static double sumSq(final double[] values, final int begin, in sumSq() argument 144 return SUM_OF_SQUARES.evaluate(values, begin, length); in sumSq() 157 public static double product(final double[] values) { in product() argument 158 return PRODUCT.evaluate(values); in product() [all …]
|
/external/mesa3d/src/gallium/state_trackers/vega/ |
D | api_params.c | 262 const VGfloat * values) in vegaSetfv() argument 268 if ((count && !values) || !count_in_bounds(type, count) || !is_aligned(values)) { in vegaSetfv() 293 vegaSeti(type, floor(values[0])); in vegaSetfv() 298 VGuint *x = (VGuint*)values; in vegaSetfv() 300 state->scissor_rects[i].f = values[i]; in vegaSetfv() 311 state->color_transform_values[i] = values[i]; in vegaSetfv() 317 state->stroke.line_width.f = values[0]; in vegaSetfv() 318 state->stroke.line_width.i = float_to_int_floor(*((VGuint*)(values))); in vegaSetfv() 321 state->stroke.miter_limit.f = values[0]; in vegaSetfv() 322 state->stroke.miter_limit.i = float_to_int_floor(*((VGuint*)(values))); in vegaSetfv() [all …]
|
/external/guava/guava-tests/benchmark/com/google/common/math/ |
D | StatsBenchmark.java | 37 double mean(double[] values) { in mean() argument 39 for (double value : values) { in mean() 42 return sum / values.length; in mean() 47 double mean(double[] values) { in mean() argument 50 for (double value : values) { in mean() 56 return sum / values.length; in mean() 61 double mean(double[] values) { in mean() argument 62 double mean = values[0]; in mean() 63 for (int i = 1; i < values.length; i++) { in mean() 64 mean = mean + (values[i] - mean) / (i + 1); in mean() [all …]
|
/external/libgdx/gdx/src/com/badlogic/gdx/math/ |
D | WindowedMean.java | 25 float values[]; field in WindowedMean 36 values = new float[window_size]; in WindowedMean() 41 return added_values >= values.length; in hasEnoughData() 48 for (int i = 0; i < values.length; i++) in clear() 49 values[i] = 0; in clear() 57 if (added_values < values.length) in addValue() 59 values[last_value++] = value; in addValue() 60 if (last_value > values.length - 1) last_value = 0; in addValue() 71 for (int i = 0; i < values.length; i++) in getMean() 72 mean += values[i]; in getMean() [all …]
|
D | CumulativeDistribution.java | 25 private Array<CumulativeValue> values; field in CumulativeDistribution 28 values = new Array<CumulativeValue>(false, 10, CumulativeValue.class); in CumulativeDistribution() 33 values.add(new CumulativeValue(value, 0, intervalSize)); in add() 38 values.add(new CumulativeValue(value, 0, 0)); in add() 44 for(int i=0; i < values.size; ++i){ in generate() 45 sum += values.items[i].interval; in generate() 46 values.items[i].frequency = sum; in generate() 53 for(int i=0; i < values.size; ++i){ in generateNormalized() 54 sum += values.items[i].interval; in generateNormalized() 57 for(int i=0; i < values.size; ++i){ in generateNormalized() [all …]
|
D | ConvexHull.java | 165 private void sort (float[] values, int count) { in sort() argument 175 int i = quicksortPartition(values, lower, upper); in sort() 189 private int quicksortPartition (final float[] values, int lower, int upper) { in quicksortPartition() argument 190 float x = values[lower]; in quicksortPartition() 191 float y = values[lower + 1]; in quicksortPartition() 197 while (down < up && values[down] <= x) in quicksortPartition() 199 while (values[up] > x || (values[up] == x && values[up + 1] < y)) in quicksortPartition() 202 temp = values[down]; in quicksortPartition() 203 values[down] = values[up]; in quicksortPartition() 204 values[up] = temp; in quicksortPartition() [all …]
|
/external/v8/test/mjsunit/compiler/ |
D | division-by-constant.js | 65 function PushSymmetric(values, x) { argument 66 values.push(x, -x); 69 function PushRangeSymmetric(values, from, to) { argument 71 PushSymmetric(values, x); 76 var values = [ 86 PushSymmetric(values, 1 << shift); 89 PushRangeSymmetric(values, 1, 32); 91 PushRangeSymmetric(values, 100, 109); 92 PushRangeSymmetric(values, 1000, 1009); 93 PushRangeSymmetric(values, 10000, 10009); [all …]
|
/external/chromium-trace/catapult/telemetry/telemetry/value/ |
D | list_of_scalar_values.py | 61 def _Mean(values): argument 62 return float(sum(values)) / len(values) if len(values) > 0 else 0.0 72 def __init__(self, page, name, units, values, argument 81 if values is not None: 82 assert isinstance(values, list) 83 assert len(values) > 0 84 assert all(isinstance(v, numbers.Number) for v in values) 88 none_values.ValidateNoneValueReason(values, none_value_reason) 89 self.values = values 92 if values is not None and std is None: [all …]
|
/external/mockito/cglib-and-asm/src/org/mockito/asm/tree/ |
D | AnnotationNode.java | 60 public List values; field in AnnotationNode 76 AnnotationNode(final List values) { in AnnotationNode() argument 77 this.values = values; in AnnotationNode() 85 if (values == null) { in visit() 86 values = new ArrayList(this.desc != null ? 2 : 1); in visit() 89 values.add(name); in visit() 91 values.add(value); in visit() 99 if (values == null) { in visitEnum() 100 values = new ArrayList(this.desc != null ? 2 : 1); in visitEnum() 103 values.add(name); in visitEnum() [all …]
|
/external/fonttools/Lib/fontTools/ttLib/tables/ |
D | _c_v_t.py | 11 values = array.array("h") 12 values.fromstring(data) 14 values.byteswap() 15 self.values = values 18 values = self.values[:] 20 values.byteswap() 21 return values.tostring() 24 for i in range(len(self.values)): 25 value = self.values[i] 31 self.values = array.array("h") [all …]
|
/external/chromium-trace/catapult/dashboard/dashboard/ |
D | math_utils.py | 10 def Mean(values): argument 12 if not values: 14 return sum(values) / float(len(values)) 17 def Median(values): argument 19 if not values: 21 sorted_values = sorted(values) 22 mid = len(values) / 2 23 if len(values) % 2 == 1: 28 def Variance(values): argument 30 if not values: [all …]
|
D | find_step.py | 38 def Steppiness(values, step_index): argument 49 normalized = _Normalize(values) 53 def _Normalize(values): argument 55 mean = math_utils.Mean(values) 56 zeroed = [x - mean for x in values] 61 def _MinimizeDistanceFromStep(values): argument 63 indices = range(1, len(values)) 64 return min(indices, key=lambda i: _DistanceFromStep(values, i)) 67 def _RegressionSizeScore(values, step_index): argument 69 left, right = values[:step_index], values[step_index:] [all …]
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/stat/descriptive/moment/ |
D | SemiVariance.java | 178 public double evaluate(final double[] values) { in evaluate() argument 179 if (values == null) { in evaluate() 182 return evaluate(values, 0, values.length); in evaluate() 201 public double evaluate(final double[] values, final int start, final int length) { in evaluate() argument 202 double m = (new Mean()).evaluate(values, start, length); in evaluate() 203 return evaluate(values, m, varianceDirection, biasCorrected, 0, values.length); in evaluate() 217 public double evaluate(final double[] values, Direction direction) { in evaluate() argument 218 double m = (new Mean()).evaluate(values); in evaluate() 219 return evaluate (values, m, direction, biasCorrected, 0, values.length); in evaluate() 234 public double evaluate(final double[] values, final double cutoff) { in evaluate() argument [all …]
|
D | Variance.java | 215 public double evaluate(final double[] values) { in evaluate() argument 216 if (values == null) { in evaluate() 219 return evaluate(values, 0, values.length); in evaluate() 243 public double evaluate(final double[] values, final int begin, final int length) { in evaluate() argument 247 if (test(values, begin, length)) { in evaluate() 253 double m = mean.evaluate(values, begin, length); in evaluate() 254 var = evaluate(values, m, begin, length); in evaluate() 302 public double evaluate(final double[] values, final double[] weights, in evaluate() argument 307 if (test(values, weights,begin, length)) { in evaluate() 313 double m = mean.evaluate(values, weights, begin, length); in evaluate() [all …]
|
/external/deqp/data/gles2/shaders/ |
D | keywords.test | 8 values {} 25 values {} 42 values {} 59 values {} 76 values {} 93 values {} 110 values {} 127 values {} 144 values {} 161 values {} [all …]
|
/external/deqp/scripts/khr_util/ |
D | gen_str_util.py | 29 def allValuesUndefined (definitions, values): argument 30 for value in values: 35 def anyValueDefined (definitions, values): argument 36 return not allValuesUndefined(definitions, values) 46 for groupName, values in enumGroups: 47 if anyValueDefined(definitions, values): 53 for groupName, values in bitfieldGroups: 54 if anyValueDefined(definitions, values): 60 for groupName, values in enumGroups: 61 if anyValueDefined(definitions, values): [all …]
|
/external/aac/libAACenc/src/ |
D | bit_cnt.cpp | 109 static void FDKaacEnc_count1_2_3_4_5_6_7_8_9_10_11(const SHORT *RESTRICT values, in FDKaacEnc_count1_2_3_4_5_6_7_8_9_10_11() argument 127 t0= values[i+0]; in FDKaacEnc_count1_2_3_4_5_6_7_8_9_10_11() 128 t1= values[i+1]; in FDKaacEnc_count1_2_3_4_5_6_7_8_9_10_11() 129 t2= values[i+2]; in FDKaacEnc_count1_2_3_4_5_6_7_8_9_10_11() 130 t3= values[i+3]; in FDKaacEnc_count1_2_3_4_5_6_7_8_9_10_11() 185 static void FDKaacEnc_count3_4_5_6_7_8_9_10_11(const SHORT *RESTRICT values, in FDKaacEnc_count3_4_5_6_7_8_9_10_11() argument 203 t0= values[i+0]; in FDKaacEnc_count3_4_5_6_7_8_9_10_11() 204 t1= values[i+1]; in FDKaacEnc_count3_4_5_6_7_8_9_10_11() 205 t2= values[i+2]; in FDKaacEnc_count3_4_5_6_7_8_9_10_11() 206 t3= values[i+3]; in FDKaacEnc_count3_4_5_6_7_8_9_10_11() [all …]
|