Home
last modified time | relevance | path

Searched refs:unitsptr (Results 1 – 2 of 2) sorted by last modified time

/freebsd/contrib/tzcode/
H A Dlocaltime.c2095 normalize_overflow(int *const tensptr, int *const unitsptr, const int base) in normalize_overflow() argument
2099 tensdelta = (*unitsptr >= 0) ? in normalize_overflow()
2100 (*unitsptr / base) : in normalize_overflow()
2101 (-1 - (-1 - *unitsptr) / base); in normalize_overflow()
2102 *unitsptr -= tensdelta * base; in normalize_overflow()
2107 normalize_overflow32(int_fast32_t *tensptr, int *unitsptr, int base) in normalize_overflow32() argument
2111 tensdelta = (*unitsptr >= 0) ? in normalize_overflow32()
2112 (*unitsptr / base) : in normalize_overflow32()
2113 (-1 - (-1 - *unitsptr) / base); in normalize_overflow32()
2114 *unitsptr -= tensdelta * base; in normalize_overflow32()
/freebsd/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()