Lines Matching refs:nb
507 void test_bound_failed(int nb);
510 test_bound(int nb)
512 if (nb > SC_MAX_NBITS) {
513 test_bound_failed(nb);
588 trim(small_type added, int nb, int nd, sc_digit *d)
591 sc_assert((nb > 0) && (nd > 0) && (d != NULL));
593 d[nd - 1] &= one_and_ones(bit_ord(nb - 1) + added);
600 small_type s, int nb, int nd, sc_digit *d)
604 trim(added, nb, nd, d);
625 trim_signed(int nb, int nd, sc_digit *d)
628 sc_assert((nb > 0) && (nd > 0) && (d != NULL));
630 d[nd - 1] &= one_and_ones(bit_ord(nb - 1) + 1);
637 convert_signed_2C_to_SM(int nb, int nd, sc_digit *d)
640 sc_assert((nb > 0) && (nd > 0) && (d != NULL));
645 int xnb = bit_ord(nb - 1) + 1;
670 convert_signed_SM_to_2C_to_SM(small_type s, int nb, int nd, sc_digit *d)
673 return convert_signed_2C_to_SM(nb, nd, d);
679 convert_signed_SM_to_2C_trimmed(small_type s, int nb, int nd, sc_digit *d)
681 convert_SM_to_2C_trimmed(1, s, nb, nd, d);
700 trim_unsigned(int nb, int nd, sc_digit *d)
703 sc_assert((nb > 0) && (nd > 0) && (d != NULL));
706 d[nd - 1] &= one_and_ones(bit_ord(nb - 1));
713 convert_unsigned_2C_to_SM(int nb, int nd, sc_digit *d)
715 trim_unsigned(nb, nd, d);
724 convert_unsigned_SM_to_2C_to_SM(small_type s, int nb, int nd, sc_digit *d)
727 return convert_unsigned_2C_to_SM(nb, nd, d);
733 convert_unsigned_SM_to_2C_trimmed(small_type s, int nb, int nd, sc_digit *d)
735 convert_SM_to_2C_trimmed(0, s, nb, nd, d);