Lines Matching defs:size
97 int size() const;
112 static word* alloc_word( std::size_t size );
113 static void free_word( word* array, std::size_t size );
122 scfx_mant::size() const
130 scfx_mant::alloc( std::size_t size )
133 return alloc_word( size ) + ( size - 1 );
135 return alloc_word( size );
141 scfx_mant::free( word* mant, std::size_t size )
144 free_word( mant - ( size - 1 ), size );
146 free_word( mant, size );
175 scfx_mant::scfx_mant( std::size_t size )
176 : m_array(0), m_size(size)
178 m_array = alloc( size );
233 scfx_mant::resize_to( int size, int restore )
235 if( size == m_size )
242 m_array = alloc( m_size = size );
246 word* p = alloc( size );
250 int end = sc_min( size, m_size );
253 for( int i = 0; i < size; i ++ )
273 else // lsb resized -> align at size-1
275 for( int i = 0; i < size; i ++ )
280 p[-size+1+i] = m_array[-m_size+1+i];
282 p[size-1-i] = m_array[m_size-1-i];
288 p[-size+1+i] = 0;
290 p[size-1-i] = 0;
299 m_size = size;
348 complement( scfx_mant& target, const scfx_mant& source, int size )
350 for( int i = 0; i < size; i ++ )
365 for( int i = 0; i < mant.size(); i ++ )