Lines Matching defs:size
92 int size() const;
106 static word *alloc_word(std::size_t size);
107 static void free_word(word *array, std::size_t size);
113 inline int scfx_mant::size() const { return m_size; }
116 scfx_mant::alloc(std::size_t size)
119 return alloc_word(size) + (size - 1);
121 return alloc_word(size);
126 scfx_mant::free(word *mant, std::size_t size)
129 free_word(mant - (size - 1), size);
131 free_word(mant, size);
203 scfx_mant::resize_to(int size, int restore)
205 if (size == m_size) {
210 m_array = alloc(m_size = size);
212 word* p = alloc(size);
215 int end = sc_min(size, m_size);
217 for (int i = 0; i < size; i++) {
232 } else { // lsb resized -> align at size - 1
233 for (int i = 0; i < size; i++) {
236 p[-size + 1 + i] = m_array[-m_size + 1 + i];
238 p[size - 1 - i] = m_array[m_size - 1 - i];
242 p[-size + 1 + i] = 0;
244 p[size - 1 - i] = 0;
253 m_size = size;
297 complement(scfx_mant &target, const scfx_mant &source, int size)
299 for (int i = 0; i < size; i++) {
311 for (int i = 0; i < mant.size(); i++) {