/external/icu/icu4c/source/i18n/ |
D | gregoimp.cpp | 25 int32_t ClockMath::floorDivide(int32_t numerator, int32_t denominator) { in floorDivide() function in ClockMath 30 int64_t ClockMath::floorDivide(int64_t numerator, int64_t denominator) { in floorDivide() function in ClockMath 35 int32_t ClockMath::floorDivide(double numerator, int32_t denominator, in floorDivide() function in ClockMath 43 double ClockMath::floorDivide(double dividend, double divisor, in floorDivide() function in ClockMath 47 double quotient = floorDivide(dividend, divisor); in floorDivide() 92 double julian = 365 * y + ClockMath::floorDivide(y, 4) + (JULIAN_1_CE - 3) + // Julian cal in fieldsToDay() 93 ClockMath::floorDivide(y, 400) - ClockMath::floorDivide(y, 100) + 2 + // => Gregorian cal in fieldsToDay() 109 int32_t n400 = ClockMath::floorDivide(day, 146097, doy); // 400-year cycle length in dayToFields() 110 int32_t n100 = ClockMath::floorDivide(doy, 36524, doy); // 100-year cycle length in dayToFields() 111 int32_t n4 = ClockMath::floorDivide(doy, 1461, doy); // 4-year cycle length in dayToFields() [all …]
|
D | gregoimp.h | 41 static int32_t floorDivide(int32_t numerator, int32_t denominator); 52 static int64_t floorDivide(int64_t numerator, int64_t denominator); 63 static inline double floorDivide(double numerator, double denominator); 80 static int32_t floorDivide(double numerator, int32_t denominator, 93 static double floorDivide(double dividend, double divisor, 267 inline double ClockMath::floorDivide(double numerator, double denominator) { in floorDivide() function 298 return (int32_t) (kEpochStartAsJulianDay + ClockMath::floorDivide(millis, (double)kOneDay)); in millisToJulianDay() 303 …t32_t gregShift = static_cast<int32_t>(ClockMath::floorDivide(y, (int64_t)400) - ClockMath::floorD… in gregorianShift()
|
D | persncal.cpp | 113 ClockMath::floorDivide(25 * year + 11, 33, remainder); in isLeapYear() 150 extendedYear += ClockMath::floorDivide(month, 12, month); in handleGetMonthLength() 172 eyear += ClockMath::floorDivide(month, 12, month); in handleComputeMonthStart() 175 …int32_t julianDay = PERSIAN_EPOCH - 1 + 365 * (eyear - 1) + ClockMath::floorDivide(8 * eyear + 21,… in handleComputeMonthStart() 216 year = 1 + (int32_t)ClockMath::floorDivide(33 * (int64_t)daysSinceEpoch + 3, (int64_t)12053); in handleComputeFields() 218 int32_t farvardin1 = 365 * (year - 1) + ClockMath::floorDivide(8 * year + 21, 33); in handleComputeFields()
|
D | islamcal.cpp | 374 return (year-1)*354 + ClockMath::floorDivide((3+11*year),30); in yearStart() 397 + (year-1)*354 + (int32_t)ClockMath::floorDivide((3+11*year),30); in monthStart() 453 start = (int32_t)ClockMath::floorDivide((origin - HIJRA_MILLIS), (double)kOneDay) + 1; in trueMonthStart() 617 year = (int32_t)ClockMath::floorDivide(30 * (int64_t)days + 10646, (int64_t)10631); in handleComputeFields() 650 year = (int)ClockMath::floorDivide( (double)(30 * days + 10646) , 10631.0 ); in handleComputeFields()
|
D | gregocal.cpp | 335 int32_t cutoverDay = (int32_t)ClockMath::floorDivide(fGregorianCutover, (double)kOneDay); in setGregorianChange() 391 …eyear = (int32_t) ClockMath::floorDivide((4.0*julianEpochDay) + 1464.0, (int32_t) 1461, unusedRema… in handleComputeFields() 394 int32_t january1 = 365*(eyear-1) + ClockMath::floorDivide(eyear-1, (int32_t)4); in handleComputeFields() 540 eyear += ClockMath::floorDivide(month, 12, month); in handleComputeMonthStart() 545 int64_t julianDay = 365*y + ClockMath::floorDivide(y, (int64_t)4) + (kJan1_1JulianDay - 3); in handleComputeMonthStart() 583 extendedYear += ClockMath::floorDivide(month, 12, month); in handleGetMonthLength() 702 return ClockMath::floorDivide(wallSec, kOneDay/1000.0); in getEpochDay() 721 double julianDay = 365.0*y + ClockMath::floorDivide(y, 4) + (kJan1_1JulianDay - 3); in computeJulianDayOfYear() 790 return (double)kEpochStartAsJulianDay + ClockMath::floorDivide(millis, (double)kOneDay); in millisToJulianDay()
|
D | cecal.cpp | 126 + ClockMath::floorDivide(year, 4) // extra day of leap year in ceToJD() 138 c4 = ClockMath::floorDivide(julianDay - jdEpochOffset, 1461, r4); in jdToCE()
|
D | chnsecal.cpp | 331 eyear += (int32_t)ClockMath::floorDivide(m, 12.0, m); in handleComputeMonthStart() 507 return ClockMath::floorDivide(millis + (double)(rawOffset + dstOffset), kOneDay); in millisToDays() 510 return ClockMath::floorDivide(millis + (double)CHINA_OFFSET, kOneDay); in millisToDays() 730 int32_t cycle = ClockMath::floorDivide(cycle_year - 1, 60, yearOfCycle); in computeChineseFields()
|
D | indiancal.cpp | 114 eyear += ClockMath::floorDivide(month, 12, month); in handleGetMonthLength() 248 eyear += (int32_t)ClockMath::floorDivide(month, 12, month); in handleComputeMonthStart()
|
D | astro.cpp | 215 return value - range * ClockMath::floorDivide(value, range); in normalize() 425 double base = (DAY_MS * ClockMath::floorDivide(fTime + fGmtOffset,(double)DAY_MS)) - fGmtOffset; in lstToUT() 756 …double noon = ClockMath::floorDivide(fTime + fGmtOffset, (double)DAY_MS)*DAY_MS - fGmtOffset + (12… in getSunRiseSet()
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
D | Grego.java | 100 365 * y + floorDivide(y, 4) + (JULIAN_1_CE - 3) + // Julian cal in fieldsToDay() 101 floorDivide(y, 400) - floorDivide(y, 100) + 2 + // => Gregorian cal in fieldsToDay() 113 floorDivide(day + 5 /* Calendar.THURSDAY */, 7, remainder); in dayOfWeek() 127 long n400 = floorDivide(day, 146097, rem); in dayToFields() 128 long n100 = floorDivide(rem[0], 36524, rem); in dayToFields() 129 long n4 = floorDivide(rem[0], 1461, rem); in dayToFields() 130 long n1 = floorDivide(rem[0], 365, rem); in dayToFields() 179 long day = floorDivide(time, 24*60*60*1000 /* milliseconds per day */, remainder); in timeToFields() 185 public static long floorDivide(long numerator, long denominator) { in floorDivide() method in Grego 193 private static long floorDivide(long numerator, long denominator, long[] remainder) { in floorDivide() method in Grego
|
D | OlsonTimeZone.java | 355 long currentSec = Grego.floorDivide(current, Grego.MILLIS_PER_SECOND); in observesDaylightTime() 683 long sec = Grego.floorDivide(date, Grego.MILLIS_PER_SECOND); in getHistoricalOffset()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
D | Grego.java | 98 365 * y + floorDivide(y, 4) + (JULIAN_1_CE - 3) + // Julian cal in fieldsToDay() 99 floorDivide(y, 400) - floorDivide(y, 100) + 2 + // => Gregorian cal in fieldsToDay() 111 floorDivide(day + 5 /* Calendar.THURSDAY */, 7, remainder); in dayOfWeek() 125 long n400 = floorDivide(day, 146097, rem); in dayToFields() 126 long n100 = floorDivide(rem[0], 36524, rem); in dayToFields() 127 long n4 = floorDivide(rem[0], 1461, rem); in dayToFields() 128 long n1 = floorDivide(rem[0], 365, rem); in dayToFields() 177 long day = floorDivide(time, 24*60*60*1000 /* milliseconds per day */, remainder); in timeToFields() 183 public static long floorDivide(long numerator, long denominator) { in floorDivide() method in Grego 191 private static long floorDivide(long numerator, long denominator, long[] remainder) { in floorDivide() method in Grego
|
D | OlsonTimeZone.java | 353 long currentSec = Grego.floorDivide(current, Grego.MILLIS_PER_SECOND); in observesDaylightTime() 681 long sec = Grego.floorDivide(date, Grego.MILLIS_PER_SECOND); in getHistoricalOffset()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
D | PersianCalendar.java | 313 floorDivide(25 * year + 11, 33, remainder); in isLeapYear() 337 extendedYear += floorDivide(month, 12, rem); in handleGetMonthLength() 371 eyear += floorDivide(month, 12, rem); in handleComputeMonthStart() 375 int julianDay = PERSIAN_EPOCH - 1 + 365 * (eyear - 1) + floorDivide(8 * eyear + 21, 33); in handleComputeMonthStart() 423 year = 1 + (int) floorDivide(33 * daysSinceEpoch + 3, 12053); in handleComputeFields() 425 long farvardin1 = 365L * (year - 1L) + floorDivide(8L * year + 21, 33L); in handleComputeFields()
|
D | GregorianCalendar.java | 499 cutoverJulianDay = (int) floorDivide(gregorianCutover, ONE_DAY); in setGregorianChange() 728 extendedYear += floorDivide(month, 12, rem); in handleGetMonthLength() 770 eyear = (int) floorDivide(4*julianEpochDay + 1464, 1461); in handleComputeFields() 773 long january1 = 365L*(eyear-1L) + floorDivide(eyear-1L, 4L); in handleComputeFields() 859 eyear += floorDivide(month, 12, rem); in handleComputeMonthStart() 865 int julianDay = 365*y + floorDivide(y, 4) + (JAN_1_1_JULIAN_DAY - 3); in handleComputeMonthStart() 875 julianDay += floorDivide(y, 400) - floorDivide(y, 100) + 2; in handleComputeMonthStart()
|
D | CECalendar.java | 251 + floorDivide(year, 4) // extra day of leap year in ceToJD() 264 c4 = floorDivide(julianDay - jdEpochOffset, 1461, r4); in jdToCE()
|
D | Calendar.java | 5016 long days = floorDivide(localMillis, ONE_DAY); in computeFields() 5092 int n400 = floorDivide(gregorianEpochDay, 146097, rem); // 400-year cycle length in computeGregorianFields() 5093 int n100 = floorDivide(rem[0], 36524, rem); // 100-year cycle length in computeGregorianFields() 5094 int n4 = floorDivide(rem[0], 1461, rem); // 4-year cycle length in computeGregorianFields() 5095 int n1 = floorDivide(rem[0], 365, rem); in computeGregorianFields() 6109 year += floorDivide(month, 12, rem); in computeGregorianMonthStart() 6118 int julianDay = 365*y + floorDivide(y, 4) - floorDivide(y, 100) + in computeGregorianMonthStart() 6119 floorDivide(y, 400) + JAN_1_1_JULIAN_DAY - 1; in computeGregorianMonthStart() 6316 protected static final long floorDivide(long numerator, long denominator) { in floorDivide() method in Calendar 6335 protected static final int floorDivide(int numerator, int denominator) { in floorDivide() method in Calendar [all …]
|
D | ChineseCalendar.java | 684 return (int) floorDivide(millis + zoneAstro.getOffset(millis), ONE_DAY); in millisToDays() 909 int cycle = floorDivide(cycle_year-1, 60, yearOfCycle); in computeChineseFields() 980 eyear += floorDivide(month, 12, rem); in handleComputeMonthStart()
|
D | IndianCalendar.java | 340 extendedYear += floorDivide(month, 12, remainder); in handleGetMonthLength()
|
/external/icu/android_icu4j/src/main/java/android/icu/util/ |
D | PersianCalendar.java | 316 floorDivide(25 * year + 11, 33, remainder); in isLeapYear() 340 extendedYear += floorDivide(month, 12, rem); in handleGetMonthLength() 374 eyear += floorDivide(month, 12, rem); in handleComputeMonthStart() 378 int julianDay = PERSIAN_EPOCH - 1 + 365 * (eyear - 1) + floorDivide(8 * eyear + 21, 33); in handleComputeMonthStart() 426 year = 1 + (int) floorDivide(33 * daysSinceEpoch + 3, 12053); in handleComputeFields() 428 long farvardin1 = 365L * (year - 1L) + floorDivide(8L * year + 21, 33L); in handleComputeFields()
|
D | GregorianCalendar.java | 484 cutoverJulianDay = (int) floorDivide(gregorianCutover, ONE_DAY); in setGregorianChange() 705 extendedYear += floorDivide(month, 12, rem); in handleGetMonthLength() 745 eyear = (int) floorDivide(4*julianEpochDay + 1464, 1461); in handleComputeFields() 748 long january1 = 365L*(eyear-1L) + floorDivide(eyear-1L, 4L); in handleComputeFields() 831 eyear += floorDivide(month, 12, rem); in handleComputeMonthStart() 837 int julianDay = 365*y + floorDivide(y, 4) + (JAN_1_1_JULIAN_DAY - 3); in handleComputeMonthStart() 847 julianDay += floorDivide(y, 400) - floorDivide(y, 100) + 2; in handleComputeMonthStart()
|
D | CECalendar.java | 254 + floorDivide(year, 4) // extra day of leap year in ceToJD() 268 c4 = floorDivide(julianDay - jdEpochOffset, 1461, r4); in jdToCE()
|
D | Calendar.java | 4852 long days = floorDivide(localMillis, ONE_DAY); in computeFields() 4927 int n400 = floorDivide(gregorianEpochDay, 146097, rem); // 400-year cycle length in computeGregorianFields() 4928 int n100 = floorDivide(rem[0], 36524, rem); // 100-year cycle length in computeGregorianFields() 4929 int n4 = floorDivide(rem[0], 1461, rem); // 4-year cycle length in computeGregorianFields() 4930 int n1 = floorDivide(rem[0], 365, rem); in computeGregorianFields() 5924 year += floorDivide(month, 12, rem); in computeGregorianMonthStart() 5933 int julianDay = 365*y + floorDivide(y, 4) - floorDivide(y, 100) + in computeGregorianMonthStart() 5934 floorDivide(y, 400) + JAN_1_1_JULIAN_DAY - 1; in computeGregorianMonthStart() 6120 protected static final long floorDivide(long numerator, long denominator) { in floorDivide() method in Calendar 6138 protected static final int floorDivide(int numerator, int denominator) { in floorDivide() method in Calendar [all …]
|
D | ChineseCalendar.java | 666 return (int) floorDivide(millis + zoneAstro.getOffset(millis), ONE_DAY); in millisToDays() 890 int cycle = floorDivide(cycle_year-1, 60, yearOfCycle); in computeChineseFields() 960 eyear += floorDivide(month, 12, rem); in handleComputeMonthStart()
|
D | IndianCalendar.java | 314 extendedYear += floorDivide(month, 12, remainder); in handleGetMonthLength()
|