Home
last modified time | relevance | path

Searched refs:unitsptr (Results 1 – 2 of 2) sorted by relevance

/freebsd-12.1/contrib/ntp/libntp/
H A Dmktime.c116 int * unitsptr, in normalize() argument
120 if (*unitsptr >= base) { in normalize()
121 *tensptr += *unitsptr / base; in normalize()
122 *unitsptr %= base; in normalize()
123 } else if (*unitsptr < 0) { in normalize()
125 *unitsptr += base; in normalize()
126 if (*unitsptr < 0) { in normalize()
127 *tensptr -= 1 + (-*unitsptr) / base; in normalize()
128 *unitsptr = base - (-*unitsptr) % base; in normalize()
/freebsd-12.1/contrib/tzcode/stdtime/
H A Dlocaltime.c193 int * unitsptr, int base);
194 static int normalize_overflow(int * tensptr, int * unitsptr,
1793 normalize_overflow(int *const tensptr, int *const unitsptr, const int base) in normalize_overflow() argument
1797 tensdelta = (*unitsptr >= 0) ? in normalize_overflow()
1798 (*unitsptr / base) : in normalize_overflow()
1799 (-1 - (-1 - *unitsptr) / base); in normalize_overflow()
1800 *unitsptr -= tensdelta * base; in normalize_overflow()
1809 tensdelta = (*unitsptr >= 0) ? in long_normalize_overflow()
1810 (*unitsptr / base) : in long_normalize_overflow()
1811 (-1 - (-1 - *unitsptr) / base); in long_normalize_overflow()
[all …]