/openjdk7/jdk/test/java/io/PrintWriter/ |
H A D | OversynchronizedTest.java | 77 long t = Math.round(Math.random()*10);
|
/openjdk7/jdk/test/java/lang/Math/ |
H A D | RoundTests.java | 27 * @summary Check for correct implementation of {Math, StrictMath}.round 37 System.err.println("Testing {Math, StrictMath}.round incurred " 65 failures += Tests.test("Math.round", input, Math.round(input), expected); 93 failures += Tests.test("Math.round", input, Math.round(input), expected);
|
H A D | HyperbolicTests.java | 27 * @summary Tests for {Math, StrictMath}.{sinh, cosh, tanh} 40 * Test accuracy of {Math, StrictMath}.sinh. The specified 361 failures += Tests.testTolerance("Math.sinh(double)", 362 input, Math.sinh(input), 364 failures += Tests.testTolerance("Math.sinh(double)", 365 -input, Math.sinh(-input), 381 failures += Tests.testUlpDiff("Math.sinh(double)", 382 input, Math.sinh(input), 384 failures += Tests.testUlpDiff("Math.sinh(double)", 385 -input, Math [all...] |
/openjdk7/jdk/src/share/classes/sun/security/ssl/ |
H A D | AppInputStream.java | 108 int howmany = Math.min(len, r.available()); 130 int len = (int)Math.min(n, SKIP_ARRAY.length);
|
H A D | AppOutputStream.java | 97 howmuch = Math.min(0x01, r.availableDataBytes()); 109 howmuch = Math.min(len, r.availableDataBytes());
|
H A D | ByteBufferInputStream.java | 98 int length = Math.min(bb.remaining(), len); 126 int skip = Math.min(bb.remaining(), nInt);
|
/openjdk7/jdk/src/share/classes/sun/text/normalizer/ |
H A D | UCharacterIterator.java | 277 int x = Math.max(0, Math.min(getIndex() + delta, getLength()));
|
/openjdk7/jdk/test/java/util/TimSort/ |
H A D | SortPerf.java | 32 return (int) (12000000 / (n * Math.log10(n))); 58 minTime = Math.min(minTime, time);
|
/openjdk7/jdk/test/javax/sound/midi/Gervill/ModelStandardTransform/ |
H A D | TransformAbsolute.java | 69 assertTrue(Math.abs(transform.transform(0.2f) - 0.2f) < 0.0001f); 70 assertTrue(Math.abs(transform.transform(-0.8f) - 0.8f) < 0.0001f);
|
/openjdk7/jdk/test/javax/sound/midi/Gervill/SoftLimiter/ |
H A D | ProcessAudio_replace_mix_mono.java | 60 testdata1[i] = (float)Math.sin(i*0.3)*0.9f; 77 if(Math.abs(out1a[i] - testdata1[i] - 1) > 0.00001)
|
H A D | ProcessAudio_replace_mix_mono_overdrive.java | 61 testdata1[i] = (float)Math.sin(i*0.3)*2.5f; 78 if(Math.abs(out1a[i]-1) > 1.0)
|
H A D | ProcessAudio_replace_normal_mono.java | 60 testdata1[i] = (float)Math.sin(i*0.3)*0.9f; 77 if(Math.abs(out1a[i] - testdata1[i]) > 0.00001)
|
H A D | ProcessAudio_replace_overdrive_mono.java | 60 testdata1[i] = (float)Math.sin(i*0.3)*2.5f; 77 if(Math.abs(out1a[i]) > 1.0)
|
/openjdk7/jdk/src/solaris/classes/sun/nio/fs/ |
H A D | UnixUriUtils.java | 162 int f = Math.max(Math.min(first, 63), 0); 163 int l = Math.max(Math.min(last, 63), 0); 173 int f = Math.max(Math.min(first, 127), 64) - 64; 174 int l = Math.max(Math.min(last, 127), 64) - 64;
|
/openjdk7/jdk/src/share/classes/javax/swing/plaf/nimbus/ |
H A D | InnerShadowEffect.java | 76 double trangleAngle = Math.toRadians(angle - 90); 77 int offsetX = (int) (Math.sin(trangleAngle) * distance); 78 int offsetY = (int) (Math.cos(trangleAngle) * distance); 106 float spread = Math.min(1 / (1 - (0.01f * this.spread)), 255); 124 int alphaVal = Math.min(origianlAlphaVal, shadowVal);
|
/openjdk7/jdk/src/share/classes/sun/awt/geom/ |
H A D | Order3.java | 246 xmin = Math.min(Math.min(x0, x1), Math.min(cx0, cx1)); 247 xmax = Math.max(Math.max(x0, x1), Math.max(cx0, cx1)); 355 double theta = Math.acos(R / Math.sqrt(Q3)); 356 Q = -2.0 * Math.sqrt(Q); 357 t = refine(a, b, c, y, Q * Math [all...] |
/openjdk7/jdk/test/javax/sound/midi/Gervill/SoftTuning/ |
H A D | RealTimeTuning.java | 170 assertTrue(Math.abs(targetPitch - targetNote * 100.0) > 0.001); 180 assertTrue(Math.abs(pitchspy.pitch - (targetNote * 100.0)) < 0.001); 187 assertTrue(Math.abs(pitchspy.pitch - targetPitch) < 0.001); 189 assertTrue(Math.abs(pitchspy.pitch - (targetNote * 100.0)) < 0.001); 194 assertTrue(Math.abs(pitchspy.pitch - 0.0) < 0.001); 198 assertTrue(Math.abs(pitchspy.pitch - targetPitch) < 0.001); 202 assertTrue(Math.abs(pitchspy.pitch - 0.0) < 0.001);
|
/openjdk7/jdk/src/share/classes/sun/font/ |
H A D | GlyphList.java | 332 metrics[0] = (int)Math.floor(positions[(i<<1)] + gposx + gx); 333 metrics[1] = (int)Math.floor(positions[(i<<1)+1] + gposy + gy); 335 metrics[0] = (int)Math.floor(gposx + gx); 336 metrics[1] = (int)Math.floor(gposy + gy); 358 graybits = new byte[Math.max(len, MINGRAYLENGTH)]; 495 bounds[0] = (int)Math.floor(bx0); 496 bounds[1] = (int)Math.floor(by0); 497 bounds[2] = (int)Math.floor(bx1); 498 bounds[3] = (int)Math.floor(by1);
|
/openjdk7/jdk/src/share/classes/java/awt/geom/ |
H A D | Point2D.java | 312 return Math.sqrt(x1 * x1 + y1 * y1); 364 return Math.sqrt(px * px + py * py); 380 return Math.sqrt(px * px + py * py);
|
H A D | QuadCurve2D.java | 246 float left = Math.min(Math.min(x1, x2), ctrlx); 247 float top = Math.min(Math.min(y1, y2), ctrly); 248 float right = Math.max(Math.max(x1, x2), ctrlx); 249 float bottom = Math.max(Math.max(y1, y2), ctrly); 435 double left = Math.min(Math [all...] |
/openjdk7/jdk/src/share/classes/java/io/ |
H A D | CharArrayWriter.java | 82 buf = Arrays.copyOf(buf, Math.max(buf.length << 1, newcount)); 105 buf = Arrays.copyOf(buf, Math.max(buf.length << 1, newcount)); 122 buf = Arrays.copyOf(buf, Math.max(buf.length << 1, newcount));
|
/openjdk7/jdk/src/windows/classes/sun/awt/windows/ |
H A D | WChoicePeer.java | 44 w = Math.max(fm.stringWidth(c.getItem(i)), w); 46 return new Dimension(28 + w, Math.max(fm.getHeight() + 6, 15)); 148 int maxItems = Math.min(c.getItemCount(), 8);
|
/openjdk7/jaxp/src/com/sun/org/apache/xpath/internal/functions/ |
H A D | FuncRound.java | 51 return new XNumber(java.lang.Math.floor(val
|
/openjdk7/hotspot/agent/src/share/classes/sun/jvm/hotspot/ui/ |
H A D | GraphicsUtilities.java | 129 int xPos = Math.min(d.width - sz.width, 131 int yPos = Math.min(d.height - sz.height, 133 xPos = Math.max(xPos, minX); 134 yPos = Math.max(yPos, minY);
|
/openjdk7/jdk/src/share/classes/javax/imageio/stream/ |
H A D | FileCacheImageOutputStream.java | 136 maxStreamPos = Math.max(maxStreamPos, streamPos); 143 maxStreamPos = Math.max(maxStreamPos, streamPos); 175 maxStreamPos = Math.max(maxStreamPos, streamPos); 253 int len = (int)Math.min(flushBytes, bufLen);
|