/libcore/ojluni/src/main/java/java/math/ |
D | SignedMutableBigInteger.java | 52 int sign = 1; field in SignedMutableBigInteger 86 if (sign == addend.sign) in signedAdd() 89 sign = sign * subtract(addend); in signedAdd() 97 if (sign == 1) in signedAdd() 100 sign = sign * subtract(addend); in signedAdd() 108 if (sign == addend.sign) in signedSubtract() 109 sign = sign * subtract(addend); in signedSubtract() 119 if (sign == 1) in signedSubtract() 120 sign = sign * subtract(addend); in signedSubtract() 124 sign = 1; in signedSubtract() [all …]
|
D | MutableBigInteger.java | 188 BigInteger toBigInteger(int sign) { in toBigInteger() argument 189 if (intLen == 0 || sign == 0) in toBigInteger() 191 return new BigInteger(getMagnitudeArray(), sign); in toBigInteger() 206 BigDecimal toBigDecimal(int sign, int scale) { in toBigDecimal() argument 207 if (intLen == 0 || sign == 0) in toBigDecimal() 215 return new BigDecimal(new BigInteger(mag, sign), INFLATED, scale, 0); in toBigDecimal() 219 return BigDecimal.valueOf(sign == -1 ? -v : v, scale); in toBigDecimal() 227 long toCompactValue(int sign) { in toCompactValue() argument 228 if (intLen == 0 || sign == 0) in toCompactValue() 240 return sign == -1 ? -v : v; in toCompactValue() [all …]
|
/libcore/ojluni/src/main/java/sun/misc/ |
D | FpUtils.java | 170 public static double rawCopySign(double magnitude, double sign) { in rawCopySign() argument 171 return Math.copySign(magnitude, sign); in rawCopySign() 191 public static float rawCopySign(float magnitude, float sign) { in rawCopySign() argument 192 return Math.copySign(magnitude, sign); in rawCopySign() 806 public static double copySign(double magnitude, double sign) { in copySign() argument 807 return StrictMath.copySign(magnitude, sign); in copySign() 824 public static float copySign(float magnitude, float sign) { in copySign() argument 825 return StrictMath.copySign(magnitude, sign); in copySign()
|
/libcore/luni/src/test/java/libcore/javax/xml/datatype/ |
D | DurationImpl.java | 34 private final int sign; field in DurationImpl 40 sign = 1; in DurationImpl() 42 sign = 0; in DurationImpl() 45 sign = -1; in DurationImpl() 67 sign = sgn; in DurationImpl() 79 return sign; in getSign()
|
/libcore/ojluni/src/main/java/java/lang/ |
D | StrictMath.java | 495 double sign) { in floorOrCeil() argument 523 if (sign*a > 0.0) in floorOrCeil() 524 result = result + sign; in floorOrCeil() 559 double sign = Math.copySign(1.0, a); // preserve sign info in rint() local 566 return sign * a; // restore original sign in rint() 2349 public static double copySign(double magnitude, double sign) { in copySign() argument 2350 return Math.copySign(magnitude, (Double.isNaN(sign)?1.0d:sign)); in copySign() 2365 public static float copySign(float magnitude, float sign) { in copySign() argument 2366 return Math.copySign(magnitude, (Float.isNaN(sign)?1.0f:sign)); in copySign()
|
/libcore/ojluni/annotations/hiddenapi/sun/misc/ |
D | FpUtils.java | 47 public static double rawCopySign(double magnitude, double sign) { in rawCopySign() argument 52 public static float rawCopySign(float magnitude, float sign) { in rawCopySign() argument 139 public static double copySign(double magnitude, double sign) { in copySign() argument 144 public static float copySign(float magnitude, float sign) { in copySign() argument
|
/libcore/ojluni/src/test/java/lang/Math/ |
D | RoundTests.java | 113 for (float sign : new float[]{-1, 1}) { in testUnityULPCases() 116 float value = (v1 + k) * sign; in testUnityULPCases() 123 for (double sign : new double[]{-1, 1}) { in testUnityULPCases() 126 double value = (v1 + k) * sign; in testUnityULPCases()
|
/libcore/ojluni/src/main/java/java/security/ |
D | SignedObject.java | 161 this.sign(signingKey, signingEngine); in SignedObject() 238 private void sign(PrivateKey signingKey, Signature signingEngine) in sign() method in SignedObject 243 this.signature = signingEngine.sign().clone(); in sign()
|
/libcore/ojluni/src/main/java/java/util/ |
D | TimeZone.java | 445 char sign = '+'; in createGmtOffsetString() local 447 sign = '-'; in createGmtOffsetString() 454 builder.append(sign); in createGmtOffsetString() 651 char sign = id.charAt(3); in getCustomTimeZone() local 653 if (sign == '-') { in getCustomTimeZone() 657 String cleanId = String.format(Locale.ROOT, "GMT%c%02d:%02d", sign, hour, minute); in getCustomTimeZone()
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
D | SignatureTest.java | 214 s.sign(); in testSign() 222 s.sign(); in testSign() 228 s.sign(); in testSign() 240 s.sign(outbuf, 0, outbuf.length); in testSignbyteintint() 248 s.sign(outbuf, 0, outbuf.length); in testSignbyteintint() 254 assertEquals(s.getBufferLength(), s.sign(outbuf, 0, outbuf.length)); in testSignbyteintint() 260 s.sign(outbuf, outbuf.length, 0); in testSignbyteintint() 268 s.sign(outbuf, outbuf.length, 3); in testSignbyteintint()
|
D | Signature2Test.java | 340 sig.sign(); in test_sign() 445 byte[] signature = sig.sign(); in test_verify$B() 459 byte[] signature = sig.sign(); in test_verify$BII()
|
/libcore/ojluni/src/test/java/lang/StrictMath/ |
D | FdlibmTranslit.java | 95 int sign; // unsigned in compute() local 98 sign = hx & 0x80000000; // sign= sign(x) in compute() 99 hx ^= sign; in compute() 134 t = __HI(t, __HI(t) | sign); in compute()
|
/libcore/ojluni/src/main/java/sun/util/calendar/ |
D | CalendarDate.java | 464 char sign; in toString() local 467 sign = '+'; in toString() 470 sign = '-'; in toString() 473 sb.append(sign); in toString()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/ |
D | BigIntegerConvertTest.java | 572 int sign = 1; in testIntValuePositive3() local 574 int aNumber = new BigInteger(sign, aBytes).intValue(); in testIntValuePositive3() 584 int sign = -1; in testIntValueNegative1() local 586 int aNumber = new BigInteger(sign, aBytes).intValue(); in testIntValueNegative1() 607 int sign = -1; in testIntValueNegative3() local 609 int aNumber = new BigInteger(sign, aBytes).intValue(); in testIntValueNegative3()
|
D | BigDecimalTest.java | 730 BigDecimal sign = new BigDecimal(123E-104); in test_signum() local 731 assertTrue("123E-104 is not positive in signum()", sign.signum() == 1); in test_signum() 732 sign = new BigDecimal("-1234.3959"); in test_signum() 734 sign.signum() == -1); in test_signum() 735 sign = new BigDecimal(000D); in test_signum() 736 assertTrue("000D is not zero in signum()", sign.signum() == 0); in test_signum()
|
/libcore/ojluni/src/main/java/java/time/ |
D | LocalDate.java | 1768 int sign = months > 0 || days > 0 ? 1 : -1; in datesUntil() local 1769 if (sign < 0 ^ until < 0) { in datesUntil() 1770 throw new IllegalArgumentException(endExclusive + (sign < 0 ? " > " : " < ") + this); in datesUntil() 1773 long steps = (until - sign) / days; // non-negative in datesUntil() 1784 if (addMonths * sign > maxAddMonths in datesUntil() 1785 || (plusMonths(addMonths).toEpochDay() + addDays) * sign >= end * sign) { in datesUntil() 1789 if (addMonths * sign > maxAddMonths in datesUntil() 1790 || (plusMonths(addMonths).toEpochDay() + addDays) * sign >= end * sign) { in datesUntil()
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | SignatureBenchmark.java | 86 this.signature = signer.sign(); in setUp() 106 signer.sign(); in timeSign()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | StrictMathTest.java | 199 final double sign = COPYSIGN_DD_CASES[j]; in test_copySign_DD() local 201 .copySign(magnitude, sign)); in test_copySign_DD() 203 if (sign > 0 || Double.valueOf(+0.0).equals(sign) in test_copySign_DD() 204 || Double.valueOf(0.0).equals(sign)) { in test_copySign_DD() 209 if (sign < 0 || Double.valueOf(-0.0).equals(sign)) { in test_copySign_DD() 264 final float sign = COPYSIGN_FF_CASES[j]; in test_copySign_FF() local 266 .copySign(magnitude, sign)); in test_copySign_FF() 267 if (sign > 0 || Float.valueOf(+0.0f).equals(sign) in test_copySign_FF() 268 || Float.valueOf(0.0f).equals(sign)) { in test_copySign_FF() 273 if (sign < 0 || Float.valueOf(-0.0f).equals(sign)) { in test_copySign_FF()
|
D | MathTest.java | 183 final double sign = COPYSIGN_DD_CASES[j]; in test_copySign_DD() local 185 magnitude, sign)); in test_copySign_DD() 187 if (sign > 0 || Double.valueOf(+0.0).equals(sign) in test_copySign_DD() 188 || Double.valueOf(0.0).equals(sign)) { in test_copySign_DD() 193 if (sign < 0 || Double.valueOf(-0.0).equals(sign)) { in test_copySign_DD() 255 final float sign = COPYSIGN_FF_CASES[j]; in test_copySign_FF() local 257 magnitude, sign)); in test_copySign_FF() 258 if (sign > 0 || Float.valueOf(+0.0f).equals(sign) in test_copySign_FF() 259 || Float.valueOf(0.0f).equals(sign)) { in test_copySign_FF() 264 if (sign < 0 || Float.valueOf(-0.0f).equals(sign)) { in test_copySign_FF()
|
/libcore/ojluni/src/main/java/java/text/ |
D | SimpleDateFormat.java | 2197 private int subParseNumericZone(String text, int start, int sign, int count, in subParseNumericZone() argument 2267 calb.set(Calendar.ZONE_OFFSET, minutes * MILLIS_PER_MINUTE * sign) in subParseNumericZone() 2589 int sign = 0; in subParse() local 2593 sign = 1; in subParse() 2595 sign = -1; in subParse() 2597 if (sign == 0) { in subParse() 2607 sign = 1; in subParse() 2609 sign = -1; in subParse() 2613 if (sign == 0) { /* "GMT" without offset */ in subParse() 2626 int i = subParseNumericZone(text, ++pos.index, sign, 0, in subParse() [all …]
|
/libcore/ojluni/annotations/mmodule/java/security/ |
D | Signature.annotated.java | 57 public final byte[] sign() throws java.security.SignatureException { throw new RuntimeException("St… in sign() method in Signature 59 public final int sign(byte[] outbuf, int offset, int len) throws java.security.SignatureException {… in sign() method in Signature
|
/libcore/luni/src/test/java/libcore/java/security/ |
D | SignatureTest.java | 271 s.sign(null /* outbuf */, 1 /* offset */, 1 /* length */); in testSignature_signArray_nullArray_throws() 280 s.sign(new byte[4], -1 /* offset */, 1 /* length */); in testSignature_signArray_negativeOffset_throws() 289 s.sign(new byte[4], 1 /* offset */ , -1 /* length */); in testSignature_signArray_negativeLength_throws() 299 s.sign(new byte[4], 3 /* offset */ , 2 /* length */); in testSignature_signArray_invalidLengths_throws()
|
/libcore/ojluni/annotations/flagged_api/java/lang/ |
D | StrictMath.annotated.java | 225 public static double copySign(double magnitude, double sign) { throw new RuntimeException("Stub!");… in copySign() argument 227 public static float copySign(float magnitude, float sign) { throw new RuntimeException("Stub!"); } in copySign() argument
|
D | Math.annotated.java | 226 public static double copySign(double magnitude, double sign) { throw new RuntimeException("Stub!");… in copySign() argument 228 public static float copySign(float magnitude, float sign) { throw new RuntimeException("Stub!"); } in copySign() argument
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | TimeZoneTest.java | 356 char sign = '+'; in formatGmtString() local 358 sign = '-'; in formatGmtString() 361 return String.format("GMT%c%02d:%02d", sign, offset / 60, offset % 60); in formatGmtString()
|