Home
last modified time | relevance | path

Searched refs:floorDivide (Results 1 – 25 of 36) sorted by relevance

12

/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DGrego.java96 365 * y + floorDivide(y, 4) + (JULIAN_1_CE - 3) + // Julian cal in fieldsToDay()
97 floorDivide(y, 400) - floorDivide(y, 100) + 2 + // => Gregorian cal in fieldsToDay()
109 floorDivide(day + 5 /* Calendar.THURSDAY */, 7, remainder); in dayOfWeek()
123 long n400 = floorDivide(day, 146097, rem); in dayToFields()
124 long n100 = floorDivide(rem[0], 36524, rem); in dayToFields()
125 long n4 = floorDivide(rem[0], 1461, rem); in dayToFields()
126 long n1 = floorDivide(rem[0], 365, rem); in dayToFields()
175 long day = floorDivide(time, 24*60*60*1000 /* milliseconds per day */, remainder); in timeToFields()
181 public static long floorDivide(long numerator, long denominator) { in floorDivide() method in Grego
189 private static long floorDivide(long numerator, long denominator, long[] remainder) { in floorDivide() method in Grego
DOlsonTimeZone.java351 long currentSec = Grego.floorDivide(current, Grego.MILLIS_PER_SECOND); in observesDaylightTime()
679 long sec = Grego.floorDivide(date, Grego.MILLIS_PER_SECOND); in getHistoricalOffset()
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DGrego.java98 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
DOlsonTimeZone.java353 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/icu4c/source/i18n/
Dgregoimp.cpp27 int32_t ClockMath::floorDivide(int32_t numerator, int32_t denominator) { in floorDivide() function in ClockMath
32 int32_t ClockMath::floorDivide(double numerator, int32_t denominator, in floorDivide() function in ClockMath
40 double ClockMath::floorDivide(double dividend, double divisor, in floorDivide() function in ClockMath
44 double quotient = floorDivide(dividend, divisor); in floorDivide()
89 double julian = 365 * y + ClockMath::floorDivide(y, 4) + (JULIAN_1_CE - 3) + // Julian cal in fieldsToDay()
90 ClockMath::floorDivide(y, 400) - ClockMath::floorDivide(y, 100) + 2 + // => Gregorian cal in fieldsToDay()
106 int32_t n400 = ClockMath::floorDivide(day, 146097, doy); // 400-year cycle length in dayToFields()
107 int32_t n100 = ClockMath::floorDivide(doy, 36524, doy); // 100-year cycle length in dayToFields()
108 int32_t n4 = ClockMath::floorDivide(doy, 1461, doy); // 4-year cycle length in dayToFields()
109 int32_t n1 = ClockMath::floorDivide(doy, 365, doy); in dayToFields()
[all …]
Dgregoimp.h39 static int32_t floorDivide(int32_t numerator, int32_t denominator);
50 static inline double floorDivide(double numerator, double denominator);
67 static int32_t floorDivide(double numerator, int32_t denominator,
80 static double floorDivide(double dividend, double divisor,
254 inline double ClockMath::floorDivide(double numerator, double denominator) { in floorDivide() function
285 return (int32_t) (kEpochStartAsJulianDay + ClockMath::floorDivide(millis, (double)kOneDay)); in millisToJulianDay()
290 int32_t gregShift = ClockMath::floorDivide(y, 400) - ClockMath::floorDivide(y, 100) + 2; in gregorianShift()
Dpersncal.cpp111 ClockMath::floorDivide(25 * year + 11, 33, remainder); in isLeapYear()
148 extendedYear += ClockMath::floorDivide(month, 12, month); in handleGetMonthLength()
170 eyear += ClockMath::floorDivide(month, 12, month); in handleComputeMonthStart()
173 …int32_t julianDay = PERSIAN_EPOCH - 1 + 365 * (eyear - 1) + ClockMath::floorDivide(8 * eyear + 21,… in handleComputeMonthStart()
214 year = 1 + ClockMath::floorDivide(33 * daysSinceEpoch + 3, 12053); in handleComputeFields()
216 int32_t farvardin1 = 365 * (year - 1) + ClockMath::floorDivide(8 * year + 21, 33); in handleComputeFields()
Dislamcal.cpp372 return (year-1)*354 + ClockMath::floorDivide((3+11*year),30); in yearStart()
395 + (year-1)*354 + (int32_t)ClockMath::floorDivide((3+11*year),30); in monthStart()
451 start = (int32_t)ClockMath::floorDivide((origin - HIJRA_MILLIS), (double)kOneDay) + 1; in trueMonthStart()
615 year = (int)ClockMath::floorDivide( (double)(30 * days + 10646) , 10631.0 ); in handleComputeFields()
648 year = (int)ClockMath::floorDivide( (double)(30 * days + 10646) , 10631.0 ); in handleComputeFields()
Dgregocal.cpp333 int32_t cutoverDay = (int32_t)ClockMath::floorDivide(fGregorianCutover, (double)kOneDay); in setGregorianChange()
389 …eyear = (int32_t) ClockMath::floorDivide((4.0*julianEpochDay) + 1464.0, (int32_t) 1461, unusedRema… in handleComputeFields()
392 int32_t january1 = 365*(eyear-1) + ClockMath::floorDivide(eyear-1, (int32_t)4); in handleComputeFields()
538 eyear += ClockMath::floorDivide(month, 12, month); in handleComputeMonthStart()
543 int32_t julianDay = 365*y + ClockMath::floorDivide(y, 4) + (kJan1_1JulianDay - 3); in handleComputeMonthStart()
581 extendedYear += ClockMath::floorDivide(month, 12, month); in handleGetMonthLength()
700 return ClockMath::floorDivide(wallSec, kOneDay/1000.0); in getEpochDay()
719 double julianDay = 365.0*y + ClockMath::floorDivide(y, 4) + (kJan1_1JulianDay - 3); in computeJulianDayOfYear()
788 return (double)kEpochStartAsJulianDay + ClockMath::floorDivide(millis, (double)kOneDay); in millisToJulianDay()
Dcecal.cpp124 + ClockMath::floorDivide(year, 4) // extra day of leap year in ceToJD()
136 c4 = ClockMath::floorDivide(julianDay - jdEpochOffset, 1461, r4); in jdToCE()
Dchnsecal.cpp329 eyear += (int32_t)ClockMath::floorDivide(m, 12.0, m); in handleComputeMonthStart()
505 return ClockMath::floorDivide(millis + (double)(rawOffset + dstOffset), kOneDay); in millisToDays()
508 return ClockMath::floorDivide(millis + (double)CHINA_OFFSET, kOneDay); in millisToDays()
728 int32_t cycle = ClockMath::floorDivide(cycle_year - 1, 60, yearOfCycle); in computeChineseFields()
Dindiancal.cpp112 eyear += ClockMath::floorDivide(month, 12, month); in handleGetMonthLength()
246 eyear += (int32_t)ClockMath::floorDivide(month, 12, month); in handleComputeMonthStart()
Dastro.cpp213 return value - range * ClockMath::floorDivide(value, range); in normalize()
423 double base = (DAY_MS * ClockMath::floorDivide(fTime + fGmtOffset,(double)DAY_MS)) - fGmtOffset; in lstToUT()
754 …double noon = ClockMath::floorDivide(fTime + fGmtOffset, (double)DAY_MS)*DAY_MS - fGmtOffset + (12… in getSunRiseSet()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DPersianCalendar.java311 floorDivide(25 * year + 11, 33, remainder); in isLeapYear()
335 extendedYear += floorDivide(month, 12, rem); in handleGetMonthLength()
369 eyear += floorDivide(month, 12, rem); in handleComputeMonthStart()
373 int julianDay = PERSIAN_EPOCH - 1 + 365 * (eyear - 1) + floorDivide(8 * eyear + 21, 33); in handleComputeMonthStart()
421 year = 1 + (int) floorDivide(33 * daysSinceEpoch + 3, 12053); in handleComputeFields()
423 long farvardin1 = 365 * (year - 1) + floorDivide(8 * year + 21, 33); in handleComputeFields()
DGregorianCalendar.java497 cutoverJulianDay = (int) floorDivide(gregorianCutover, ONE_DAY); in setGregorianChange()
726 extendedYear += floorDivide(month, 12, rem); in handleGetMonthLength()
768 eyear = (int) floorDivide(4*julianEpochDay + 1464, 1461); in handleComputeFields()
771 long january1 = 365*(eyear-1) + floorDivide(eyear-1, 4); in handleComputeFields()
857 eyear += floorDivide(month, 12, rem); in handleComputeMonthStart()
863 int julianDay = 365*y + floorDivide(y, 4) + (JAN_1_1_JULIAN_DAY - 3); in handleComputeMonthStart()
873 julianDay += floorDivide(y, 400) - floorDivide(y, 100) + 2; in handleComputeMonthStart()
DCECalendar.java249 + floorDivide(year, 4) // extra day of leap year in ceToJD()
262 c4 = floorDivide(julianDay - jdEpochOffset, 1461, r4); in jdToCE()
DCalendar.java4958 long days = floorDivide(localMillis, ONE_DAY); in computeFields()
5034 int n400 = floorDivide(gregorianEpochDay, 146097, rem); // 400-year cycle length in computeGregorianFields()
5035 int n100 = floorDivide(rem[0], 36524, rem); // 100-year cycle length in computeGregorianFields()
5036 int n4 = floorDivide(rem[0], 1461, rem); // 4-year cycle length in computeGregorianFields()
5037 int n1 = floorDivide(rem[0], 365, rem); in computeGregorianFields()
5938 year += floorDivide(month, 12, rem);
5947 int julianDay = 365*y + floorDivide(y, 4) - floorDivide(y, 100) +
5948 floorDivide(y, 400) + JAN_1_1_JULIAN_DAY - 1;
6145 protected static final long floorDivide(long numerator, long denominator) {
6164 protected static final int floorDivide(int numerator, int denominator) {
[all …]
DChineseCalendar.java682 return (int) floorDivide(millis + zoneAstro.getOffset(millis), ONE_DAY); in millisToDays()
907 int cycle = floorDivide(cycle_year-1, 60, yearOfCycle); in computeChineseFields()
978 eyear += floorDivide(month, 12, rem); in handleComputeMonthStart()
DIndianCalendar.java338 extendedYear += floorDivide(month, 12, remainder); in handleGetMonthLength()
/external/icu/android_icu4j/src/main/java/android/icu/util/
DPersianCalendar.java313 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 = 365 * (year - 1) + floorDivide(8 * year + 21, 33); in handleComputeFields()
DGregorianCalendar.java482 cutoverJulianDay = (int) floorDivide(gregorianCutover, ONE_DAY); in setGregorianChange()
703 extendedYear += floorDivide(month, 12, rem); in handleGetMonthLength()
743 eyear = (int) floorDivide(4*julianEpochDay + 1464, 1461); in handleComputeFields()
746 long january1 = 365*(eyear-1) + floorDivide(eyear-1, 4); in handleComputeFields()
829 eyear += floorDivide(month, 12, rem); in handleComputeMonthStart()
835 int julianDay = 365*y + floorDivide(y, 4) + (JAN_1_1_JULIAN_DAY - 3); in handleComputeMonthStart()
845 julianDay += floorDivide(y, 400) - floorDivide(y, 100) + 2; in handleComputeMonthStart()
DCECalendar.java252 + floorDivide(year, 4) // extra day of leap year in ceToJD()
266 c4 = floorDivide(julianDay - jdEpochOffset, 1461, r4); in jdToCE()
DCalendar.java4795 long days = floorDivide(localMillis, ONE_DAY); in computeFields()
4870 int n400 = floorDivide(gregorianEpochDay, 146097, rem); // 400-year cycle length in computeGregorianFields()
4871 int n100 = floorDivide(rem[0], 36524, rem); // 100-year cycle length in computeGregorianFields()
4872 int n4 = floorDivide(rem[0], 1461, rem); // 4-year cycle length in computeGregorianFields()
4873 int n1 = floorDivide(rem[0], 365, rem); in computeGregorianFields()
5752 year += floorDivide(month, 12, rem);
5761 int julianDay = 365*y + floorDivide(y, 4) - floorDivide(y, 100) +
5762 floorDivide(y, 400) + JAN_1_1_JULIAN_DAY - 1;
5948 protected static final long floorDivide(long numerator, long denominator) {
5966 protected static final int floorDivide(int numerator, int denominator) {
[all …]
DChineseCalendar.java664 return (int) floorDivide(millis + zoneAstro.getOffset(millis), ONE_DAY); in millisToDays()
888 int cycle = floorDivide(cycle_year-1, 60, yearOfCycle); in computeChineseFields()
958 eyear += floorDivide(month, 12, rem); in handleComputeMonthStart()
DIndianCalendar.java312 extendedYear += floorDivide(month, 12, remainder); in handleGetMonthLength()

12