/libcore/ojluni/src/main/java/java/lang/ |
D | StrictMath.java | 892 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()
|
D | Math.java | 1150 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/ |
D | StrictMathTest.java | 158 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()
|
D | MathTest.java | 230 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/ |
D | DivModTests.java | 357 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/ |
D | FileTime.java | 251 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/ |
D | CopticDate.java | 287 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/ |
D | Instant.java | 322 long secs = Math.addExact(epochSecond, Math.floorDiv(nanoAdjustment, NANOS_PER_SECOND)); in ofEpochSecond() 338 long secs = Math.floorDiv(epochMilli, 1000); in ofEpochMilli()
|
D | LocalDateTime.java | 414 long localEpochDay = Math.floorDiv(localSecond, SECONDS_PER_DAY); in ofEpochSecond() 1562 totDays += Math.floorDiv(totNanos, NANOS_PER_DAY); in plusWithOverflow()
|
D | LocalDate.java | 221 long epochDay = Math.floorDiv(epochSec, SECONDS_PER_DAY); in now() 1301 int newYear = YEAR.checkValidIntValue(Math.floorDiv(calcMonths, 12)); in plusMonths()
|
D | YearMonth.java | 846 int newYear = YEAR.checkValidIntValue(Math.floorDiv(calcMonths, 12)); in plusMonths()
|
D | Duration.java | 241 long secs = Math.addExact(seconds, Math.floorDiv(nanoAdjustment, NANOS_PER_SECOND)); in ofSeconds()
|
/libcore/ojluni/src/main/java/java/time/chrono/ |
D | IsoChronology.java | 503 addFieldValue(fieldValues, YEAR, Math.floorDiv(pMonth, 12)); in resolveProlepticMonth()
|
D | ChronoLocalDateTimeImpl.java | 357 totDays += Math.floorDiv(totNanos, NANOS_PER_DAY); in plusWithOverflow()
|
D | HijrahDate.java | 535 int newYear = chrono.checkValidYear(Math.floorDiv(calcMonths, 12L)); in plusMonths()
|
/libcore/ojluni/src/main/java/java/time/zone/ |
D | ZoneRules.java | 927 long localEpochDay = Math.floorDiv(localSecond, 86400); in findYear()
|