/libcore/luni/src/main/java/java/math/ |
D | BigInteger.java | 65 transient int sign; field in BigInteger 103 BigInteger(int sign, long value) { in BigInteger() argument 105 bigInt.putULongInt(value, (sign < 0)); in BigInteger() 117 BigInteger(int sign, int numberLength, int[] digits) { in BigInteger() argument 118 setJavaRepresentation(sign, numberLength, digits); in BigInteger() 136 int sign = 1; in BigInteger() local 144 setJavaRepresentation(sign, numberLength, digits); in BigInteger() 324 bigInt.putLittleEndianInts(digits, (sign < 0)); in getBigInt() 335 private void setJavaRepresentation(int sign, int numberLength, int[] digits) { in setJavaRepresentation() argument 342 sign = 0; in setJavaRepresentation() [all …]
|
D | BitLevel.java | 43 if (val.sign == 0) { in bitLength() 49 if (val.sign < 0) { in bitLength() 66 if (val.sign == 0) { in bitCount() 71 if (val.sign > 0) { in bitCount() 132 return new BigInteger(source.sign, resLen, resDigits); in shiftLeftOneBit() 141 return ((source.sign < 0) ? BigInteger.MINUS_ONE : BigInteger.ZERO); in shiftRight() 148 if (source.sign < 0) { in shiftRight() 166 return new BigInteger(source.sign, resLength, resDigits); in shiftRight() 215 int resSign = (val.sign == 0) ? 1 : val.sign; in flipBit() 225 if (val.sign < 0) { in flipBit()
|
D | Conversion.java | 55 int sign = val.sign; in bigInteger2String() local 59 if (sign == 0) { in bigInteger2String() 65 if (sign < 0) { in bigInteger2String() 76 int resLengthInChars = (int) (val.abs().bitLength() / bitsForRadixDigit + ((sign < 0) ? 1 in bigInteger2String() 124 if (sign == -1) { in bigInteger2String() 139 int sign = val.sign; in toDecimalScaledString() local 146 if (sign == 0) { in toDecimalScaledString() 238 boolean negNumber = (sign < 0); in toDecimalScaledString() 427 return ((val.sign > 0) ? Double.POSITIVE_INFINITY in bigInteger2Double() 442 return ((val.sign > 0) ? Double.POSITIVE_INFINITY in bigInteger2Double() [all …]
|
D | Logical.java | 40 if (val.sign == 0) { in not() 49 if (val.sign > 0) { in not() 61 return new BigInteger(-val.sign, i + 1, resDigits); in not() 73 resDigits[i] = val.digits[i] + val.sign; in not() 78 return new BigInteger(-val.sign, i, resDigits); in not() 83 if (that.sign == 0 || val.sign == 0) { in and() 93 if (val.sign > 0) { in and() 94 if (that.sign > 0) { in and() 100 if (that.sign > 0) { in and() 219 if (that.sign == 0 ) { in andNot() [all …]
|
D | NativeBN.java | 67 public static native int sign(long a); in sign() method in NativeBN
|
D | BigDecimal.java | 1092 int sign = scaledDividend.signum() * scaledDivisor.signum(); in divideBigIntegers() local 1100 sign * (5 + compRem), roundingMode); in divideBigIntegers() 1106 sign * (5 + compRem), roundingMode); in divideBigIntegers() 1122 int sign = Long.signum( scaledDividend ) * Long.signum( scaledDivisor ); in dividePrimitiveLongs() local 1128 sign * (5 + compRem), in dividePrimitiveLongs() 2536 int sign = signum(); in doubleValue() local 2545 if ((powerOfTwo < -1074) || (sign == 0)) { in doubleValue() 2547 return (sign * 0.0d); in doubleValue() 2550 return (sign * Double.POSITIVE_INFINITY); in doubleValue() 2610 return (sign * Double.POSITIVE_INFINITY); in doubleValue() [all …]
|
/libcore/ojluni/src/main/java/java/lang/ |
D | StrictMath.java | 373 double sign) { in floorOrCeil() argument 401 if (sign*a > 0.0) in floorOrCeil() 402 result = result + sign; in floorOrCeil() 450 double sign = Math.copySign(1.0, a); // preserve sign info in rint() local 457 return sign * a; // restore original sign in rint() 1387 public static double copySign(double magnitude, double sign) { in copySign() argument 1388 return Math.copySign(magnitude, (Double.isNaN(sign)?1.0d:sign)); in copySign() 1403 public static float copySign(float magnitude, float sign) { in copySign() argument 1404 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 | Math.java | 1781 public static double copySign(double magnitude, double sign) { in copySign() argument 1782 return Double.longBitsToDouble((Double.doubleToRawLongBits(sign) & in copySign() 1804 public static float copySign(float magnitude, float sign) { in copySign() argument 1805 return Float.intBitsToFloat((Float.floatToRawIntBits(sign) & in copySign()
|
D | Integer.java | 470 char sign = 0; 473 sign = '-'; 496 if (sign != 0) { 497 buf [--charPos] = sign;
|
/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 | 440 char sign = '+'; in createGmtOffsetString() local 442 sign = '-'; in createGmtOffsetString() 449 builder.append(sign); in createGmtOffsetString() 648 char sign = id.charAt(3); in getCustomTimeZone() local 650 if (sign == '-') { in getCustomTimeZone() 654 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()
|
/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/ojluni/annotations/mmodule/java/lang/ |
D | Math.annotated.java | 162 public static double copySign(double magnitude, double sign) { throw new RuntimeException("Stub!");… in copySign() argument 164 public static float copySign(float magnitude, float sign) { throw new RuntimeException("Stub!"); } in copySign() argument
|
/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/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/luni/src/test/java/libcore/java/security/ |
D | SignatureTest.java | 281 s.sign(null /* outbuf */, 1 /* offset */, 1 /* length */); in testSignature_signArray_nullArray_throws() 290 s.sign(new byte[4], -1 /* offset */, 1 /* length */); in testSignature_signArray_negativeOffset_throws() 299 s.sign(new byte[4], 1 /* offset */ , -1 /* length */); in testSignature_signArray_negativeLength_throws() 309 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 | 341 char sign = '+'; in formatGmtString() local 343 sign = '-'; in formatGmtString() 346 return String.format("GMT%c%02d:%02d", sign, offset / 60, offset % 60); in formatGmtString()
|