/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 | 183 BigInteger toBigInteger(int sign) { in toBigInteger() argument 184 if (intLen == 0 || sign == 0) in toBigInteger() 186 return new BigInteger(getMagnitudeArray(), sign); in toBigInteger() 201 BigDecimal toBigDecimal(int sign, int scale) { in toBigDecimal() argument 202 if (intLen == 0 || sign == 0) in toBigDecimal() 210 return new BigDecimal(new BigInteger(mag, sign), INFLATED, scale, 0); in toBigDecimal() 214 return BigDecimal.valueOf(sign == -1 ? -v : v, scale); in toBigDecimal() 222 long toCompactValue(int sign) { in toCompactValue() argument 223 if (intLen == 0 || sign == 0) in toCompactValue() 235 return sign == -1 ? -v : v; in toCompactValue() [all …]
|
D | BigDecimal.java | 902 int sign = ((valBits >> 63) == 0 ? 1 : -1); in BigDecimal() local 929 long compactVal = sign * significand; in BigDecimal() 4830 … BigDecimal divideAndRound128(final long dividendHi, final long dividendLo, long divisor, int sign, 4895 return mq.toBigDecimal(sign, scale); 4899 if(needIncrement(divisor >>> shift, roundingMode, sign, mq, r)){ 4902 return mq.toBigDecimal(sign, scale); 4905 BigInteger intVal = mq.toBigInteger(sign); 4908 return mq.toBigDecimal(sign, scale); 4914 q*=sign; 4921 boolean increment = needIncrement(divisor >>> shift, roundingMode, sign, q, r); [all …]
|
D | BigInteger.java | 427 int sign = 1; in BigInteger() local 434 sign = -1; in BigInteger() 458 signum = sign; in BigInteger() 499 BigInteger(char[] val, int sign, int len) { in BigInteger() argument 513 signum = sign; in BigInteger() 1618 @NonNull private static BigInteger multiplyByInt(int[] x, int y, int sign) { in multiplyByInt() argument 1620 return new BigInteger(shiftLeft(x,Integer.numberOfTrailingZeros(y)), sign); in multiplyByInt() 1637 return new BigInteger(rmag, sign); in multiplyByInt() 4625 int sign = fields.get("signum", -2); 4629 if (sign < -1 || sign > 1) { [all …]
|
/libcore/ojluni/src/main/java/java/lang/ |
D | StrictMath.java | 387 double sign) { in floorOrCeil() argument 415 if (sign*a > 0.0) in floorOrCeil() 416 result = result + sign; in floorOrCeil() 464 double sign = Math.copySign(1.0, a); // preserve sign info in rint() local 471 return sign * a; // restore original sign in rint() 1496 public static double copySign(double magnitude, double sign) { in copySign() argument 1497 return Math.copySign(magnitude, (Double.isNaN(sign)?1.0d:sign)); in copySign() 1512 public static float copySign(float magnitude, float sign) { in copySign() argument 1513 return Math.copySign(magnitude, (Float.isNaN(sign)?1.0f:sign)); in copySign()
|
D | Long.java | 438 char sign = 0; in getChars() local 441 sign = '-'; in getChars() 476 if (sign != 0) { in getChars() 477 buf[--charPos] = sign; in getChars()
|
D | Integer.java | 470 char sign = 0; 473 sign = '-'; 496 if (sign != 0) { 497 buf [--charPos] = sign;
|
D | Math.java | 1923 public static double copySign(double magnitude, double sign) { in copySign() argument 1924 return Double.longBitsToDouble((Double.doubleToRawLongBits(sign) & in copySign() 1946 public static float copySign(float magnitude, float sign) { in copySign() argument 1947 return Float.intBitsToFloat((Float.floatToRawIntBits(sign) & in copySign()
|
/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/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/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 | 444 char sign = '+'; in createGmtOffsetString() local 446 sign = '-'; in createGmtOffsetString() 453 builder.append(sign); in createGmtOffsetString() 650 char sign = id.charAt(3); in getCustomTimeZone() local 652 if (sign == '-') { in getCustomTimeZone() 656 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/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/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/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/ojluni/src/main/java/java/text/ |
D | SimpleDateFormat.java | 2119 private int subParseNumericZone(String text, int start, int sign, int count, in subParseNumericZone() argument 2189 calb.set(Calendar.ZONE_OFFSET, minutes * MILLIS_PER_MINUTE * sign) in subParseNumericZone() 2495 int sign = 0; in subParse() local 2499 sign = 1; in subParse() 2501 sign = -1; in subParse() 2503 if (sign == 0) { in subParse() 2513 sign = 1; in subParse() 2515 sign = -1; in subParse() 2519 if (sign == 0) { /* "GMT" without offset */ in subParse() 2532 int i = subParseNumericZone(text, ++pos.index, sign, 0, in subParse() [all …]
|
/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/luni/src/test/java/libcore/java/util/ |
D | TimeZoneTest.java | 340 char sign = '+'; in formatGmtString() local 342 sign = '-'; in formatGmtString() 345 return String.format("GMT%c%02d:%02d", sign, offset / 60, offset % 60); in formatGmtString()
|
/libcore/ojluni/annotations/hiddenapi/java/security/ |
D | Signature.java | 99 public final byte[] sign() throws java.security.SignatureException { in sign() method in Signature 103 public final int sign(byte[] outbuf, int offset, int len) in sign() method in Signature
|