/external/icu/icu4c/source/i18n/ |
gregoimp.cpp | 25 int32_t ClockMath::floorDivide(int32_t numerator, int32_t denominator) { 30 int32_t ClockMath::floorDivide(double numerator, int32_t denominator, 38 double ClockMath::floorDivide(double dividend, double divisor, 42 double quotient = floorDivide(dividend, divisor); 87 double julian = 365 * y + ClockMath::floorDivide(y, 4) + (JULIAN_1_CE - 3) + // Julian cal 88 ClockMath::floorDivide(y, 400) - ClockMath::floorDivide(y, 100) + 2 + // => Gregorian cal 104 int32_t n400 = ClockMath::floorDivide(day, 146097, doy); // 400-year cycle length 105 int32_t n100 = ClockMath::floorDivide(doy, 36524, doy); // 100-year cycle length 106 int32_t n4 = ClockMath::floorDivide(doy, 1461, doy); // 4-year cycle lengt [all...] |
gregoimp.h | 36 * <code>floorDivide(-1,4)</code> => -1. 41 static int32_t floorDivide(int32_t numerator, int32_t denominator); 47 * <code>floorDivide(-1,4)</code> => -1. 52 static inline double floorDivide(double numerator, double denominator); 58 * <code>-1%4</code> => -1, but <code>floorDivide(-1,4)</code> => 69 static int32_t floorDivide(double numerator, int32_t denominator, 82 static double floorDivide(double dividend, double divisor, 256 inline double ClockMath::floorDivide(double numerator, double denominator) { 287 return (int32_t) (kEpochStartAsJulianDay + ClockMath::floorDivide(millis, (double)kOneDay)); 292 int32_t gregShift = ClockMath::floorDivide(y, 400) - ClockMath::floorDivide(y, 100) + 2 [all...] |
persncal.cpp | 113 ClockMath::floorDivide(25 * year + 11, 33, remainder); 150 extendedYear += ClockMath::floorDivide(month, 12, month); 172 eyear += ClockMath::floorDivide(month, 12, month); 175 int32_t julianDay = PERSIAN_EPOCH - 1 + 365 * (eyear - 1) + ClockMath::floorDivide(8 * eyear + 21, 33); 216 year = 1 + ClockMath::floorDivide(33 * daysSinceEpoch + 3, 12053); 218 int32_t farvardin1 = 365 * (year - 1) + ClockMath::floorDivide(8 * year + 21, 33);
|
cecal.cpp | 126 + ClockMath::floorDivide(year, 4) // extra day of leap year 138 c4 = ClockMath::floorDivide(julianDay - jdEpochOffset, 1461, r4);
|
gregocal.cpp | 335 int32_t cutoverDay = (int32_t)ClockMath::floorDivide(fGregorianCutover, (double)kOneDay); 391 eyear = (int32_t) ClockMath::floorDivide((4.0*julianEpochDay) + 1464.0, (int32_t) 1461, unusedRemainder); 394 int32_t january1 = 365*(eyear-1) + ClockMath::floorDivide(eyear-1, (int32_t)4); 540 eyear += ClockMath::floorDivide(month, 12, month); 545 int32_t julianDay = 365*y + ClockMath::floorDivide(y, 4) + (kJan1_1JulianDay - 3); 583 extendedYear += ClockMath::floorDivide(month, 12, month); 702 return ClockMath::floorDivide(wallSec, kOneDay/1000.0); 721 double julianDay = 365.0*y + ClockMath::floorDivide(y, 4) + (kJan1_1JulianDay - 3); 790 return (double)kEpochStartAsJulianDay + ClockMath::floorDivide(millis, (double)kOneDay); [all...] |
indiancal.cpp | 114 eyear += ClockMath::floorDivide(month, 12, month); 248 eyear += (int32_t)ClockMath::floorDivide(month, 12, month);
|
islamcal.cpp | 374 return (year-1)*354 + ClockMath::floorDivide((3+11*year),30); 397 + (year-1)*354 + (int32_t)ClockMath::floorDivide((3+11*year),30); 453 start = (int32_t)ClockMath::floorDivide((origin - HIJRA_MILLIS), (double)kOneDay) + 1; 617 year = (int)ClockMath::floorDivide( (double)(30 * days + 10646) , 10631.0 ); 650 year = (int)ClockMath::floorDivide( (double)(30 * days + 10646) , 10631.0 ); [all...] |
chnsecal.cpp | 331 eyear += (int32_t)ClockMath::floorDivide(m, 12.0, m); 507 return ClockMath::floorDivide(millis + (double)(rawOffset + dstOffset), kOneDay); 510 return ClockMath::floorDivide(millis + (double)CHINA_OFFSET, kOneDay); 730 int32_t cycle = ClockMath::floorDivide(cycle_year - 1, 60, yearOfCycle);
|
astro.cpp | 215 return value - range * ClockMath::floorDivide(value, range); 425 double base = (DAY_MS * ClockMath::floorDivide(fTime + fGmtOffset,(double)DAY_MS)) - fGmtOffset; 756 double noon = ClockMath::floorDivide(fTime + fGmtOffset, (double)DAY_MS)*DAY_MS - fGmtOffset + (12*HOUR_MS); [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
Grego.java | 100 365 * y + floorDivide(y, 4) + (JULIAN_1_CE - 3) + // Julian cal 101 floorDivide(y, 400) - floorDivide(y, 100) + 2 + // => Gregorian cal 113 floorDivide(day + 5 /* Calendar.THURSDAY */, 7, remainder); 127 long n400 = floorDivide(day, 146097, rem); 128 long n100 = floorDivide(rem[0], 36524, rem); 129 long n4 = floorDivide(rem[0], 1461, rem); 130 long n1 = floorDivide(rem[0], 365, rem); 179 long day = floorDivide(time, 24*60*60*1000 /* milliseconds per day */, remainder); 185 public static long floorDivide(long numerator, long denominator) [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
Grego.java | 98 365 * y + floorDivide(y, 4) + (JULIAN_1_CE - 3) + // Julian cal 99 floorDivide(y, 400) - floorDivide(y, 100) + 2 + // => Gregorian cal 111 floorDivide(day + 5 /* Calendar.THURSDAY */, 7, remainder); 125 long n400 = floorDivide(day, 146097, rem); 126 long n100 = floorDivide(rem[0], 36524, rem); 127 long n4 = floorDivide(rem[0], 1461, rem); 128 long n1 = floorDivide(rem[0], 365, rem); 177 long day = floorDivide(time, 24*60*60*1000 /* milliseconds per day */, remainder); 183 public static long floorDivide(long numerator, long denominator) [all...] |
/libcore/ojluni/src/main/java/sun/util/calendar/ |
CalendarUtils.java | 63 * For example, <code>floorDivide(-1, 4)</code> returns -1 while 70 public static final long floorDivide(long n, long d) { 77 * For example, <code>floorDivide(-1, 4)</code> returns -1 while 84 public static final int floorDivide(int n, int d) { 92 * <code>floorDivide(-1,4)</code> returns <code>-1</code> with 102 public static final int floorDivide(int n, int d, int[] r) { 115 * <code>floorDivide(-1,4)</code> returns <code>-1</code> with 125 public static final int floorDivide(long n, int d, int[] r) { 136 return (x - y * floorDivide(x, y)); 140 return (x - y * floorDivide(x, y)) [all...] |
JulianCalendar.java | 166 days += CalendarUtils.floorDivide(y - 1, 4); 171 days += CalendarUtils.floorDivide((367 * (long) month) - 362, 12); 192 year = (int) CalendarUtils.floorDivide(fd, 1461); 203 month = CalendarUtils.floorDivide(month, 367); 220 int year = (int) CalendarUtils.floorDivide(4 * (fixedDate - JULIAN_EPOCH) + 1464, 1461);
|
BaseCalendar.java | 395 + CalendarUtils.floorDivide(prevyear, 4) 396 - CalendarUtils.floorDivide(prevyear, 100) 397 + CalendarUtils.floorDivide(prevyear, 400) 398 + CalendarUtils.floorDivide((367 * month - 362), 12); 451 month = CalendarUtils.floorDivide(month, 367); 509 n400 = (int)CalendarUtils.floorDivide(d0, 146097L); 511 n100 = CalendarUtils.floorDivide(d1, 36524); 513 n4 = CalendarUtils.floorDivide(d2, 1461); 515 n1 = CalendarUtils.floorDivide(d3, 365);
|
/external/icu/android_icu4j/src/main/java/android/icu/util/ |
PersianCalendar.java | 315 floorDivide(25 * year + 11, 33, remainder); 339 extendedYear += floorDivide(month, 12, rem); 373 eyear += floorDivide(month, 12, rem); 377 int julianDay = PERSIAN_EPOCH - 1 + 365 * (eyear - 1) + floorDivide(8 * eyear + 21, 33); 425 year = 1 + (int) floorDivide(33 * daysSinceEpoch + 3, 12053); 427 long farvardin1 = 365L * (year - 1L) + floorDivide(8L * year + 21, 33L);
|
GregorianCalendar.java | 484 cutoverJulianDay = (int) floorDivide(gregorianCutover, ONE_DAY); 705 extendedYear += floorDivide(month, 12, rem); 745 eyear = (int) floorDivide(4*julianEpochDay + 1464, 1461); 748 long january1 = 365L*(eyear-1L) + floorDivide(eyear-1L, 4L); [all...] |
CECalendar.java | 254 + floorDivide(year, 4) // extra day of leap year 268 c4 = floorDivide(julianDay - jdEpochOffset, 1461, r4);
|
ChineseCalendar.java | 666 return (int) floorDivide(millis + zoneAstro.getOffset(millis), ONE_DAY); [all...] |
Calendar.java | [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
PersianCalendar.java | 313 floorDivide(25 * year + 11, 33, remainder); 337 extendedYear += floorDivide(month, 12, rem); 371 eyear += floorDivide(month, 12, rem); 375 int julianDay = PERSIAN_EPOCH - 1 + 365 * (eyear - 1) + floorDivide(8 * eyear + 21, 33); 423 year = 1 + (int) floorDivide(33 * daysSinceEpoch + 3, 12053); 425 long farvardin1 = 365L * (year - 1L) + floorDivide(8L * year + 21, 33L);
|
GregorianCalendar.java | 499 cutoverJulianDay = (int) floorDivide(gregorianCutover, ONE_DAY); 728 extendedYear += floorDivide(month, 12, rem); 770 eyear = (int) floorDivide(4*julianEpochDay + 1464, 1461); 773 long january1 = 365L*(eyear-1L) + floorDivide(eyear-1L, 4L); [all...] |
CECalendar.java | 251 + floorDivide(year, 4) // extra day of leap year 264 c4 = floorDivide(julianDay - jdEpochOffset, 1461, r4);
|
ChineseCalendar.java | 684 return (int) floorDivide(millis + zoneAstro.getOffset(millis), ONE_DAY); [all...] |
Calendar.java | [all...] |
/libcore/ojluni/src/main/java/java/util/ |
Date.java | 250 y += CalendarUtils.floorDivide(month, 12); 325 y += CalendarUtils.floorDivide(month, 12); [all...] |