Searched refs:unitsptr (Results 1 – 2 of 2) sorted by relevance
116 int * unitsptr, in normalize() argument120 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()
193 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() argument1797 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 …]