/libcore/luni/src/test/java/libcore/java/lang/ |
H A D | LongTest.java | 36 assertEquals(0, Long.signum(0)); 37 assertEquals(1, Long.signum(1)); 38 assertEquals(-1, Long.signum(-1)); 39 assertEquals(1, Long.signum(Long.MAX_VALUE)); 40 assertEquals(-1, Long.signum(Long.MIN_VALUE));
|
H A D | OldAndroidMathTest.java | 441 assertTrue(Double.isNaN(Math.signum(Double.NaN))); 442 assertTrue(Double.isNaN(Math.signum(Double.NaN))); 444 .signum(0.0))); 446 .doubleToLongBits(Math.signum(+0.0))); 448 .doubleToLongBits(Math.signum(-0.0))); 450 assertEquals(1.0, Math.signum(253681.2187962), 0D); 451 assertEquals(-1.0, Math.signum(-125874693.56), 0D); 452 assertEquals(1.0, Math.signum(1.2587E-308), 0D); 453 assertEquals(-1.0, Math.signum(-1.2587E-308), 0D); 455 assertEquals(1.0, Math.signum(Doubl [all...] |
H A D | OldAndroidStrictMathTest.java | 458 assertTrue(Double.isNaN(StrictMath.signum(Double.NaN))); 460 .doubleToLongBits(StrictMath.signum(0.0))); 462 .doubleToLongBits(StrictMath.signum(+0.0))); 464 .doubleToLongBits(StrictMath.signum(-0.0))); 466 assertEquals(1.0, StrictMath.signum(253681.2187962), 0D); 467 assertEquals(-1.0, StrictMath.signum(-125874693.56), 0D); 468 assertEquals(1.0, StrictMath.signum(1.2587E-308), 0D); 469 assertEquals(-1.0, StrictMath.signum(-1.2587E-308), 0D); 471 assertEquals(1.0, StrictMath.signum(Double.MAX_VALUE), 0D); 472 assertEquals(1.0, StrictMath.signum(Doubl [all...] |
/libcore/luni/src/main/java/java/security/spec/ |
H A D | ECFieldFp.java | 45 if (this.p.signum() != 1) {
|
H A D | EllipticCurve.java | 84 if (this.a.signum() < 0 || this.a.compareTo(p) >= 0) { 87 if (this.b.signum() < 0 || this.b.compareTo(p) >= 0) {
|
/libcore/luni/src/main/java/java/math/ |
H A D | BigInteger.java | 86 private int signum; field in class:BigInteger 227 * @param signum sign of the new {@code BigInteger} (-1 for negative, 0 for 235 public BigInteger(int signum, byte[] magnitude) { argument 239 if (signum < -1 || signum > 1) { 240 throw new NumberFormatException("Invalid signum: " + signum); 242 if (signum == 0) { 245 throw new NumberFormatException("signum-magnitude mismatch"); 250 bigInt.putBigEndian(magnitude, signum < 412 public int signum() { method in class:BigInteger [all...] |
H A D | BigDecimal.java | 852 largerSignum = larger.signum(); 853 if (largerSignum == smaller.signum()) { 944 thisSignum = this.signum(); 945 if (thisSignum != subtrahend.signum()) { 1113 if (remainder.signum() == 0) { 1116 int sign = scaledDividend.signum() * scaledDivisor.signum(); 1146 int sign = Long.signum( scaledDividend ) * Long.signum( scaledDivisor ); 1242 if (p.signum() 1795 public int signum() { method in class:BigDecimal [all...] |
/libcore/luni/src/main/java/org/apache/harmony/security/provider/crypto/ |
H A D | SHA1withDSA_SignatureImpl.java | 98 if (q.signum() != 1 && q.bitLength() != 160) { 101 if (x.signum() != 1 || x.compareTo(q) != -1) { 141 if (q.signum() != 1 || q.bitLength() != 160) { 144 if (y.signum() != 1) { 230 if (r.signum() == 0) { 237 if (s.signum() != 0) { 365 if (r.signum() != 1 || r.compareTo(q) != -1 || s.signum() != 1
|
/libcore/luni/src/test/java/tests/api/java/math/ |
H A D | BigIntegerTest.java | 526 * java.math.BigInteger#signum() 529 assertTrue("Wrong positive signum", two.signum() == 1); 530 assertTrue("Wrong zero signum", zero.signum() == 0); 531 assertTrue("Wrong neg zero signum", zero.negate().signum() == 0); 532 assertTrue("Wrong neg signum", two.negate().signum() == -1); 646 assertTrue("a non-neg", a.signum() > [all...] |
/libcore/luni/src/main/java/java/lang/ |
H A D | StrictMath.java | 698 * Returns the signum function of the argument. If the argument is less than 705 * <li>{@code signum(+0.0) = +0.0}</li> 706 * <li>{@code signum(-0.0) = -0.0}</li> 707 * <li>{@code signum(+infinity) = +1.0}</li> 708 * <li>{@code signum(-infinity) = -1.0}</li> 709 * <li>{@code signum(NaN) = NaN}</li> 713 * the value whose signum has to be computed. 714 * @return the value of the signum function. 716 public static double signum(double d){ method in class:StrictMath 717 return Math.signum( 739 public static float signum(float f){ method in class:StrictMath [all...] |
H A D | HexStringParser.java | 206 int expSign = Long.signum(exponent); 207 if (expSign * Long.signum(offset) > 0 && expSign * Long.signum(result) < 0) {
|
H A D | Math.java | 705 * Returns the signum function of the argument. If the argument is less than 712 * <li>{@code signum(+0.0) = +0.0}</li> 713 * <li>{@code signum(-0.0) = -0.0}</li> 714 * <li>{@code signum(+infinity) = +1.0}</li> 715 * <li>{@code signum(-infinity) = -1.0}</li> 716 * <li>{@code signum(NaN) = NaN}</li> 720 * the value whose signum has to be computed. 721 * @return the value of the signum function. 723 public static double signum(double d) { method in class:Math 737 * Returns the signum functio 755 public static float signum(float f) { method in class:Math [all...] |
H A D | Integer.java | 681 * Returns the value of the {@code signum} function for the specified 690 public static int signum(int i) { method in class:Integer
|
H A D | Long.java | 702 * Returns the value of the {@code signum} function for the specified long 711 public static int signum(long v) { method in class:Long
|