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

/libcore/luni/src/main/java/java/util/
H A DGregorianCalendar.java1079 private int mod(int value, int mod) { argument
1080 int rem = value % mod;
1082 return rem + mod;
1119 int days, day, mod, maxWeeks, newWeek;
1128 mod = mod7(fields[DAY_OF_WEEK] - fields[day]
1130 maxWeeks = (days - 1 + mod) / 7 + 1;
1131 newWeek = mod(fields[field] - 1 + value, maxWeeks) + 1;
1140 int week = (fields[day] - ((fields[day] - 1) / 7 * 7) - 1 + mod) / 7 + 1;
1153 mod
[all...]
/libcore/luni/src/main/java/java/math/
H A DBigInteger.java958 * Returns a {@code BigInteger} whose value is {@code 1/this mod m}. The
977 * pow(this, exponent) mod modulus}. The modulus must be positive. The
980 * {@code pow(this.modInverse(modulus), -exponent) mod modulus} is computed.
994 return ONE.mod(modulus);
1001 * Returns a {@code BigInteger} whose value is {@code this mod m}. The
1008 * @return {@code this mod m}.
1012 public BigInteger mod(BigInteger m) { method in class:BigInteger

Completed in 90 milliseconds