Lines Matching +full:buck +full:- +full:d

2  * ntp_calendar.h - definitions for the calendar time-of-day routine
13 uint16_t year; /* year (A.D.) */
27 uint16_t year; /* year (A.D.) */
54 * days-of-week
105 #define TIMES60(val) ((((val)<<4) - (val))<<2) /* *(16 - 1) * 4 */
107 #define TIMES7(val) (((val)<<3) - (val)) /* *8 - *1 */
223 * even if months & days are off-scale.
230 * day-of-month) into the RataDie of that day.
237 * day-of-month) into the RataDie of that day.
248 * for regular years and a non-zero value for leap years.
250 * The input is limited to [-2^30, 2^30-1]. If the days exceed this
357 * ISO week-calendar conversions
363 * The input is limited to [-2^30, 2^30-1]. If the weeks exceed this
384 * day-of-week calculations
386 * Given a RataDie and a day-of-week, calculate a RDN that is reater-than,
387 * greater-or equal, closest, less-or-equal or less-than the given RDN
388 * and denotes the given day-of-week
438 * Start day of NTP time as days past 0000-12-31 in the proleptic
439 * Gregorian calendar. (So 0001-01-01 is day number 1; this is the Rata
446 * Start day of the UNIX epoch. This is the Rata Die of 1970-01-01.
451 * Start day of the GPS epoch. This is the Rata Die of 1980-01-06
458 #define NTP_TO_UNIX_DAYS (DAY_UNIX_STARTS - DAY_NTP_STARTS)
463 #define NTP_TO_GPS_DAYS (DAY_GPS_STARTS - DAY_NTP_STARTS)
475 (25 * GREGORIAN_NORMAL_LEAP_CYCLE_DAYS - 1)
495 * This needs (in theory) 2 true divisions -- most compilers check the
505 * true division here -- the (mod 4) and (mod 16) can be done with
531 * sequence should give most bang for the buck.
537 extern uint32_t i32fmod(int32_t x, uint32_t d);
539 extern int32_t ntpcal_expand_century(uint32_t y, uint32_t m, uint32_t d, uint32_t wd);