Searched refs:signum (Results 1 - 25 of 42) sorted by relevance

12

/openjdk7/jdk/test/java/lang/Integer/
H A DBitTwiddle.java114 if (signum(0) != 0 || signum(1) != 1 || signum(-1) != -1
115 || signum(MIN_VALUE) != -1 || signum(MAX_VALUE) != 1)
121 if (signum(x) != sign)
/openjdk7/jdk/test/java/lang/Long/
H A DBitTwiddle.java114 if (signum(0) != 0 || signum(1) != 1 || signum(-1) != -1
115 || signum(MIN_VALUE) != -1 || signum(MAX_VALUE) != 1)
121 if (signum(x) != sign)
/openjdk7/jdk/src/share/classes/java/security/spec/
H A DECFieldFp.java53 if (p.signum() != 1) {
H A DECParameterSpec.java70 if (n.signum() != 1) {
H A DEllipticCurve.java58 } else if (c.signum() < 0) {
/openjdk7/jaxp/src/com/sun/org/apache/xerces/internal/jaxp/datatype/
H A DDurationImpl.java152 protected int signum; field in class:DurationImpl
198 return signum;
208 if ((years == null || years.signum() == 0)
209 && (months == null || months.signum() == 0)
210 && (days == null || days.signum() == 0)
211 && (hours == null || hours.signum() == 0)
212 && (minutes == null || minutes.signum() == 0)
213 && (seconds == null || seconds.signum() == 0)) {
261 this.signum = calcSignum(isPositive);
291 if (n != null && n.signum() <
1767 sanitize(BigInteger value, int signum) argument
1785 sanitize(BigDecimal value, int signum) argument
1878 public int signum() { method in class:DurationImpl
[all...]
H A DDurationYearMonthImpl.java147 signum = calcSignum((signum<0)?false:true);
H A DXMLGregorianCalendarImpl.java2051 int signum = duration.getSign();
2059 BigInteger dMonths = sanitize(duration.getField(DatatypeConstants.MONTHS), signum);
2073 BigInteger dYears = sanitize(duration.getField(DatatypeConstants.YEARS), signum);
2098 BigDecimal dSeconds = DurationImpl.sanitize((BigDecimal) duration.getField(DatatypeConstants.SECONDS), signum);
2129 BigInteger dMinutes = sanitize(duration.getField(DatatypeConstants.MINUTES), signum);
2145 BigInteger dHours = sanitize(duration.getField(DatatypeConstants.HOURS), signum);
2180 BigInteger dDays = sanitize(duration.getField(DatatypeConstants.DAYS), signum);
2330 * <th>{@link #getEonAndYear()}<code>.signum() < 0 ? GregorianCalendar.BC : GregorianCalendar.AD</code></th>
2409 result.set(Calendar.ERA, year.signum() == -1 ? GregorianCalendar.BC : GregorianCalendar.AD);
2548 result.set(Calendar.ERA, year.signum()
3076 sanitize(Number value, int signum) argument
[all...]
/openjdk7/jdk/src/share/classes/java/math/
H A DBigInteger.java101 * The signum of this BigInteger: -1 for negative, 0 for zero, or
103 * a signum of 0. This is necessary to ensures that there is exactly one
108 final int signum; field in class:BigInteger
194 signum = -1;
197 signum = (mag.length == 0 ? 0 : 1);
213 signum = -1;
216 signum = (mag.length == 0 ? 0 : 1);
222 * BigInteger. The sign is represented as an integer signum value: -1 for
226 * result in a BigInteger value of 0, whether signum is -1, 0 or 1.
228 * @param signum signu
236 BigInteger(int signum, byte[] magnitude) argument
257 BigInteger(int signum, int[] magnitude) argument
923 BigInteger(int[] magnitude, int signum) argument
932 BigInteger(byte[] magnitude, int signum) argument
1537 public int signum() { method in class:BigInteger
[all...]
H A DBigDecimal.java1115 return (fst.signum == snd.signum) ?
1146 boolean lhsIsZero = lhs.signum() == 0;
1147 boolean augendIsZero = augend.signum() == 0;
1248 small = BigDecimal.valueOf(small.signum(),
1439 qsign = (ldivisor < 0) ? -bdividend.signum : bdividend.signum;
1444 qsign = (bdividend.signum != bdivisor.signum) ? -1 : 1;
1584 if (divisor.signum()
2153 public int signum() { method in class:BigDecimal
2885 getValueString(int signum, String intString, int scale) argument
[all...]
/openjdk7/jdk/test/java/math/BigDecimal/
H A DToPlainStringTests.java84 if (bd.signum()!=0 && !(s=(bd.toPlainString())).equals("-"+testCase[1])) {
H A DDivideTests.java42 if (divisor.signum() == 0) { // x/0
43 if (dividend.signum() == 0) // 0/0
47 if (dividend.signum() == 0) // 0/y
/openjdk7/jdk/src/share/classes/com/sun/media/sound/
H A DModelStandardTransform.java85 s = Math.signum(value);
94 s = Math.signum(value);
/openjdk7/corba/src/share/classes/com/sun/tools/corba/se/idl/constExpr/
H A DPositive.java62 value (((BigInteger)op).multiply (BigInteger.valueOf (((BigInteger)op).signum ())));
H A DShiftRight.java70 if (bL.signum () == -1)
/openjdk7/jdk/src/share/classes/java/lang/
H A DMath.java997 * Returns the signum function of the argument; zero if the argument
1008 * @param d the floating-point value whose signum is to be returned
1009 * @return the signum function of the argument
1013 public static double signum(double d) { method in class:Math
1014 return sun.misc.FpUtils.signum(d);
1018 * Returns the signum function of the argument; zero if the argument
1029 * @param f the floating-point value whose signum is to be returned
1030 * @return the signum function of the argument
1034 public static float signum(float f) { method in class:Math
1035 return sun.misc.FpUtils.signum(
[all...]
H A DStrictMath.java989 * Returns the signum function of the argument; zero if the argument
1000 * @param d the floating-point value whose signum is to be returned
1001 * @return the signum function of the argument
1005 public static double signum(double d) { method in class:StrictMath
1006 return sun.misc.FpUtils.signum(d);
1010 * Returns the signum function of the argument; zero if the argument
1021 * @param f the floating-point value whose signum is to be returned
1022 * @return the signum function of the argument
1026 public static float signum(float f) { method in class:StrictMath
1027 return sun.misc.FpUtils.signum(
[all...]
/openjdk7/jdk/src/macosx/classes/sun/lwawt/macosx/
H A DCPlatformResponder.java117 int signum = (int) Math.signum(delta);
118 if (signum * delta < 1) {
119 wheelRotation = signum;
/openjdk7/jdk/src/share/classes/sun/security/rsa/
H A DRSAPrivateCrtKeyImpl.java76 if (key.getPublicExponent().signum() == 0) {
223 if (b.signum() < 0) {
/openjdk7/jdk/test/java/util/Objects/
H A DBasicObjectsTest.java153 if (Integer.signum(result) != Integer.signum(expected)) {
/openjdk7/jdk/test/tools/pack200/pack200-verifier/src/xmlkit/
H A DClassSyntax.java486 int signum = 1; // start with one for "this"
490 signum++;
493 --signum;
508 int num = (signum << 8) | 0;
/openjdk7/jdk/src/share/classes/sun/security/provider/
H A DDSA.java339 if (r.signum() < 0) {
342 if (s.signum() < 0) {
410 if (k.signum() > 0 && k.compareTo(q) < 0) {
428 if (k.signum() > 0 && k.compareTo(q) < 0) {
/openjdk7/langtools/src/share/classes/com/sun/mirror/util/
H A DSourceOrderDeclScanner.java123 return (int)( Long.signum((long)System.identityHashCode(d1) -
147 diff = Long.signum((long)p1.column() - (long)p2.column());
/openjdk7/jdk/test/java/math/BigInteger/
H A DBigIntegerTest.java171 if (x.signum() < 0) {
186 y = BigInteger.valueOf(x.signum()<0 ? -1 : 0);
188 if (x.signum()<0 ^ x.testBit(j))
201 if (x.signum() == 0) {
257 BigInteger z = (x.signum()<0 && y[1].signum()!=0
366 if (prod.signum() == -1)
/openjdk7/jdk/src/share/classes/sun/security/util/
H A DObjectIdentifier.java630 if (first.signum() == -1 ||
643 if (second.signum() == -1 ||
657 if (num.signum() == -1) {

Completed in 196 milliseconds

12