Lines Matching refs:digit

208     int src_i; // Index to next word to get from digit.
226 (digit[0] << left_shift)) & DIGIT_MASK;
231 dst_p[dst_i] = digit[src_i];
235 dst_p[dst_i] = digit[src_i] & mask;
242 right_word = digit[0];
246 left_word = digit[src_i];
251 left_word = (src_i < ndigits) ? digit[src_i] : 0;
264 right_word = ((digit[0] ^ DIGIT_MASK) + 1) & mask;
274 right_word = (digit[src_i] ^ DIGIT_MASK) + carry;
281 (digit[src_i] ^ DIGIT_MASK) + carry : DIGIT_MASK + carry;
290 right_word = (digit[0] ^ DIGIT_MASK) + carry;
296 left_word = (digit[src_i] ^ DIGIT_MASK) + carry;
303 (digit[src_i] ^ DIGIT_MASK) + carry : carry;
348 result = digit[2];
350 result = (result << BITS_PER_DIGIT) | digit[1];
351 result = (result << BITS_PER_DIGIT) | digit[0];
404 if ((digit[i] & DIGIT_MASK) != DIGIT_MASK)
406 if ((digit[i] & ~(~0U << ((nbits - 1) % BITS_PER_DIGIT))) ==
464 vec_zero(ndigits, digit);
466 from_uint(ndigits, digit, (uint64) v);
477 vec_zero(ndigits, digit);
480 from_uint(ndigits, digit, v);
491 vec_zero(ndigits, digit);
493 from_uint(ndigits, digit, (unsigned long)v);
504 vec_zero(ndigits, digit);
507 from_uint(ndigits, digit, v);
520 digit[i++] = ((sc_digit)std::floor(remainder(v, DIGIT_RADIX))) &
524 vec_zero(i, ndigits, digit);
538 safe_set(i, v.get_bit(i), digit);
541 safe_set(i, 0, digit); // zero-extend
553 safe_set(i, sc_logic(v.get_bit(i)).to_bool(), digit);
556 safe_set(i, 0, digit); // zero-extend
1013 return add_unsigned_friend(u.sgn, u.nbits, u.ndigits, u.digit,
1014 v.sgn, v.nbits, v.ndigits, v.digit);
1030 return add_unsigned_friend(u.sgn, u.nbits, u.ndigits, u.digit,
1048 v.sgn, v.nbits, v.ndigits, v.digit);
1064 return add_unsigned_friend(u.sgn, u.nbits, u.ndigits, u.digit,
1082 v.sgn, v.nbits, v.ndigits, v.digit);
1130 return mul_unsigned_friend(s, u.nbits, u.ndigits, u.digit,
1131 v.nbits, v.ndigits, v.digit);
1146 return mul_unsigned_friend(s, u.nbits, u.ndigits, u.digit,
1163 v.nbits, v.ndigits, v.digit);
1178 return mul_unsigned_friend(s, u.nbits, u.ndigits, u.digit,
1194 v.nbits, v.ndigits, v.digit);
1224 return div_unsigned_friend(s, u.nbits, u.ndigits, u.digit,
1225 v.nbits, v.ndigits, v.digit);
1242 return div_unsigned_friend(s, u.nbits, u.ndigits, u.digit,
1262 v.nbits, v.ndigits, v.digit);
1279 return div_unsigned_friend(s, u.nbits, u.ndigits, u.digit,
1299 v.nbits, v.ndigits, v.digit);
1327 return mod_unsigned_friend(u.sgn, u.nbits, u.ndigits, u.digit,
1328 v.nbits, v.ndigits, v.digit);
1343 return mod_unsigned_friend(u.sgn, u.nbits, u.ndigits, u.digit,
1361 v.nbits, v.ndigits, v.digit);
1376 return mod_unsigned_friend(u.sgn, u.nbits, u.ndigits, u.digit,
1393 v.nbits, v.ndigits, v.digit);
1418 return and_unsigned_friend(u.sgn, u.nbits, u.ndigits, u.digit,
1419 v.sgn, v.nbits, v.ndigits, v.digit);
1432 return and_unsigned_friend(u.sgn, u.nbits, u.ndigits, u.digit,
1447 v.sgn, v.nbits, v.ndigits, v.digit);
1460 return and_unsigned_friend(u.sgn, u.nbits, u.ndigits, u.digit,
1475 v.sgn, v.nbits, v.ndigits, v.digit);
1504 return or_unsigned_friend(u.sgn, u.nbits, u.ndigits, u.digit,
1505 v.sgn, v.nbits, v.ndigits, v.digit);
1521 return or_unsigned_friend(u.sgn, u.nbits, u.ndigits, u.digit,
1539 v.sgn, v.nbits, v.ndigits, v.digit);
1555 return or_unsigned_friend(u.sgn, u.nbits, u.ndigits, u.digit,
1573 v.sgn, v.nbits, v.ndigits, v.digit);
1603 return xor_unsigned_friend(u.sgn, u.nbits, u.ndigits, u.digit,
1604 v.sgn, v.nbits, v.ndigits, v.digit);
1620 return xor_unsigned_friend(u.sgn, u.nbits, u.ndigits, u.digit,
1637 v.sgn, v.nbits, v.ndigits, v.digit);
1653 return xor_unsigned_friend(u.sgn, u.nbits, u.ndigits, u.digit,
1670 v.sgn, v.nbits, v.ndigits, v.digit);
1740 if (compare_unsigned(u.sgn, u.nbits, u.ndigits, u.digit,
1741 v.sgn, v.nbits, v.ndigits, v.digit) != 0) {
1753 if (compare_unsigned(u.sgn, u.nbits, u.ndigits, u.digit,
1754 v.sgn, v.nbits, v.ndigits, v.digit, 0, 1) != 0) {
1766 if (compare_unsigned(u.sgn, u.nbits, u.ndigits, u.digit,
1767 v.sgn, v.nbits, v.ndigits, v.digit, 1, 0) != 0) {
1780 if (compare_unsigned(u.sgn, u.nbits, u.ndigits, u.digit,
1795 v.sgn, v.nbits, v.ndigits, v.digit) != 0) {
1806 if (compare_unsigned(u.sgn, u.nbits, u.ndigits, u.digit,
1818 v.sgn, v.nbits, v.ndigits, v.digit) != 0)
1830 if (compare_unsigned(u.sgn, u.nbits, u.ndigits, u.digit,
1844 v.sgn, v.nbits, v.ndigits, v.digit) != 0)
1854 if (compare_unsigned(u.sgn, u.nbits, u.ndigits, u.digit,
1866 v.sgn, v.nbits, v.ndigits, v.digit) != 0)
1901 if (compare_unsigned(u.sgn, u.nbits, u.ndigits, u.digit,
1902 v.sgn, v.nbits, v.ndigits, v.digit) < 0) {
1914 if (compare_unsigned(u.sgn, u.nbits, u.ndigits, u.digit,
1915 v.sgn, v.nbits, v.ndigits, v.digit, 0, 1) < 0) {
1927 if (compare_unsigned(u.sgn, u.nbits, u.ndigits, u.digit,
1928 v.sgn, v.nbits, v.ndigits, v.digit, 1, 0) < 0) {
1941 if (compare_unsigned(u.sgn, u.nbits, u.ndigits, u.digit,
1956 v.sgn, v.nbits, v.ndigits, v.digit) < 0) {
1967 if (compare_unsigned(u.sgn, u.nbits, u.ndigits, u.digit,
1980 v.sgn, v.nbits, v.ndigits, v.digit) < 0){
1993 if (compare_unsigned(u.sgn, u.nbits, u.ndigits, u.digit,
2008 v.sgn, v.nbits, v.ndigits, v.digit) < 0) {
2019 if (compare_unsigned(u.sgn, u.nbits, u.ndigits, u.digit,
2032 v.sgn, v.nbits, v.ndigits, v.digit) < 0) {
2178 vec_copy(ndigits, d, digit);