Lines Matching refs:tmp_days

35 	timelib_sll days, remainder, tmp_days;  in timelib_unixtime2gmt()  local
50 tmp_days = days + 1; in timelib_unixtime2gmt()
52 tmp_days = days; in timelib_unixtime2gmt()
55 if (tmp_days > DAYS_PER_LYEAR_PERIOD || tmp_days <= -DAYS_PER_LYEAR_PERIOD) { in timelib_unixtime2gmt()
56 cur_year += YEARS_PER_LYEAR_PERIOD * (tmp_days / DAYS_PER_LYEAR_PERIOD); in timelib_unixtime2gmt()
57 tmp_days -= DAYS_PER_LYEAR_PERIOD * (tmp_days / DAYS_PER_LYEAR_PERIOD); in timelib_unixtime2gmt()
59 TIMELIB_DEBUG(printf("tmp_days=%lld, year=%lld\n", tmp_days, cur_year);); in timelib_unixtime2gmt()
62 while (tmp_days >= DAYS_PER_LYEAR) { in timelib_unixtime2gmt()
65 tmp_days -= DAYS_PER_LYEAR; in timelib_unixtime2gmt()
67 tmp_days -= DAYS_PER_YEAR; in timelib_unixtime2gmt()
69 TIMELIB_DEBUG(printf("tmp_days=%lld, year=%lld\n", tmp_days, cur_year);); in timelib_unixtime2gmt()
72 while (tmp_days <= 0) { in timelib_unixtime2gmt()
75 tmp_days += DAYS_PER_LYEAR; in timelib_unixtime2gmt()
77 tmp_days += DAYS_PER_YEAR; in timelib_unixtime2gmt()
79 TIMELIB_DEBUG(printf("tmp_days=%lld, year=%lld\n", tmp_days, cur_year);); in timelib_unixtime2gmt()
83 TIMELIB_DEBUG(printf("tmp_days=%lld, year=%lld\n", tmp_days, cur_year);); in timelib_unixtime2gmt()
87 tmp_days--; in timelib_unixtime2gmt()
92 if (tmp_days > months[i]) { in timelib_unixtime2gmt()
97 …TIMELIB_DEBUG(printf("A: ts=%lld, year=%lld, month=%lld, day=%lld,", ts, cur_year, i + 1, tmp_days in timelib_unixtime2gmt()
107 tm->d = tmp_days - months[i]; in timelib_unixtime2gmt()