Home
last modified time | relevance | path

Searched refs:floorMod (Results 1 – 25 of 27) sorted by relevance

12

/libcore/ojluni/src/main/java/java/lang/
DStrictMath.java967 public static int floorMod(int x, int y) { in floorMod() method in StrictMath
968 return Math.floorMod(x , y); in floorMod()
995 public static int floorMod(long x, int y) { in floorMod() method in StrictMath
996 return Math.floorMod(x , y); in floorMod()
1022 public static long floorMod(long x, long y) { in floorMod() method in StrictMath
1023 return Math.floorMod(x, y); in floorMod()
DMath.java1266 public static int floorMod(int x, int y) { in floorMod() method in Math
1292 public static int floorMod(long x, int y) { in floorMod() method in Math
1319 public static long floorMod(long x, long y) { in floorMod() method in Math
/libcore/luni/src/test/java/libcore/java/lang/
DStrictMathTest.java173 int floorMod = StrictMath.floorMod(a, b); in testFloorModI() local
178 assertEquals(expected, floorMod); in testFloorModI()
219 long floorMod = StrictMath.floorMod(a, b); in testFloorModL() local
224 assertEquals(expected, floorMod); in testFloorModL()
DMathTest.java245 int floorMod = Math.floorMod(a, b); in testFloorModI() local
250 assertEquals(expected, floorMod); in testFloorModI()
291 long floorMod = Math.floorMod(a, b); in testFloorModL() local
296 assertEquals(expected, floorMod); in testFloorModL()
/libcore/ojluni/src/test/java/lang/Math/
DDivModTests.java399 return Math.floorMod(x, y); in doFloorMod()
413 return Math.floorMod(x, y); in doFloorMod()
427 return Math.floorMod(x, y); in doFloorMod()
483 return StrictMath.floorMod(x, y); in doStrictFloorMod()
497 return StrictMath.floorMod(x, y); in doStrictFloorMod()
511 return StrictMath.floorMod(x, y); in doStrictFloorMod()
/libcore/ojluni/src/test/java/time/test/java/time/chrono/
DTestIsoChronoImpl.java127 cal.setFirstDayOfWeek(Math.floorMod(firstDayOfWeek.getValue(), 7) + 1); in test_DayOfWeek_IsoChronology_vsCalendar()
141 int jdow = Math.floorMod(cal.get(Calendar.DAY_OF_WEEK) - 2, 7) + 1; in test_DayOfWeek_IsoChronology_vsCalendar()
174 return DayOfWeek.of(Math.floorMod(i - 2, 7) + 1); in toISOfromCalendarDOW()
/libcore/ojluni/src/main/java/java/nio/file/attribute/
DFileTime.java252 nanos = (int)Math.floorMod(value, MILLIS_PER_SECOND) in toInstant()
257 nanos = (int)Math.floorMod(value, MICROS_PER_SECOND) in toInstant()
262 nanos = (int)Math.floorMod(value, NANOS_PER_SECOND); in toInstant()
427 long lo = Math.floorMod(zeroSecs, SECONDS_PER_10000_YEARS); in toString()
/libcore/ojluni/src/main/java/java/time/
DClock.java618 return millis - Math.floorMod(millis, tickNanos / 1000_000L); in millis()
624 return Instant.ofEpochMilli(millis - Math.floorMod(millis, tickNanos / 1000_000L)); in instant()
628 long adjust = Math.floorMod(nanos, tickNanos); in instant()
DInstant.java323 int nos = (int)Math.floorMod(nanoAdjustment, NANOS_PER_SECOND); in ofEpochSecond()
339 int mos = (int)Math.floorMod(epochMilli, 1000); in ofEpochMilli()
DLocalDateTime.java415 int secsOfDay = (int)Math.floorMod(localSecond, SECONDS_PER_DAY); in ofEpochSecond()
1563 long newNoD = Math.floorMod(totNanos, NANOS_PER_DAY); in plusWithOverflow()
DLocalDate.java799 int dow0 = (int)Math.floorMod(toEpochDay() + 3, 7); in getDayOfWeek()
1302 int newMonth = (int)Math.floorMod(calcMonths, 12) + 1; in plusMonths()
DYearMonth.java847 int newMonth = (int)Math.floorMod(calcMonths, 12) + 1; in plusMonths()
DOffsetTime.java255 int secsOfDay = (int) Math.floorMod(localSecond, SECONDS_PER_DAY); in ofInstant()
DDuration.java242 int nos = (int) Math.floorMod(nanoAdjustment, NANOS_PER_SECOND); in ofSeconds()
DLocalTime.java359 int secsOfDay = Math.floorMod(localSecond, SECONDS_PER_DAY); in ofInstant()
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/
DCopticChronology.java208 return Math.floorMod(prolepticYear, 4) == 3; in isLeapYear()
DCopticDate.java214 case DAY_OF_WEEK: return Math.floorMod(toEpochDay() + 3, 7) + 1; in getLong()
288 int newMonth = (int)Math.floorMod(calcEm, 13) + 1; in plusMonths()
/libcore/ojluni/src/main/java/java/time/temporal/
DWeekFields.java777 return Math.floorMod(isoDow - sow, 7) + 1; in localizedDayOfWeek()
782 return Math.floorMod(isoDow - sow, 7) + 1; in localizedDayOfWeek()
870 int weekStart = Math.floorMod(day - dow, 7); in startOfWeekOffset()
924 long isoDow = Math.floorMod((startDow - 1) + (checkedValue - 1), 7) + 1; in resolve()
/libcore/ojluni/src/test/java/time/test/java/time/
DTestLocalTime.java200 diff = Math.floorMod(NANOS_PER_DAY + diff, NANOS_PER_DAY); in now()
/libcore/ojluni/src/main/java/java/time/chrono/
DHijrahDate.java494 int dow0 = (int)Math.floorMod(toEpochDay() + 3, 7); in getDayOfWeek()
536 int newMonth = (int)Math.floorMod(calcMonths, 12L) + 1; in plusMonths()
DIsoChronology.java502 addFieldValue(fieldValues, MONTH_OF_YEAR, Math.floorMod(pMonth, 12) + 1); in resolveProlepticMonth()
DChronoLocalDateTimeImpl.java358 long newNoD = Math.floorMod(totNanos, NANOS_PER_DAY); in plusWithOverflow()
/libcore/ojluni/src/main/java/java/util/
DImmutableCollections.java695 int idx = Math.floorMod(pe.hashCode() ^ SALT, elements.length); in probe()
953 int idx = Math.floorMod(pk.hashCode() ^ SALT, table.length >> 1) << 1;
/libcore/ojluni/src/main/java/java/time/format/
DParsed.java543 long nod = Math.floorMod(totalNanos, 86400_000_000_000L); in resolveTime()
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/
DTCKWeekFields.java252 int weekStart = Math.floorMod(1 - dow, 7); in test_weekOfWeekBasedYearField()

12