Home
last modified time | relevance | path

Searched refs:floorDiv (Results 1 – 16 of 16) sorted by relevance

/libcore/ojluni/src/main/java/java/lang/
DStrictMath.java892 public static int floorDiv(int x, int y) { in floorDiv() method in StrictMath
893 return Math.floorDiv(x, y); in floorDiv()
916 public static long floorDiv(long x, int y) { in floorDiv() method in StrictMath
917 return Math.floorDiv(x, y); in floorDiv()
940 public static long floorDiv(long x, long y) { in floorDiv() method in StrictMath
941 return Math.floorDiv(x, y); in floorDiv()
DMath.java1150 public static int floorDiv(int x, int y) { in floorDiv() method in Math
1184 public static long floorDiv(long x, int y) { in floorDiv() method in Math
1185 return floorDiv(x, (long)y); in floorDiv()
1213 public static long floorDiv(long x, long y) { in floorDiv() method in Math
1267 return x - floorDiv(x, y) * y; in floorMod()
1294 return (int)(x - floorDiv(x, y) * y); in floorMod()
1320 return x - floorDiv(x, y) * y; in floorMod()
/libcore/luni/src/test/java/libcore/java/lang/
DStrictMathTest.java158 int floorDiv = StrictMath.floorDiv(a, b); in testFloorDivI() local
163 assertEquals(expected, floorDiv); in testFloorDivI()
204 long floorDiv = StrictMath.floorDiv(a, b); in testFloorDivL() local
209 assertEquals(expected, floorDiv); in testFloorDivL()
DMathTest.java230 int floorDiv = Math.floorDiv(a, b); in testFloorDivI() local
235 assertEquals(expected, floorDiv); in testFloorDivI()
276 long floorDiv = Math.floorDiv(a, b); in testFloorDivL() local
281 assertEquals(expected, floorDiv); in testFloorDivL()
/libcore/ojluni/src/test/java/lang/Math/
DDivModTests.java357 return Math.floorDiv(x, y); in doFloorDiv()
371 return Math.floorDiv(x, y); in doFloorDiv()
385 return Math.floorDiv(x, y); in doFloorDiv()
441 return StrictMath.floorDiv(x, y); in doStrictFloorDiv()
455 return StrictMath.floorDiv(x, y); in doStrictFloorDiv()
469 return StrictMath.floorDiv(x, y); in doStrictFloorDiv()
/libcore/ojluni/src/main/java/java/nio/file/attribute/
DFileTime.java251 secs = Math.floorDiv(value, MILLIS_PER_SECOND); in toInstant()
256 secs = Math.floorDiv(value, MICROS_PER_SECOND); in toInstant()
261 secs = Math.floorDiv(value, NANOS_PER_SECOND); in toInstant()
426 long hi = Math.floorDiv(zeroSecs, SECONDS_PER_10000_YEARS) + 1; in toString()
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/
DCopticDate.java287 int newYear = Math.toIntExact(Math.floorDiv(calcEm, 13)); in plusMonths()
331 …long copticEpochDay = ((year - 1) * 365) + Math.floorDiv(year, 4) + (get(ChronoField.DAY_OF_YEAR) … in toEpochDay()
/libcore/ojluni/src/main/java/java/time/
DInstant.java322 long secs = Math.addExact(epochSecond, Math.floorDiv(nanoAdjustment, NANOS_PER_SECOND)); in ofEpochSecond()
338 long secs = Math.floorDiv(epochMilli, 1000); in ofEpochMilli()
DLocalDateTime.java414 long localEpochDay = Math.floorDiv(localSecond, SECONDS_PER_DAY); in ofEpochSecond()
1562 totDays += Math.floorDiv(totNanos, NANOS_PER_DAY); in plusWithOverflow()
DLocalDate.java221 long epochDay = Math.floorDiv(epochSec, SECONDS_PER_DAY); in now()
1301 int newYear = YEAR.checkValidIntValue(Math.floorDiv(calcMonths, 12)); in plusMonths()
DYearMonth.java846 int newYear = YEAR.checkValidIntValue(Math.floorDiv(calcMonths, 12)); in plusMonths()
DDuration.java241 long secs = Math.addExact(seconds, Math.floorDiv(nanoAdjustment, NANOS_PER_SECOND)); in ofSeconds()
/libcore/ojluni/src/main/java/java/time/chrono/
DIsoChronology.java503 addFieldValue(fieldValues, YEAR, Math.floorDiv(pMonth, 12)); in resolveProlepticMonth()
DChronoLocalDateTimeImpl.java357 totDays += Math.floorDiv(totNanos, NANOS_PER_DAY); in plusWithOverflow()
DHijrahDate.java535 int newYear = chrono.checkValidYear(Math.floorDiv(calcMonths, 12L)); in plusMonths()
/libcore/ojluni/src/main/java/java/time/zone/
DZoneRules.java927 long localEpochDay = Math.floorDiv(localSecond, 86400); in findYear()