Searched defs:sign (Results 1 - 25 of 42) sorted by relevance

12

/openjdk7/jdk/src/share/classes/java/math/
H A DSignedMutableBigInteger.java50 * The sign of this MutableBigInteger.
52 int sign = 1; field in class:SignedMutableBigInteger
86 if (sign == addend.sign)
89 sign = sign * subtract(addend);
97 if (sign == 1)
100 sign = sign * subtract(addend);
108 if (sign
[all...]
H A DMutableBigInteger.java151 BigInteger toBigInteger(int sign) { argument
152 if (intLen == 0 || sign == 0)
154 return new BigInteger(getMagnitudeArray(), sign);
158 * Convert this MutableBigInteger to BigDecimal object with the specified sign
161 BigDecimal toBigDecimal(int sign, int scale) { argument
162 if (intLen == 0 || sign == 0)
170 return new BigDecimal(new BigInteger(mag, sign), INFLATED, scale, 0);
174 return new BigDecimal(null, sign == -1 ? -v : v, scale, 0);
646 int sign = a.compare(b);
648 if (sign
[all...]
/openjdk7/jdk/test/sun/security/tools/jarsigner/
H A DTimestampCheck.java71 byte[] output = sign(input, path);
86 * @param input The data to sign
99 byte[] sign(byte[] input, int path) throws Exception { method in class:TimestampCheck.Handler
208 aid, AlgorithmId.get("DSA"), sig.sign());
/openjdk7/jdk/src/share/native/java/lang/fdlibm/src/
H A Ds_cbrt.c60 unsigned sign; local
64 sign=hx&0x80000000; /* sign= sign(x) */
65 hx ^=sign;
96 /* retore the sign bit */
97 __HI(t) |= sign;
H A De_sqrt.c112 int sign = (int)0x80000000; local
126 if(((ix0&(~sign))|ix1)==0) return x;/* sqrt(+-0) = +-0 */
145 ix0 += ix0 + ((ix1&sign)>>31);
151 ix0 += ix0 + ((ix1&sign)>>31);
163 ix0 += ix0 + ((ix1&sign)>>31);
168 r = sign;
174 if(((t1&sign)==sign)&&(s1&sign)==0) s0 += 1;
180 ix0 += ix0 + ((ix1&sign)>>3
[all...]
H A De_jn.c92 sgn = (n&1)&(hx>>31); /* even n -- 0, odd n -- sign(x) */
235 int sign; local
245 sign = 1;
248 sign = 1 - ((n&1)<<1);
251 if(n==1) return(sign*__ieee754_y1(x));
284 if(sign>0) return b; else return -b;
/openjdk7/jdk/test/javax/management/Introspector/
H A DGetMBeanInfoExceptionTest.java74 public Object invoke(String op, Object params[], String sign[]) throws argument
H A DUnregisterMBeanExceptionTest.java74 public Object invoke(String op, Object params[], String sign[]) throws argument
/openjdk7/jdk/test/javax/xml/jaxp/PrecisionDecimalDV/
H A DXPrecisionDecimalToString.java54 private static String canonicalToStringForHashCode(String ivalue, String fvalue, int sign, int pvalue) { argument
65 return (String) method.invoke(null, new Object[] {ivalue, fvalue, sign, pvalue} );
68 ivalue+"\", \""+fvalue+"\", "+sign+", "+pvalue+"): " +x, x);
91 private static void test(String ival, String fval, int sign, int pvalue, String expected) { argument
92 final String canonical = canonicalToStringForHashCode(ival, fval, sign, pvalue);
93 System.out.println((sign == -1 ? "-" : "") + ival +
/openjdk7/jdk/src/share/classes/javax/xml/crypto/dsig/
H A DXMLSignature.java171 void sign(XMLSignContext signContext) throws MarshalException, method in interface:XMLSignature
/openjdk7/jdk/src/share/classes/java/security/
H A DSignedObject.java106 * can be used to sign and serialize data/object for storage outside
160 // now sign the encapsulated object
161 this.sign(signingKey, signingEngine);
238 private void sign(PrivateKey signingKey, Signature signingEngine) method in class:SignedObject
243 this.signature = signingEngine.sign().clone();
/openjdk7/jdk/test/sun/security/pkcs11/Secmod/
H A DAddPrivateKey.java103 sign(p, key, publicKey);
132 sign(p, key2, publicKey);
143 sign(p, key3, publicKey);
160 sign(p, key4, publicKey);
178 sign(p, key5, publicKey);
195 private static void sign(Provider p, PrivateKey privateKey, PublicKey publicKey) throws Exception { method in class:AddPrivateKey
210 byte[] sig = s.sign();
/openjdk7/jdk/src/share/classes/com/sun/media/sound/
H A DFFT.java36 private final int sign; field in class:FFT
44 public FFT(int fftFrameSize, int sign) { argument
45 w = computeTwiddleFactors(fftFrameSize, sign);
48 this.sign = sign;
68 calc(fftFrameSize, data, sign, w);
72 int sign) {
88 double wfi = sign * Math.sin(arg);
125 private final static void calc(int fftFrameSize, double[] data, int sign, argument
135 if (sign
71 computeTwiddleFactors(int fftFrameSize, int sign) argument
[all...]
/openjdk7/jdk/src/share/classes/org/jcp/xml/dsig/internal/dom/
H A DDOMHMACSignatureMethod.java152 byte[] sign(Key key, DOMSignedInfo si, XMLSignContext context) method in class:DOMHMACSignatureMethod
H A DDOMSignatureMethod.java266 byte[] sign(Key key, DOMSignedInfo si, XMLSignContext context) method in class:DOMSignatureMethod
296 return convertASN1toXMLDSIG(signature.sign());
298 return signature.sign();
H A DDOMXMLSignature.java318 public void sign(XMLSignContext signContext) method in class:DOMXMLSignature
397 val = ((DOMSignatureMethod) si.getSignatureMethod()).sign
/openjdk7/jdk/src/share/classes/com/sun/org/apache/xml/internal/security/algorithms/
H A DSignatureAlgorithm.java169 * Proxy method for {@link java.security.Signature#sign()}
172 * @return the result of the {@link java.security.Signature#sign()} method
175 public byte[] sign() throws XMLSignatureException { method in class:SignatureAlgorithm
/openjdk7/jdk/src/share/classes/sun/misc/
H A DFpUtils.java50 * to to least significant, sign, exponent, and significand.
53 * [sign|exponent| fractional_significand]
62 * (-1)^sign * 2^(exponent)*(1.fractional_significand)
82 * The 32-bit float format has 1 sign bit, 8 exponent bits, and 23
85 * sign bit, 11 exponent bits, and 52 bits for the significand
91 * (-1)^sign * 2^(E_min)*(0.fractional_significand)
94 * zero bits in the significand; zero can have either sign.
185 * Returns the first floating-point argument with the sign of the
188 * does not require NaN {@code sign} arguments to be treated
194 * @param sign th
199 rawCopySign(double magnitude, double sign) argument
222 rawCopySign(float magnitude, float sign) argument
1051 copySign(double magnitude, double sign) argument
1067 copySign(float magnitude, float sign) argument
[all...]
/openjdk7/jdk/test/sun/security/pkcs11/ec/
H A DTestECDSA.java100 private static void sign(Provider provider, String alg, PrivateKey key, byte[] data) throws Exception { method in class:TestECDSA
104 byte[] sig = s.sign();
155 sign(provider, "SHA1withECDSA", privateKey, data1Raw);
156 // sign(provider, "NONEwithECDSA", privateKey, data1SHA);
175 // sign random data using SHA1withECDSA and verify using
181 byte[] s1 = s.sign();
198 // sign random data using NONEwithECDSA and verify using
202 byte[] s2 = s.sign();
225 s.sign();
230 System.out.println("sign/verif
[all...]
/openjdk7/jaxp/src/com/sun/org/apache/xerces/internal/impl/dv/xs/
H A DDecimalDV.java73 // sign: 0 for vlaue 0; 1 for positive values; -1 for negative values
74 int sign = 1; field in class:DecimalDV.XDecimal
77 // integer digits when sign != 0
79 // fraction digits when sign != 0
106 // Deal with leading sign symbol if present
114 sign = -1;
169 sign = 0;
181 // Deal with leading sign symbol if present
189 sign = -1;
220 sign
[all...]
H A DPrecisionDecimalDV.java37 // sign: 0 for absent; 1 for positive values; -1 for negative values (except in case of INF, -INF)
38 int sign = 1; field in class:PrecisionDecimalDV.XPrecisionDecimal
41 // integer digits when sign != 0
43 // fraction digits when sign != 0
58 sign = 0;
76 // Deal with leading sign symbol if present
83 sign = -1;
153 private static String canonicalToStringForHashCode(String ivalue, String fvalue, int sign, int pvalue) { argument
158 return sign < 0 ? "-INF" : "INF";
175 builder.append(sign
[all...]
/openjdk7/jdk/src/share/classes/java/lang/
H A DMath.java112 * same sign as the argument.</ul>
144 * same sign as the argument.</ul>
162 * same sign as the argument.</ul>
195 * same sign as the argument.</ul>
342 * with the same sign as the argument.
345 * same sign as the argument.
368 * zero, its sign is the same as the sign of the first argument.
691 * Returns a {@code double} value with a positive sign, greater
1050 * with the same sign a
1254 copySign(double magnitude, double sign) argument
1273 copySign(float magnitude, float sign) argument
[all...]
H A DStrictMath.java90 * same sign as the argument.</ul>
112 * same sign as the argument.</ul>
125 * same sign as the argument.</ul>
148 * same sign as the argument.</ul>
265 * with the same sign as the argument.
268 * same sign as the argument.
287 * zero, its sign is the same as the sign of the first argument.
354 double sign) {
382 if (sign*
351 floorOrCeil(double a, double negativeBoundary, double positiveBoundary, double sign) argument
1204 copySign(double magnitude, double sign) argument
1220 copySign(float magnitude, float sign) argument
[all...]
/openjdk7/jdk/src/share/native/sun/awt/splashscreen/
H A Dsplashscreen_impl.c224 int sign; member in struct:FILEFORMAT
252 if (c == formats[i].sign) {
/openjdk7/jdk/test/sun/security/pkcs11/KeyStore/
H A DBasic.java205 // sign
208 // setAttribute, pkey, sign
211 testnum = Basic.sign(testnum);
216 testnum = Basic.sign(testnum);
220 // setAttribute, pkey, sign, skey, copy
223 testnum = Basic.sign(testnum);
236 } else if ("sign".equals(test)) {
237 Basic.sign(1);
247 testnum = Basic.sign(testnum);
254 private static int sign(in method in class:Basic
[all...]

Completed in 138 milliseconds

12