Lines Matching defs:size

266         if (words > size())
301 if (words > size())
339 scfx_rep::operator new(std::size_t size)
343 if (size != sizeof(scfx_rep))
344 return ::operator new(size);
360 scfx_rep::operator delete(void *ptr, std::size_t size)
362 if (size != sizeof(scfx_rep)) {
542 if (words > size())
579 if (words > size())
619 for (int i = 0; carry && i < m_mant.size(); i++) {
661 if (words > size())
704 for (int i = m_msw + 1; i < m_mant.size(); ++i)
706 complement(m_mant, m_mant, m_mant.size());
887 int_part.resize_to(int_part.size() - int_part.m_wp, -1);
893 if (frac_part.m_msw == frac_part.size() - 1)
894 frac_part.resize_to(frac_part.size() + 1, 1);
948 if (frac_part.m_msw == frac_part.size() - 1)
949 frac_part.resize_to(frac_part.size() + 1, 1);
1169 // add two mantissas of the same size
1170 // result has the same size
1175 add_mants(int size, scfx_mant &result, const scfx_mant &a, const scfx_mant &b)
1190 } while (++index < size);
1196 sub_mants(int size, scfx_mant &result, const scfx_mant &a, const scfx_mant &b)
1211 } while (++index < size);
1246 int len_mant = lhs.size();
1252 // size the result mantissa
1288 // sub two word's of the same size
1289 // result has the same size
1299 int size = b_msw - b_lsw;
1300 int a_index = a_msw - size;
1301 int b_index = b_msw - size;
1315 } while (size--);
1355 int len_mant = lhs.size();
1361 // size the result mantissa
1540 result_index = (result.size() - c) * bits_in_word + msb_res % bits_in_word;
1541 result.m_wp = (result.size() - c) - msb_res / bits_in_word;
1548 // make sure msw(remainder) < size - 1
1549 if (remainder.m_msw == remainder.size() - 1)
1550 remainder.resize_to(remainder.size() + 1, 1);
1555 remainder.resize_to(remainder.size() + msw_diff, -1);
1608 if (m_msw == size() - 1 &&
1610 resize_to(size() + 1, 1);
1640 resize_to(size() + 1, -1);
1786 if (x.wi() >= size())
1867 if (x.wi() >= size())
1871 resize_to(size() - x.wi(), -1);
1906 resize_to(size() - x2.wi(), -1);
1974 if (x4.wi() >= size())
2057 if (lhs.m_wp != rhs.m_wp || lhs.size() != rhs.size()) {
2069 if (new_wp != lhs.m_wp || len_mant != lhs.size()) {
2074 if (new_wp != rhs.m_wp || len_mant != rhs.size()) {
2098 if (rhs.m_msw < rhs.size() - 1 && rhs.m_mant[rhs.m_msw + 1 ] != 0) {
2105 int size = sc_min(lhs_size, rhs_size);
2113 i < size && lhs.m_mant[lhs_index] == rhs.m_mant[rhs_index];
2119 if (i == size) {
2180 int size = m_mant.size() + 1;
2182 scfx_mant mant8(size);
2183 scfx_mant mant2(size);
2185 size--;
2187 mant8[size] = (m_mant[size - 1] >> (bits_in_word - 3));
2188 mant2[size] = (m_mant[size - 1] >> (bits_in_word - 1));
2190 while (--size) {
2191 mant8[size] = (m_mant[size] << 3) |
2192 (m_mant[size - 1] >> (bits_in_word - 3));
2193 mant2[size] = (m_mant[size] << 1) |
2194 (m_mant[size - 1] >> (bits_in_word - 1));
2200 add_mants(m_mant.size(), m_mant, mant8, mant2);
2317 SC_ASSERT_(!(m_mant[size() - 1] >> shift_right),
2320 for (int i = size() - 1; i > 0; i--) {
2344 for (int i = 0; i < size() - 1; i++) {
2348 m_mant[size() - 1] >>= shift_right;
2367 if (x.wi() >= size())
2397 if (x.wi() >= size()) {
2403 resize_to(size() - x.wi(), -1);
2436 if (x.wi() >= size()) {
2532 for (int i = size() - 1; i >= 0; i--) {