Home
last modified time | relevance | path

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

/external/icu4c/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()
Dcecal.cpp124 + ClockMath::floorDivide(year, 4) // extra day of leap year in ceToJD()
136 c4 = ClockMath::floorDivide(julianDay - jdEpochOffset, 1461, r4); in jdToCE()
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()
Dislamcal.cpp200 return (year-1)*354 + ClockMath::floorDivide((3+11*year),30); in yearStart()
216 + (year-1)*354 + (int32_t)ClockMath::floorDivide((3+11*year),30); in monthStart()
266 start = (int32_t)ClockMath::floorDivide((origin - HIJRA_MILLIS), (double)kOneDay) + 1; in trueMonthStart()
403 year = (int)ClockMath::floorDivide( (double)(30 * days + 10646) , 10631.0 ); in handleComputeFields()
Dindiancal.cpp113 eyear += ClockMath::floorDivide(month, 12, month); in handleGetMonthLength()
247 eyear += (int32_t)ClockMath::floorDivide(month, 12, month); in handleComputeMonthStart()
Dchnsecal.cpp293 eyear += (int32_t)ClockMath::floorDivide(m, 12.0, m); in handleComputeMonthStart()
448 return ClockMath::floorDivide(millis + CHINA_OFFSET, kOneDay); in millisToDays()
664 int32_t cycle = ClockMath::floorDivide(year - 1, 60, yearOfCycle); in computeChineseFields()
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()
Dolsontz.cpp439 double days = ClockMath::floorDivide(((double)ms), (double)U_MILLIS_PER_DAY, millis); in printTime()
Dcalendar.cpp1315 int32_t days = (int32_t)ClockMath::floorDivide(localMillis, (double)kOneDay); in computeFields()