Searched defs:sum (Results 1 - 25 of 58) sorted by relevance

123

/openjdk7/hotspot/test/compiler/6866651/
H A DTest.java34 static int sum() { method in class:Test
44 System.err.println(String.valueOf(sum()));
/openjdk7/hotspot/src/share/tools/IdealGraphVisualizer/HierarchicalLayout/src/com/sun/hotspot/igv/hierarchicallayout/
H A DTiming.java33 private long sum; field in class:Timing
42 long val = sum;
64 sum += newValue - lastValue;
/openjdk7/langtools/test/tools/javac/multicatch/
H A DPos04.java60 static int sum = 0; field in class:Pos04
66 if (sum != 4) {
67 throw new Error("bad checksum - expected:4, found:" + sum);
83 sum += catchNumber.value();
89 sum += catchNumber.value();
/openjdk7/jaxp/src/com/sun/org/apache/xalan/internal/lib/
H A DExsltDynamic.java231 * The dyn:sum function calculates the sum for the nodes passed as the first argument,
238 * the dyn:sum function itself, except for the following:
243 * the first argument to the dyn:sum function, arranged in document order.</li>
245 * dyn:sum function.</li>
248 * The dyn:sum function returns the sumimum of these values, calculated in exactly
249 * the same way as for sum.
255 * nodes based on their string values, you should use the sum function.
261 * @return The sum of the evaluation value on each node
263 public static double sum(ExpressionContex method in class:ExsltDynamic
[all...]
/openjdk7/jdk/test/java/nio/Buffer/
H A DSwapMicroBenchmark.java151 private static void deoptimize(int sum) { argument
152 if (sum == 42)
176 int sum = 0;
178 sum += x.get(j);
179 deoptimize(sum);}}},
185 int sum = 0;
187 sum += x.get(j);
188 deoptimize(sum);}}},
194 int sum = 0;
196 sum
[all...]
/openjdk7/jdk/src/share/classes/com/sun/jndi/ldap/
H A DNotifierArgs.java125 private int sum = -1; field in class:NotifierArgs
127 if (sum == -1)
128 sum = mask + name.hashCode() + filter.hashCode() + controlsCode();
129 return sum;
H A DServiceLocator.java227 // compute the running sum for records between head and tail
228 int sum = 0;
231 sum += srvRecords[i].weight;
232 srvRecords[i].sum = sum;
239 int target = (sum == 0 ? 0 : random.nextInt(sum + 1));
241 if (srvRecords[i] != null && srvRecords[i].sum >= target) {
259 int sum; field in class:ServiceLocator.SrvRecord
/openjdk7/hotspot/src/share/vm/utilities/
H A DnumberSeq.hpp51 double _sum; // the sum of the elements in the sequence
52 double _sum_of_squares; // the sum of squares of the elements in the sequence
72 // the sum of the elements in the sequence
73 double sum() const { return _sum; } function in class:AbsSeq
/openjdk7/jdk/test/com/sun/crypto/provider/Cipher/DES/
H A DPerformanceTest.java76 int sum =0; field in class:PerformanceTest
136 col.append("Average: " + (sum/(dataSizes.length*rounds.length)));
137 sum = 0;
191 sum += speed;
/openjdk7/jdk/src/share/native/sun/awt/medialib/
H A Dmlib_ImageConvKernelConvert.c88 mlib_d64 sum_pos, sum_neg, sum, norm, max, f; local
109 sum = (sum_pos > sum_neg) ? sum_pos : sum_neg;
110 scale = mlib_ilogb(sum);
116 sum = 0;
121 sum += f;
126 scale = mlib_ilogb(sum);
/openjdk7/jdk/src/share/classes/sun/security/krb5/
H A DKrbServiceLocator.java238 // compute the running sum for records between head and tail
239 int sum = 0;
242 sum += srvRecords[i].weight;
243 srvRecords[i].sum = sum;
250 int target = (sum == 0 ? 0 : random.nextInt(sum + 1));
252 if (srvRecords[i] != null && srvRecords[i].sum >= target) {
270 int sum; field in class:KrbServiceLocator.SrvRecord
/openjdk7/jdk/test/java/util/ArrayList/
H A DIteratorMicroBenchmark.java150 private static void deoptimize(int sum) { argument
151 if (sum == 42)
197 private int sum;
198 public void sum(int sum) {
199 if (this.sum == 0)
200 this.sum = sum;
201 if (this.sum != sum)
[all...]
/openjdk7/hotspot/src/share/vm/gc_implementation/g1/
H A DsurvRateGroup.cpp222 double sum = 0.0; local
226 sum += _summary_surv_rates[index]->avg() * 100.0;
232 (index-1) / 10 * 10, index-1, sum / (double) num,
234 sum = 0.0;
H A Dg1GCPhaseTimes.cpp85 // No need for min, max, average and sum for only one worker
95 T sum = 0; local
103 sum += val;
114 double avg = (double)sum / (double)_length;
124 // for things like the start and end times the sum is not
127 buf.append(_print_format, sum);
257 if (_last_satb_filtering_times_ms.sum() > 0.0) {
273 if (_last_satb_filtering_times_ms.sum() > 0.0) {
/openjdk7/hotspot/src/share/vm/interpreter/
H A DbytecodeHistogram.cpp95 int sum = 0; local
97 while (i-- > 0) sum += profile->at(i)->count();
98 return sum;
/openjdk7/hotspot/src/share/vm/opto/
H A Dregmask.cpp396 uint sum = 0; local
398 sum +=
403 return sum;
/openjdk7/hotspot/src/share/vm/adlc/
H A Darena.cpp81 size_t sum = _chunk->_len - (_max-_hwm); // Size leftover in this Chunk local
84 sum += k->_len; // Total size of this Chunk
87 return sum; // Return total consumed space.
H A Ddict2.cpp277 // multipliers (and allowable characters) are all odd, so the resultant sum
287 register int sum = 0; local
292 sum += c + (c<<shft[k++]); // Universal hash function
295 return (int)((sum+xsum[k]) >> 1); // Hash key, un-modulo'd table size
/openjdk7/jdk/src/share/bin/
H A Dversion_comp.c62 jlong sum = 0; local
67 sum = (sum * 10) + digit;
68 if (sum > 2147483647)
72 *value = (jint)sum;
/openjdk7/jdk/src/share/native/java/util/zip/zlib-1.2.3/
H A Dzcrc32.c370 unsigned long sum; local
372 sum = 0;
375 sum ^= *mat;
379 return sum;
/openjdk7/jdk/src/share/classes/javax/swing/
H A DSpring.java48 * See the {@link #sum} method for details.
144 * @see #sum
561 * in series. In a sum, <code>s3</code>, of two springs, <code>s1</code> and <code>s2</code>,
576 * When <code>setValue</code> is called on the sum spring, <code>s3</code>, the strain
578 * the sum is known, the <em>value</em>s of <code>s1</code> and <code>s2</code> are
579 * then set so that they are have a strain equal to that of the sum. The formulas are
580 * evaluated so as to take rounding errors into account and ensure that the sum of
588 public static Spring sum(Spring s1, Spring s2) { method in class:Spring
608 return sum(s1, minus(s2));
/openjdk7/hotspot/src/share/vm/code/
H A DcompressedStream.cpp151 jint sum = b0; local
156 sum += b_i << lg_H_i; // sum += b[i]*(64**i)
159 return sum;
167 juint sum = value; local
169 if (sum < L || i == MAX_i) {
171 assert(sum == (u_char)sum, "valid byte");
172 write((u_char)sum);
175 sum
[all...]
/openjdk7/hotspot/src/share/vm/libadt/
H A Ddict.cpp311 // multipliers (and allowable characters) are all odd, so the resultant sum
321 register int32 sum = 0; local
326 sum += c + (c<<shft[k++]); // Universal hash function
328 return (int)((sum+xsum[k]) >> 1); // Hash key, un-modulo'd table size
H A Dvectset.cpp330 uint sum = 0; // Cumulative size so far. local
333 sum += bitsInByte[*currByte++]; // Add bits in current byte to size.
334 return sum;
/openjdk7/jdk/src/share/native/java/net/
H A Dnet_util.c280 int sum = 0; local
284 sum += *w++;
290 sum += answer;
293 sum = (sum >> 16) + (sum & 0xffff);
294 sum += (sum >> 16);
295 answer = ~sum;

Completed in 1537 milliseconds

123