Lines Matching defs:const

91     sc_fxval_observer* observer() const;
104 explicit sc_fxval(const char *, sc_fxval_observer* = 0);
105 sc_fxval(const sc_fxval &, sc_fxval_observer* = 0);
106 sc_fxval(const sc_fxval_fast &, sc_fxval_observer* = 0);
107 sc_fxval(const sc_fxnum &, sc_fxval_observer* = 0);
108 sc_fxval(const sc_fxnum_fast &, sc_fxval_observer* = 0);
112 explicit sc_fxval(const sc_int_base &, sc_fxval_observer* = 0);
113 explicit sc_fxval(const sc_uint_base &, sc_fxval_observer* = 0);
114 explicit sc_fxval(const sc_signed &, sc_fxval_observer* = 0);
115 explicit sc_fxval(const sc_unsigned &, sc_fxval_observer* = 0);
120 const scfx_rep *get_rep() const;
124 const sc_fxval operator - () const;
125 const sc_fxval &operator + () const;
128 friend void neg(sc_fxval &, const sc_fxval &);
132 friend const sc_fxval operator op (const sc_fxval &, tp); \
133 friend const sc_fxval operator op (tp, const sc_fxval &);
138 DECL_BIN_OP_T(op, const sc_int_base &) \
139 DECL_BIN_OP_T(op, const sc_uint_base &) \
140 DECL_BIN_OP_T(op, const sc_signed &) \
141 DECL_BIN_OP_T(op, const sc_unsigned &)
144 friend const sc_fxval operator op (const sc_fxval &, const sc_fxval &); \
151 DECL_BIN_OP_T(op, const char *) \
152 DECL_BIN_OP_T(op, const sc_fxval_fast &) \
153 DECL_BIN_OP_T(op, const sc_fxnum_fast &) \
162 friend const sc_fxval operator / (const sc_fxval &, const sc_fxval &);
169 DECL_BIN_OP_T(/, const char *)
170 DECL_BIN_OP_T(/, const sc_fxval_fast &)
171 DECL_BIN_OP_T(/, const sc_fxnum_fast &)
176 DECL_BIN_OP_T(/, const sc_int_base &)
177 DECL_BIN_OP_T(/, const sc_uint_base &)
178 DECL_BIN_OP_T(/, const sc_signed &)
179 DECL_BIN_OP_T(/, const sc_unsigned &)
185 friend const sc_fxval operator << (const sc_fxval &, int);
186 friend const sc_fxval operator >> (const sc_fxval &, int);
190 friend void fnc (sc_fxval &, const sc_fxval &, tp); \
191 friend void fnc (sc_fxval &, tp, const sc_fxval &);
196 DECL_BIN_FNC_T(fnc, const sc_int_base &) \
197 DECL_BIN_FNC_T(fnc, const sc_uint_base &) \
198 DECL_BIN_FNC_T(fnc, const sc_signed &) \
199 DECL_BIN_FNC_T(fnc, const sc_unsigned &)
202 friend void fnc (sc_fxval &, const sc_fxval &, const sc_fxval &); \
209 DECL_BIN_FNC_T(fnc, const char *) \
210 DECL_BIN_FNC_T(fnc, const sc_fxval_fast &) \
211 DECL_BIN_FNC_T(fnc, const sc_fxnum_fast &) \
223 friend void lshift(sc_fxval &, const sc_fxval &, int);
224 friend void rshift(sc_fxval &, const sc_fxval &, int);
228 friend bool operator op (const sc_fxval &, tp); \
229 friend bool operator op (tp, const sc_fxval &);
234 DECL_REL_OP_T(op, const sc_int_base &) \
235 DECL_REL_OP_T(op, const sc_uint_base &) \
236 DECL_REL_OP_T(op, const sc_signed &) \
237 DECL_REL_OP_T(op, const sc_unsigned &)
240 friend bool operator op (const sc_fxval &, const sc_fxval &); \
247 DECL_REL_OP_T(op, const char *) \
248 DECL_REL_OP_T(op, const sc_fxval_fast &) \
249 DECL_REL_OP_T(op, const sc_fxnum_fast &) \
269 DECL_ASN_OP_T(op, const sc_int_base &) \
270 DECL_ASN_OP_T(op, const sc_uint_base &) \
271 DECL_ASN_OP_T(op, const sc_signed &) \
272 DECL_ASN_OP_T(op, const sc_unsigned &)
281 DECL_ASN_OP_T(op, const char *) \
282 DECL_ASN_OP_T(op, const sc_fxval &) \
283 DECL_ASN_OP_T(op, const sc_fxval_fast &) \
284 DECL_ASN_OP_T(op, const sc_fxnum &) \
285 DECL_ASN_OP_T(op, const sc_fxnum_fast &) \
303 const sc_fxval operator ++ (int);
304 const sc_fxval operator -- (int);
310 operator double() const; // necessary evil!
313 short to_short() const;
314 unsigned short to_ushort() const;
315 int to_int() const;
316 unsigned int to_uint() const;
317 long to_long() const;
318 unsigned long to_ulong() const;
319 int64 to_int64() const;
320 uint64 to_uint64() const;
321 float to_float() const;
322 double to_double() const;
325 const std::string to_string() const;
326 const std::string to_string(sc_numrep) const;
327 const std::string to_string(sc_numrep, bool) const;
328 const std::string to_string(sc_fmt) const;
329 const std::string to_string(sc_numrep, sc_fmt) const;
330 const std::string to_string(sc_numrep, bool, sc_fmt) const;
332 const std::string to_dec() const;
333 const std::string to_bin() const;
334 const std::string to_oct() const;
335 const std::string to_hex() const;
338 bool is_neg() const;
339 bool is_zero() const;
340 bool is_nan() const;
341 bool is_inf() const;
342 bool is_normal() const;
344 bool rounding_flag() const;
347 void print(::std::ostream & =::std::cout) const;
349 void dump(::std::ostream & =::std::cout) const;
352 bool get_bit(int) const;
355 sc_fxval_observer *lock_observer() const;
356 void unlock_observer(sc_fxval_observer *) const;
358 void get_type(int &, int &, sc_enc &) const;
360 const sc_fxval quantization(const scfx_params &, bool &) const;
361 const sc_fxval overflow(const scfx_params &, bool &) const;
381 sc_fxval_fast_observer *observer() const;
391 explicit sc_fxval_fast(const char *, sc_fxval_fast_observer * =0);
392 sc_fxval_fast(const sc_fxval &, sc_fxval_fast_observer * =0);
393 sc_fxval_fast(const sc_fxval_fast &, sc_fxval_fast_observer * =0);
394 sc_fxval_fast(const sc_fxnum &, sc_fxval_fast_observer * =0);
395 sc_fxval_fast(const sc_fxnum_fast &, sc_fxval_fast_observer * =0);
399 explicit sc_fxval_fast(const sc_int_base &, sc_fxval_fast_observer * =0);
400 explicit sc_fxval_fast(const sc_uint_base &, sc_fxval_fast_observer * =0);
401 explicit sc_fxval_fast(const sc_signed &, sc_fxval_fast_observer * =0);
402 explicit sc_fxval_fast(const sc_unsigned &, sc_fxval_fast_observer * =0);
407 double get_val() const;
411 const sc_fxval_fast operator - () const;
412 const sc_fxval_fast & operator + () const;
415 friend void neg(sc_fxval_fast &, const sc_fxval_fast &);
419 friend const sc_fxval_fast operator op (const sc_fxval_fast &, tp); \
420 friend const sc_fxval_fast operator op (tp, const sc_fxval_fast &);
425 DECL_BIN_OP_T(op, const sc_int_base &) \
426 DECL_BIN_OP_T(op, const sc_uint_base &) \
427 DECL_BIN_OP_T(op, const sc_signed &) \
428 DECL_BIN_OP_T(op, const sc_unsigned &)
431 friend const sc_fxval_fast operator op (const sc_fxval_fast &, \
432 const sc_fxval_fast &); \
439 DECL_BIN_OP_T(op, const char *) \
447 friend const sc_fxval_fast operator / (const sc_fxval_fast &,
448 const sc_fxval_fast &);
455 DECL_BIN_OP_T(/, const char *)
460 DECL_BIN_OP_T(/, const sc_int_base &) \
461 DECL_BIN_OP_T(/, const sc_uint_base &) \
462 DECL_BIN_OP_T(/, const sc_signed &) \
463 DECL_BIN_OP_T(/, const sc_unsigned &)
469 friend const sc_fxval_fast operator << (const sc_fxval_fast &, int);
470 friend const sc_fxval_fast operator >> (const sc_fxval_fast &, int);
474 friend void fnc (sc_fxval_fast &, const sc_fxval_fast &, tp); \
475 friend void fnc (sc_fxval_fast &, tp, const sc_fxval_fast &);
480 DECL_BIN_FNC_T(fnc, const sc_int_base &) \
481 DECL_BIN_FNC_T(fnc, const sc_uint_base &) \
482 DECL_BIN_FNC_T(fnc, const sc_signed &) \
483 DECL_BIN_FNC_T(fnc, const sc_unsigned &)
486 friend void fnc (sc_fxval_fast &, const sc_fxval_fast &, \
487 const sc_fxval_fast &); \
494 DECL_BIN_FNC_T(fnc, const char *) \
495 DECL_BIN_FNC_T(fnc, const sc_fxval &) \
496 DECL_BIN_FNC_T(fnc, const sc_fxnum &) \
508 friend void lshift(sc_fxval_fast &, const sc_fxval_fast &, int);
509 friend void rshift(sc_fxval_fast &, const sc_fxval_fast &, int);
513 friend bool operator op (const sc_fxval_fast &, tp); \
514 friend bool operator op (tp, const sc_fxval_fast &);
519 DECL_REL_OP_T(op, const sc_int_base &) \
520 DECL_REL_OP_T(op, const sc_uint_base &) \
521 DECL_REL_OP_T(op, const sc_signed &) \
522 DECL_REL_OP_T(op, const sc_unsigned &)
525 friend bool operator op (const sc_fxval_fast &, const sc_fxval_fast &); \
532 DECL_REL_OP_T(op, const char *) \
552 DECL_ASN_OP_T(op, const sc_int_base &) \
553 DECL_ASN_OP_T(op, const sc_uint_base &) \
554 DECL_ASN_OP_T(op, const sc_signed &) \
555 DECL_ASN_OP_T(op, const sc_unsigned &)
564 DECL_ASN_OP_T(op, const char *) \
565 DECL_ASN_OP_T(op, const sc_fxval &) \
566 DECL_ASN_OP_T(op, const sc_fxval_fast &) \
567 DECL_ASN_OP_T(op, const sc_fxnum &) \
568 DECL_ASN_OP_T(op, const sc_fxnum_fast &) \
586 const sc_fxval_fast operator ++ (int);
587 const sc_fxval_fast operator -- (int);
593 operator double() const; // necessary evil!
596 short to_short() const;
597 unsigned short to_ushort() const;
598 int to_int() const;
599 unsigned int to_uint() const;
600 long to_long() const;
601 unsigned long to_ulong() const;
602 int64 to_int64() const;
603 uint64 to_uint64() const;
604 float to_float() const;
605 double to_double() const;
608 const std::string to_string() const;
609 const std::string to_string(sc_numrep) const;
610 const std::string to_string(sc_numrep, bool) const;
611 const std::string to_string(sc_fmt) const;
612 const std::string to_string(sc_numrep, sc_fmt) const;
613 const std::string to_string(sc_numrep, bool, sc_fmt) const;
615 const std::string to_dec() const;
616 const std::string to_bin() const;
617 const std::string to_oct() const;
618 const std::string to_hex() const;
621 bool is_neg() const;
622 bool is_zero() const;
623 bool is_nan() const;
624 bool is_inf() const;
625 bool is_normal() const;
627 bool rounding_flag() const;
630 void print(::std::ostream & =::std::cout) const;
632 void dump(::std::ostream & =::std::cout) const;
635 bool get_bit(int) const;
638 sc_fxval_fast_observer *lock_observer() const;
639 void unlock_observer(sc_fxval_fast_observer *) const;
641 static double from_string(const char *);
659 inline sc_fxval_observer *sc_fxval::observer() const { return m_observer; }
676 inline sc_fxval::sc_fxval(const sc_fxval &a, sc_fxval_observer *observer_) :
704 DEFN_CTOR_T_A(const char *)
705 DEFN_CTOR_T_B(const sc_fxval_fast &)
709 DEFN_CTOR_T_C(const sc_int_base &)
710 DEFN_CTOR_T_C(const sc_uint_base &)
711 DEFN_CTOR_T_A(const sc_signed &)
712 DEFN_CTOR_T_A(const sc_unsigned &)
726 inline const scfx_rep *
727 sc_fxval::get_rep() const
743 inline const sc_fxval
744 sc_fxval::operator - () const
750 inline const sc_fxval &
751 sc_fxval::operator + () const
759 neg(sc_fxval &c, const sc_fxval &a)
769 inline const sc_fxval \
770 operator op (const sc_fxval &a, tp b) \
778 const sc_fxval \
779 operator op (tp a, const sc_fxval &b) \
789 DEFN_BIN_OP_T(op, fnc, const sc_int_base &) \
790 DEFN_BIN_OP_T(op, fnc, const sc_uint_base &) \
791 DEFN_BIN_OP_T(op, fnc, const sc_signed &) \
792 DEFN_BIN_OP_T(op, fnc, const sc_unsigned &)
795 inline const sc_fxval \
796 operator op (const sc_fxval &a, const sc_fxval &b) \
809 DEFN_BIN_OP_T(op, fnc, const char *) \
810 DEFN_BIN_OP_T(op, fnc, const sc_fxval_fast &) \
818 inline const sc_fxval
819 operator / (const sc_fxval &a, const sc_fxval &b)
832 DEFN_BIN_OP_T(/, div, const char *)
833 DEFN_BIN_OP_T(/, div, const sc_fxval_fast &)
838 DEFN_BIN_OP_T(/, div, const sc_int_base &)
839 DEFN_BIN_OP_T(/, div, const sc_uint_base &)
840 DEFN_BIN_OP_T(/, div, const sc_signed &)
841 DEFN_BIN_OP_T(/, div, const sc_unsigned &)
847 inline const sc_fxval
848 operator << (const sc_fxval &a, int b)
854 inline const sc_fxval
855 operator >> (const sc_fxval &a, int b)
864 fnc (sc_fxval &c, const sc_fxval &a, tp b) \
874 fnc (sc_fxval &c, tp a, const sc_fxval &b) \
886 DEFN_BIN_FNC_T(fnc, const sc_int_base &) \
887 DEFN_BIN_FNC_T(fnc, const sc_uint_base &) \
888 DEFN_BIN_FNC_T(fnc, const sc_signed &) \
889 DEFN_BIN_FNC_T(fnc, const sc_unsigned &)
893 fnc(sc_fxval &c, const sc_fxval &a, const sc_fxval &b) \
908 DEFN_BIN_FNC_T(fnc, const char *) \
909 DEFN_BIN_FNC_T(fnc, const sc_fxval_fast &) \
922 lshift(sc_fxval &c, const sc_fxval &a, int b)
931 rshift(sc_fxval &c, const sc_fxval &a, int b)
942 operator op (const sc_fxval &a, tp b) \
951 operator op (tp a, const sc_fxval &b) \
962 DEFN_REL_OP_T(op, ret, const sc_int_base &) \
963 DEFN_REL_OP_T(op, ret, const sc_uint_base &) \
964 DEFN_REL_OP_T(op, ret, const sc_signed &) \
965 DEFN_REL_OP_T(op, ret, const sc_unsigned &)
969 operator op (const sc_fxval &a, const sc_fxval &b) \
983 DEFN_REL_OP_T(op, ret, const char *) \
984 DEFN_REL_OP_T(op, ret, const sc_fxval_fast &) \
1000 sc_fxval::operator = (const sc_fxval &a)
1026 DEFN_ASN_OP_T(const char *)
1027 DEFN_ASN_OP_T(const sc_fxval_fast &)
1031 DEFN_ASN_OP_T(const sc_int_base &)
1032 DEFN_ASN_OP_T(const sc_uint_base &)
1033 DEFN_ASN_OP_T(const sc_signed &)
1034 DEFN_ASN_OP_T(const sc_unsigned &)
1054 DEFN_ASN_OP_T(op, fnc, const sc_int_base &) \
1055 DEFN_ASN_OP_T(op, fnc, const sc_uint_base &) \
1056 DEFN_ASN_OP_T(op, fnc, const sc_signed &) \
1057 DEFN_ASN_OP_T(op, fnc, const sc_unsigned &)
1061 sc_fxval::operator op (const sc_fxval &b) \
1078 DEFN_ASN_OP_T(op, fnc, const char *) \
1079 DEFN_ASN_OP_T(op, fnc, const sc_fxval_fast &) \
1110 inline const sc_fxval
1118 inline const sc_fxval
1141 inline sc_fxval::operator double() const
1149 sc_fxval::to_short() const
1156 sc_fxval::to_ushort() const
1163 sc_fxval::to_int() const
1170 sc_fxval::to_int64() const
1177 sc_fxval::to_uint() const
1184 sc_fxval::to_uint64() const
1191 sc_fxval::to_long() const
1198 sc_fxval::to_ulong() const
1205 sc_fxval::to_float() const
1212 sc_fxval::to_double() const
1220 sc_fxval::is_neg() const
1227 sc_fxval::is_zero() const
1234 sc_fxval::is_nan() const
1241 sc_fxval::is_inf() const
1248 sc_fxval::is_normal() const
1255 sc_fxval::rounding_flag() const
1262 sc_fxval::get_bit(int i) const
1269 sc_fxval::get_type(int &wl, int &iwl, sc_enc &enc) const
1274 inline const sc_fxval
1275 sc_fxval::quantization(const scfx_params &params, bool &q_flag) const
1280 inline const sc_fxval
1281 sc_fxval::overflow(const scfx_params &params, bool &o_flag) const
1287 operator << (::std::ostream &os, const sc_fxval &a)
1309 sc_fxval_fast::observer() const
1323 inline sc_fxval_fast::sc_fxval_fast(const sc_fxval_fast &a,
1353 DEFN_CTOR_T_B(const char *)
1354 DEFN_CTOR_T_C(const sc_fxval &)
1358 DEFN_CTOR_T_C(const sc_int_base &)
1359 DEFN_CTOR_T_C(const sc_uint_base &)
1360 DEFN_CTOR_T_C(const sc_signed &)
1361 DEFN_CTOR_T_C(const sc_unsigned &)
1377 sc_fxval_fast::get_val() const
1392 inline const sc_fxval_fast
1393 sc_fxval_fast::operator - () const
1399 inline const sc_fxval_fast &
1400 sc_fxval_fast::operator + () const
1408 neg(sc_fxval_fast &c, const sc_fxval_fast &a)
1417 inline const sc_fxval_fast \
1418 operator op (const sc_fxval_fast &a, tp b) \
1425 inline const sc_fxval_fast \
1426 operator op (tp a, const sc_fxval_fast &b) \
1436 DEFN_BIN_OP_T(op, const sc_int_base &) \
1437 DEFN_BIN_OP_T(op, const sc_uint_base &) \
1438 DEFN_BIN_OP_T(op, const sc_signed &) \
1439 DEFN_BIN_OP_T(op, const sc_unsigned &)
1442 inline const sc_fxval_fast \
1443 operator op (const sc_fxval_fast &a, const sc_fxval_fast &b) \
1456 DEFN_BIN_OP_T(op, const char *) \
1463 inline const sc_fxval_fast
1464 operator / (const sc_fxval_fast &a, const sc_fxval_fast &b)
1477 DEFN_BIN_OP_T(/, const char *)
1482 DEFN_BIN_OP_T(/, const sc_int_base &)
1483 DEFN_BIN_OP_T(/, const sc_uint_base &)
1484 DEFN_BIN_OP_T(/, const sc_signed &)
1485 DEFN_BIN_OP_T(/, const sc_unsigned &)
1493 inline const sc_fxval_fast
1494 operator << (const sc_fxval_fast &a, int b)
1500 inline const sc_fxval_fast
1501 operator >> (const sc_fxval_fast &a, int b)
1510 fnc (sc_fxval_fast &c, const sc_fxval_fast &a, tp b) \
1519 fnc (sc_fxval_fast &c, tp a, const sc_fxval_fast &b) \
1530 DEFN_BIN_FNC_T(fnc, op, const sc_int_base &) \
1531 DEFN_BIN_FNC_T(fnc, op, const sc_uint_base &) \
1532 DEFN_BIN_FNC_T(fnc, op, const sc_signed &) \
1533 DEFN_BIN_FNC_T(fnc, op, const sc_unsigned &)
1537 fnc (sc_fxval_fast &c, const sc_fxval_fast &a, const sc_fxval_fast &b) \
1551 DEFN_BIN_FNC_T(fnc, op, const char *) \
1564 lshift(sc_fxval_fast &c, const sc_fxval_fast &a, int b)
1572 rshift(sc_fxval_fast &c, const sc_fxval_fast &a, int b)
1582 operator op (const sc_fxval_fast &a, tp b) \
1590 operator op (tp a, const sc_fxval_fast &b) \
1600 DEFN_REL_OP_T(op, const sc_int_base &) \
1601 DEFN_REL_OP_T(op, const sc_uint_base &) \
1602 DEFN_REL_OP_T(op, const sc_signed &) \
1603 DEFN_REL_OP_T(op, const sc_unsigned &)
1607 operator op (const sc_fxval_fast &a, const sc_fxval_fast &b) \
1620 DEFN_REL_OP_T(op, const char *) \
1636 sc_fxval_fast::operator = (const sc_fxval_fast &a)
1662 DEFN_ASN_OP_T(const char *)
1663 DEFN_ASN_OP_T(const sc_fxval &)
1667 DEFN_ASN_OP_T(const sc_int_base &)
1668 DEFN_ASN_OP_T(const sc_uint_base &)
1669 DEFN_ASN_OP_T(const sc_signed &)
1670 DEFN_ASN_OP_T(const sc_unsigned &)
1688 DEFN_ASN_OP_T(op, const sc_int_base &) \
1689 DEFN_ASN_OP_T(op, const sc_uint_base &) \
1690 DEFN_ASN_OP_T(op, const sc_signed &) \
1691 DEFN_ASN_OP_T(op, const sc_unsigned &)
1695 sc_fxval_fast::operator op (const sc_fxval_fast &b) \
1710 DEFN_ASN_OP_T(op, const char *) \
1711 DEFN_ASN_OP_T(op, const sc_fxval &) \
1742 inline const sc_fxval_fast
1753 inline const sc_fxval_fast
1783 inline sc_fxval_fast::operator double() const
1791 sc_fxval_fast::to_short() const
1798 sc_fxval_fast::to_ushort() const
1805 sc_fxval_fast::to_int64() const
1812 sc_fxval_fast::to_int() const
1819 sc_fxval_fast::to_uint() const
1826 sc_fxval_fast::to_uint64() const
1849 sc_fxval_fast::to_long() const
1856 sc_fxval_fast::to_ulong() const
1863 sc_fxval_fast::to_float() const
1870 sc_fxval_fast::to_double() const
1878 sc_fxval_fast::is_neg() const
1886 sc_fxval_fast::is_zero() const
1894 sc_fxval_fast::is_nan() const
1902 sc_fxval_fast::is_inf() const
1910 sc_fxval_fast::is_normal() const
1918 sc_fxval_fast::rounding_flag() const
1925 operator << (::std::ostream &os, const sc_fxval_fast &a)