Searched defs:mod (Results 1 - 3 of 3) sorted by relevance

/dalvik/libcore/luni/src/main/java/java/util/
H A DGregorianCalendar.java1270 private int mod(int value, int mod) { argument
1271 int rem = value % mod;
1273 return rem + mod;
1329 int mod = mod7(fields[DAY_OF_WEEK] - fields[day]
1331 int maxWeeks = (days - 1 + mod) / 7 + 1;
1332 int newWeek = mod(fields[field] - 1 + value, maxWeeks) + 1;
1340 int week = (fields[day] - ((fields[day] - 1) / 7 * 7) - 1 + mod) / 7 + 1;
1372 set(field, mod(fields[field] + value, maximums[field] + 1));
1381 set(field, mod(field
[all...]
/dalvik/libcore/math/src/main/java/java/math/
H A DBigInteger.java1259 * Returns a new {@code BigInteger} whose value is {@code 1/this mod m}. The
1266 * @return {@code 1/this mod m}.
1285 * Returns a new {@code BigInteger} whose value is {@code this^exponent mod
1288 * exponent is negative, then {@code this.modInverse(m)^(-exponent) mod m)}
1296 * @return {@code this^exponent mod val}.
1322 * Returns a new {@code BigInteger} whose value is {@code this mod m}. The
1330 * @return {@code this mod m}.
1338 public BigInteger mod(BigInteger m) { method in class:BigInteger
1343 validate2("mod", this, m);
/dalvik/libcore/x-net/src/main/native/
H A Dorg_apache_harmony_xnet_provider_jsse_OpenSSLSocketImpl.cpp874 * @param mod The data of the modulus
881 static RSA* rsaCreateKey(unsigned char* mod, int modLen, unsigned char* exp, int expLen) { argument
886 rsa->n = BN_bin2bn((unsigned char*) mod, modLen, NULL);
1779 jbyteArray msg, jbyteArray sig, jstring algorithm, jbyteArray mod, jbyteArray exp) {
1783 if (msg == NULL || sig == NULL || algorithm == NULL || mod == NULL || exp == NULL) {
1796 jbyte* modBytes = env->GetByteArrayElements(mod, NULL);
1797 jint modLength = env->GetArrayLength(mod);
1814 env->ReleaseByteArrayElements(mod, modBytes, JNI_ABORT);
1778 org_apache_harmony_xnet_provider_jsse_OpenSSLSocketImpl_verifysignature(JNIEnv* env, jclass clazz, jbyteArray msg, jbyteArray sig, jstring algorithm, jbyteArray mod, jbyteArray exp) argument

Completed in 89 milliseconds