Lines Matching defs:size

288 	if( words > size() )
331 if( words > size() )
375 scfx_rep::operator new( std::size_t size )
379 if( size != sizeof( scfx_rep ) )
380 return ::operator new( size );
397 void scfx_rep::operator delete( void* ptr, std::size_t size )
399 if( size != sizeof( scfx_rep ) )
595 if( words > size() )
632 if( words > size() )
674 for ( int i = 0; carry && i < m_mant.size(); i++ )
718 if( words > size() )
763 for( int i = m_msw + 1; i < m_mant.size(); ++ i )
765 complement( m_mant, m_mant, m_mant.size() );
939 int_part.resize_to( int_part.size() - int_part.m_wp, -1 );
946 if( frac_part.m_msw == frac_part.size() - 1 )
947 frac_part.resize_to( frac_part.size() + 1, 1 );
1009 if( frac_part.m_msw == frac_part.size() - 1 )
1010 frac_part.resize_to( frac_part.size() + 1, 1 );
1246 // add two mantissas of the same size
1247 // result has the same size
1253 add_mants( int size, scfx_mant& result,
1271 while( ++ index < size );
1279 sub_mants( int size, scfx_mant& result,
1297 while( ++ index < size );
1338 int len_mant = lhs.size();
1344 // size the result mantissa
1390 // sub two word's of the same size
1391 // result has the same size
1402 int size = b_msw - b_lsw;
1403 int a_index = a_msw - size;
1404 int b_index = b_msw - size;
1420 while( size -- );
1467 int len_mant = lhs.size();
1473 // size the result mantissa
1672 result_index = (result.size() - c) * bits_in_word + msb_res % bits_in_word;
1673 result.m_wp = (result.size() - c) - msb_res / bits_in_word;
1680 // make sure msw( remainder ) < size - 1
1681 if( remainder.m_msw == remainder.size() - 1 )
1682 remainder.resize_to( remainder.size() + 1, 1 );
1687 remainder.resize_to( remainder.size() + msw_diff, -1 );
1746 if( m_msw == size() - 1 &&
1748 resize_to( size() + 1, 1 );
1781 resize_to( size() + 1, -1 );
1960 if( x.wi() >= size() )
2049 if( x.wi() >= size() )
2054 resize_to( size() - x.wi(), -1 );
2095 resize_to( size() - x2.wi(), -1 );
2171 if( x4.wi() >= size() )
2264 if( lhs.m_wp != rhs.m_wp || lhs.size() != rhs.size() )
2277 if( new_wp != lhs.m_wp || len_mant != lhs.size() )
2283 if( new_wp != rhs.m_wp || len_mant != rhs.size() )
2310 if( rhs.m_msw < rhs.size() - 1 && rhs.m_mant[rhs.m_msw + 1 ] != 0 )
2318 int size = sc_min( lhs_size, rhs_size );
2326 i < size && lhs.m_mant[lhs_index] == rhs.m_mant[rhs_index];
2333 if( i == size )
2401 int size = m_mant.size() + 1;
2403 scfx_mant mant8( size );
2404 scfx_mant mant2( size );
2406 size --;
2408 mant8[size] = (m_mant[size - 1] >> (bits_in_word - 3));
2409 mant2[size] = (m_mant[size - 1] >> (bits_in_word - 1));
2411 while( -- size )
2413 mant8[size] = ( m_mant[size] << 3 ) |
2414 ( m_mant[size - 1] >> ( bits_in_word - 3 ) );
2415 mant2[size] = ( m_mant[size] << 1 ) |
2416 ( m_mant[size - 1] >> ( bits_in_word - 1 ) );
2422 add_mants( m_mant.size(), m_mant, mant8, mant2 );
2425 for( int i = size() - 1; i > 0; i -- )
2561 SC_ASSERT_( !(m_mant[size()-1] >> shift_right),
2564 for( int i = size() - 1; i > 0; i -- )
2590 for( int i = 0; i < size() - 1; i ++ )
2595 m_mant[size()-1] >>= shift_right;
2614 if( x.wi() >= size() )
2644 if( x.wi() >= size() )
2653 resize_to( size() - x.wi(), -1 );
2686 if( x.wi() >= size() )
2787 for( int i = size() - 1; i >= 0; i -- )