Lines Matching defs:const

90 void multiply(scfx_rep &, const scfx_rep &, const scfx_rep &,
92 scfx_rep *neg_scfx_rep(const scfx_rep &);
93 scfx_rep *mult_scfx_rep(const scfx_rep &, const scfx_rep &,
95 scfx_rep *div_scfx_rep(const scfx_rep &, const scfx_rep &,
97 scfx_rep *add_scfx_rep(const scfx_rep &, const scfx_rep &,
99 scfx_rep *sub_scfx_rep(const scfx_rep &, const scfx_rep &,
101 scfx_rep *lsh_scfx_rep(const scfx_rep &, int);
102 scfx_rep *rsh_scfx_rep(const scfx_rep &, int);
103 int cmp_scfx_rep(const scfx_rep &, const scfx_rep &);
105 const int min_mant = 4;
107 const int bits_in_int = sizeof(int) * CHAR_BIT;
108 const int bits_in_word = sizeof(word) * CHAR_BIT;
120 int wi() const { return m_wi; }
121 int bi() const { return m_bi; }
154 explicit scfx_rep(const char *);
157 explicit scfx_rep(const sc_signed &);
158 explicit scfx_rep(const sc_unsigned &);
161 scfx_rep(const scfx_rep &);
169 void from_string(const char *, int);
171 double to_double() const;
172 uint64 to_uint64() const;
174 const char *to_string(sc_numrep, int, sc_fmt,
175 const scfx_params * =0) const;
178 void operator = (const scfx_rep &);
180 friend void multiply( scfx_rep&, const scfx_rep&, const scfx_rep&, int );
182 friend scfx_rep *neg_scfx_rep(const scfx_rep &);
183 friend scfx_rep *mult_scfx_rep(const scfx_rep &, const scfx_rep &, int);
184 friend scfx_rep *div_scfx_rep(const scfx_rep &, const scfx_rep &, int);
185 friend scfx_rep *add_scfx_rep(const scfx_rep &, const scfx_rep &, int);
186 friend scfx_rep *sub_scfx_rep(const scfx_rep &, const scfx_rep &, int);
187 friend scfx_rep *lsh_scfx_rep(const scfx_rep &, int);
188 friend scfx_rep *rsh_scfx_rep(const scfx_rep &, int);
193 friend int cmp_scfx_rep(const scfx_rep &, const scfx_rep &);
195 void cast(const scfx_params &, bool &, bool &);
197 bool is_neg() const;
198 bool is_zero() const;
199 bool is_nan() const;
200 bool is_inf() const;
201 bool is_normal() const;
207 bool get_bit(int) const;
208 bool set(int, const scfx_params &);
209 bool clear(int, const scfx_params &);
211 bool get_slice(int, int, const scfx_params &, sc_bv_base &) const;
212 bool set_slice(int, int, const scfx_params &, const sc_bv_base &);
214 void print(::std::ostream &) const;
215 void dump(::std::ostream &) const;
217 void get_type(int &, int &, sc_enc &) const;
220 const scfx_rep &, const scfx_params &, bool &);
222 const scfx_rep &, const scfx_params &, bool &);
224 bool rounding_flag() const;
227 friend void align(const scfx_rep &, const scfx_rep &, int &, int &,
229 friend int compare_msw(const scfx_rep &, const scfx_rep &);
230 friend int compare_msw_ff(const scfx_rep &lhs, const scfx_rep &rhs);
232 int find_lsw() const;
233 int find_msw() const;
237 scfx_mant *resize(int, int) const;
244 const scfx_index calc_indices(int) const;
246 void o_extend(const scfx_index &, sc_enc);
247 bool o_bit_at(const scfx_index &) const;
248 bool o_zero_left(const scfx_index &) const;
249 bool o_zero_right(const scfx_index &) const;
250 void o_set_low(const scfx_index &, sc_enc);
251 void o_set_high(const scfx_index &, const scfx_index &, sc_enc, int=1);
252 void o_set(const scfx_index &, const scfx_index &, sc_enc, bool);
253 void o_invert(const scfx_index &);
254 bool q_bit(const scfx_index &) const;
255 void q_clear(const scfx_index &);
256 void q_incr(const scfx_index &);
257 bool q_odd(const scfx_index &) const;
258 bool q_zero(const scfx_index &) const;
261 int size() const;
264 friend void print_dec(scfx_string &, const scfx_rep &, int, sc_fmt);
265 friend void print_other(scfx_string &, const scfx_rep &, sc_numrep, int,
266 sc_fmt, const scfx_params *);
268 void quantization(const scfx_params &, bool &);
269 void overflow(const scfx_params &, bool &);
271 friend int compare_abs(const scfx_rep &, const scfx_rep &);
313 inline scfx_rep::scfx_rep(const char *s) :
325 scfx_rep::operator = (const scfx_rep &f)
339 neg_scfx_rep(const scfx_rep &a)
347 mult_scfx_rep(const scfx_rep &a, const scfx_rep &b, int max_wl)
355 lsh_scfx_rep(const scfx_rep &a, int b)
363 rsh_scfx_rep(const scfx_rep &a, int b)
370 inline int scfx_rep::size() const { return m_mant.size(); }
372 inline bool scfx_rep::is_neg() const { return (m_sign == -1); }
375 scfx_rep::is_zero() const
388 inline bool scfx_rep::is_nan() const { return (m_state == not_a_number); }
390 inline bool scfx_rep::is_inf() const { return (m_state == infinity); }
392 inline bool scfx_rep::is_normal() const { return (m_state == normal); }
395 quantization_scfx_rep(const scfx_rep &a, const scfx_params &params,
404 overflow_scfx_rep(const scfx_rep &a, const scfx_params &params, bool &o_flag)
411 inline bool scfx_rep::rounding_flag() const { return m_r_flag; }
425 inline const scfx_index
426 scfx_rep::calc_indices(int n) const
440 scfx_rep::o_extend(const scfx_index &x, sc_enc enc)
463 scfx_rep::o_bit_at(const scfx_index &x) const
474 scfx_rep::o_zero_left(const scfx_index &x) const
491 scfx_rep::o_zero_right(const scfx_index &x) const
506 scfx_rep::o_set_low(const scfx_index &x, sc_enc enc)
524 scfx_rep::o_set_high(const scfx_index &x, const scfx_index &x2,
557 scfx_rep::o_set(const scfx_index &x, const scfx_index &x3, sc_enc enc,
590 scfx_rep::o_invert(const scfx_index &x2)
601 scfx_rep::q_bit(const scfx_index &x) const
617 scfx_rep::q_clear(const scfx_index &x)
630 scfx_rep::q_incr(const scfx_index &x)
651 scfx_rep::q_odd(const scfx_index &x) const
662 scfx_rep::q_zero(const scfx_index &x) const
687 scfx_rep::find_lsw() const
697 scfx_rep::find_msw() const