Lines Matching refs:op

131 #define DECL_BIN_OP_T(op,tp) \
132 friend const sc_fxval operator op (const sc_fxval &, tp); \
133 friend const sc_fxval operator op (tp, const sc_fxval &);
135 #define DECL_BIN_OP_OTHER(op) \
136 DECL_BIN_OP_T(op, int64) \
137 DECL_BIN_OP_T(op, uint64) \
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 &)
143 #define DECL_BIN_OP(op, dummy) \
144 friend const sc_fxval operator op (const sc_fxval &, const sc_fxval &); \
145 DECL_BIN_OP_T(op, int) \
146 DECL_BIN_OP_T(op, unsigned int) \
147 DECL_BIN_OP_T(op, long) \
148 DECL_BIN_OP_T(op, unsigned long) \
149 DECL_BIN_OP_T(op, float) \
150 DECL_BIN_OP_T(op, double) \
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 &) \
154 DECL_BIN_OP_OTHER(op)
227 #define DECL_REL_OP_T(op, tp) \
228 friend bool operator op (const sc_fxval &, tp); \
229 friend bool operator op (tp, const sc_fxval &);
231 #define DECL_REL_OP_OTHER(op) \
232 DECL_REL_OP_T(op, int64) \
233 DECL_REL_OP_T(op, uint64) \
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 &)
239 #define DECL_REL_OP(op) \
240 friend bool operator op (const sc_fxval &, const sc_fxval &); \
241 DECL_REL_OP_T(op, int) \
242 DECL_REL_OP_T(op, unsigned int) \
243 DECL_REL_OP_T(op, long) \
244 DECL_REL_OP_T(op, unsigned long) \
245 DECL_REL_OP_T(op, float) \
246 DECL_REL_OP_T(op, double) \
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 &) \
250 DECL_REL_OP_OTHER(op)
264 #define DECL_ASN_OP_T(op, tp) sc_fxval &operator op(tp);
266 #define DECL_ASN_OP_OTHER(op) \
267 DECL_ASN_OP_T(op, int64) \
268 DECL_ASN_OP_T(op, uint64) \
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 &)
274 #define DECL_ASN_OP(op) \
275 DECL_ASN_OP_T(op, int) \
276 DECL_ASN_OP_T(op, unsigned int) \
277 DECL_ASN_OP_T(op, long) \
278 DECL_ASN_OP_T(op, unsigned long) \
279 DECL_ASN_OP_T(op, float) \
280 DECL_ASN_OP_T(op, double) \
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 &) \
286 DECL_ASN_OP_OTHER(op)
418 #define DECL_BIN_OP_T(op, tp) \
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 &);
422 #define DECL_BIN_OP_OTHER(op) \
423 DECL_BIN_OP_T(op, int64) \
424 DECL_BIN_OP_T(op, uint64) \
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 &)
430 #define DECL_BIN_OP(op, dummy) \
431 friend const sc_fxval_fast operator op (const sc_fxval_fast &, \
433 DECL_BIN_OP_T(op, int) \
434 DECL_BIN_OP_T(op, unsigned int) \
435 DECL_BIN_OP_T(op, long) \
436 DECL_BIN_OP_T(op, unsigned long) \
437 DECL_BIN_OP_T(op, float) \
438 DECL_BIN_OP_T(op, double) \
439 DECL_BIN_OP_T(op, const char *) \
440 DECL_BIN_OP_OTHER(op)
512 #define DECL_REL_OP_T(op, tp) \
513 friend bool operator op (const sc_fxval_fast &, tp); \
514 friend bool operator op (tp, const sc_fxval_fast &);
516 #define DECL_REL_OP_OTHER(op) \
517 DECL_REL_OP_T(op, int64) \
518 DECL_REL_OP_T(op, uint64) \
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 &)
524 #define DECL_REL_OP(op) \
525 friend bool operator op (const sc_fxval_fast &, const sc_fxval_fast &); \
526 DECL_REL_OP_T(op, int) \
527 DECL_REL_OP_T(op, unsigned int) \
528 DECL_REL_OP_T(op, long) \
529 DECL_REL_OP_T(op, unsigned long) \
530 DECL_REL_OP_T(op, float) \
531 DECL_REL_OP_T(op, double) \
532 DECL_REL_OP_T(op, const char *) \
533 DECL_REL_OP_OTHER(op)
547 #define DECL_ASN_OP_T(op, tp) sc_fxval_fast &operator op(tp);
549 #define DECL_ASN_OP_OTHER(op) \
550 DECL_ASN_OP_T(op, int64) \
551 DECL_ASN_OP_T(op, uint64) \
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 &)
557 #define DECL_ASN_OP(op) \
558 DECL_ASN_OP_T(op, int) \
559 DECL_ASN_OP_T(op, unsigned int) \
560 DECL_ASN_OP_T(op, long) \
561 DECL_ASN_OP_T(op, unsigned long) \
562 DECL_ASN_OP_T(op, float) \
563 DECL_ASN_OP_T(op, double) \
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 &) \
569 DECL_ASN_OP_OTHER(op)
768 #define DEFN_BIN_OP_T(op, fnc, tp) \
770 operator op (const sc_fxval &a, tp b) \
779 operator op (tp a, const sc_fxval &b) \
786 #define DEFN_BIN_OP_OTHER(op, fnc) \
787 DEFN_BIN_OP_T(op, fnc, int64) \
788 DEFN_BIN_OP_T(op, fnc, uint64) \
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 &)
794 #define DEFN_BIN_OP(op, fnc) \
796 operator op (const sc_fxval &a, const sc_fxval &b) \
803 DEFN_BIN_OP_T(op, fnc, int) \
804 DEFN_BIN_OP_T(op, fnc, unsigned int) \
805 DEFN_BIN_OP_T(op, fnc, long) \
806 DEFN_BIN_OP_T(op, fnc, unsigned long) \
807 DEFN_BIN_OP_T(op, fnc, float) \
808 DEFN_BIN_OP_T(op, fnc, double) \
809 DEFN_BIN_OP_T(op, fnc, const char *) \
810 DEFN_BIN_OP_T(op, fnc, const sc_fxval_fast &) \
811 DEFN_BIN_OP_OTHER(op, fnc)
940 #define DEFN_REL_OP_T(op, ret, tp) \
942 operator op (const sc_fxval &a, tp b) \
951 operator op (tp a, const sc_fxval &b) \
959 #define DEFN_REL_OP_OTHER(op, ret) \
960 DEFN_REL_OP_T(op, ret, int64) \
961 DEFN_REL_OP_T(op, ret, uint64) \
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 &)
967 #define DEFN_REL_OP(op, ret) \
969 operator op (const sc_fxval &a, const sc_fxval &b) \
977 DEFN_REL_OP_T(op, ret, int) \
978 DEFN_REL_OP_T(op, ret, unsigned int) \
979 DEFN_REL_OP_T(op, ret, long) \
980 DEFN_REL_OP_T(op, ret, unsigned long) \
981 DEFN_REL_OP_T(op, ret, float) \
982 DEFN_REL_OP_T(op, ret, double) \
983 DEFN_REL_OP_T(op, ret, const char *) \
984 DEFN_REL_OP_T(op, ret, const sc_fxval_fast &) \
985 DEFN_REL_OP_OTHER(op, ret)
1038 #define DEFN_ASN_OP_T(op, fnc, tp) \
1040 sc_fxval::operator op (tp b) \
1051 #define DEFN_ASN_OP_OTHER(op, fnc) \
1052 DEFN_ASN_OP_T(op, fnc, int64) \
1053 DEFN_ASN_OP_T(op, fnc, uint64) \
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 &)
1059 #define DEFN_ASN_OP(op, fnc) \
1061 sc_fxval::operator op (const sc_fxval &b) \
1072 DEFN_ASN_OP_T(op, fnc, int) \
1073 DEFN_ASN_OP_T(op, fnc, unsigned int) \
1074 DEFN_ASN_OP_T(op, fnc, long) \
1075 DEFN_ASN_OP_T(op, fnc, unsigned long) \
1076 DEFN_ASN_OP_T(op, fnc, float) \
1077 DEFN_ASN_OP_T(op, fnc, double) \
1078 DEFN_ASN_OP_T(op, fnc, const char *) \
1079 DEFN_ASN_OP_T(op, fnc, const sc_fxval_fast &) \
1080 DEFN_ASN_OP_OTHER(op, fnc)
1416 #define DEFN_BIN_OP_T(op, tp) \
1418 operator op (const sc_fxval_fast &a, tp b) \
1422 return sc_fxval_fast(a.m_val op tmp.m_val); \
1426 operator op (tp a, const sc_fxval_fast &b) \
1430 return sc_fxval_fast(tmp.m_val op b.m_val); \
1433 #define DEFN_BIN_OP_OTHER(op) \
1434 DEFN_BIN_OP_T(op, int64) \
1435 DEFN_BIN_OP_T(op, uint64) \
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 &)
1441 #define DEFN_BIN_OP(op, dummy) \
1443 operator op (const sc_fxval_fast &a, const sc_fxval_fast &b) \
1447 return sc_fxval_fast(a.m_val op b.m_val); \
1450 DEFN_BIN_OP_T(op, int) \
1451 DEFN_BIN_OP_T(op, unsigned int) \
1452 DEFN_BIN_OP_T(op, long) \
1453 DEFN_BIN_OP_T(op, unsigned long) \
1454 DEFN_BIN_OP_T(op, float) \
1455 DEFN_BIN_OP_T(op, double) \
1456 DEFN_BIN_OP_T(op, const char *) \
1457 DEFN_BIN_OP_OTHER(op)
1508 #define DEFN_BIN_FNC_T(fnc, op, tp) \
1514 c.m_val = a.m_val op tmp.m_val; \
1523 c.m_val = tmp.m_val op b.m_val; \
1527 #define DEFN_BIN_FNC_OTHER(fnc, op) \
1528 DEFN_BIN_FNC_T(fnc, op, int64) \
1529 DEFN_BIN_FNC_T(fnc, op, uint64) \
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 &)
1535 #define DEFN_BIN_FNC(fnc, op) \
1541 c.m_val = a.m_val op b.m_val; \
1545 DEFN_BIN_FNC_T(fnc, op, int) \
1546 DEFN_BIN_FNC_T(fnc, op, unsigned int) \
1547 DEFN_BIN_FNC_T(fnc, op, long) \
1548 DEFN_BIN_FNC_T(fnc, op, unsigned long) \
1549 DEFN_BIN_FNC_T(fnc, op, float) \
1550 DEFN_BIN_FNC_T(fnc, op, double) \
1551 DEFN_BIN_FNC_T(fnc, op, const char *) \
1552 DEFN_BIN_FNC_OTHER(fnc, op)
1580 #define DEFN_REL_OP_T(op, tp) \
1582 operator op (const sc_fxval_fast &a, tp b) \
1586 return (a.m_val op tmp.m_val); \
1590 operator op (tp a, const sc_fxval_fast &b) \
1594 return (tmp.m_val op b.m_val); \
1597 #define DEFN_REL_OP_OTHER(op) \
1598 DEFN_REL_OP_T(op, int64) \
1599 DEFN_REL_OP_T(op, uint64) \
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 &)
1605 #define DEFN_REL_OP(op) \
1607 operator op (const sc_fxval_fast &a, const sc_fxval_fast &b) \
1611 return (a.m_val op b.m_val); \
1614 DEFN_REL_OP_T(op, int) \
1615 DEFN_REL_OP_T(op, unsigned int) \
1616 DEFN_REL_OP_T(op, long) \
1617 DEFN_REL_OP_T(op, unsigned long) \
1618 DEFN_REL_OP_T(op, float) \
1619 DEFN_REL_OP_T(op, double) \
1620 DEFN_REL_OP_T(op, const char *) \
1621 DEFN_REL_OP_OTHER(op)
1674 #define DEFN_ASN_OP_T(op, tp) \
1676 sc_fxval_fast::operator op (tp b) \
1680 m_val op tmp.m_val; \
1685 #define DEFN_ASN_OP_OTHER(op) \
1686 DEFN_ASN_OP_T(op, int64) \
1687 DEFN_ASN_OP_T(op, uint64) \
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 &)
1693 #define DEFN_ASN_OP(op) \
1695 sc_fxval_fast::operator op (const sc_fxval_fast &b) \
1699 m_val op b.m_val; \
1704 DEFN_ASN_OP_T(op, int) \
1705 DEFN_ASN_OP_T(op, unsigned int) \
1706 DEFN_ASN_OP_T(op, long) \
1707 DEFN_ASN_OP_T(op, unsigned long) \
1708 DEFN_ASN_OP_T(op, float) \
1709 DEFN_ASN_OP_T(op, double) \
1710 DEFN_ASN_OP_T(op, const char *) \
1711 DEFN_ASN_OP_T(op, const sc_fxval &) \
1712 DEFN_ASN_OP_OTHER(op)