Lines Matching refs:op

152 #define DECL_BIN_OP_T(op,tp)                                                  \
153 friend const sc_fxval operator op ( const sc_fxval&, tp ); \
154 friend const sc_fxval operator op ( tp, const sc_fxval& );
157 #define DECL_BIN_OP_OTHER(op) \
158 DECL_BIN_OP_T(op,int64) \
159 DECL_BIN_OP_T(op,uint64) \
160 DECL_BIN_OP_T(op,const sc_int_base&) \
161 DECL_BIN_OP_T(op,const sc_uint_base&) \
162 DECL_BIN_OP_T(op,const sc_signed&) \
163 DECL_BIN_OP_T(op,const sc_unsigned&)
165 #define DECL_BIN_OP_OTHER(op)
168 #define DECL_BIN_OP(op,dummy) \
169 friend const sc_fxval operator op ( const sc_fxval&, const sc_fxval& ); \
170 DECL_BIN_OP_T(op,int) \
171 DECL_BIN_OP_T(op,unsigned int) \
172 DECL_BIN_OP_T(op,long) \
173 DECL_BIN_OP_T(op,unsigned long) \
174 DECL_BIN_OP_T(op,float) \
175 DECL_BIN_OP_T(op,double) \
176 DECL_BIN_OP_T(op,const char*) \
177 DECL_BIN_OP_T(op,const sc_fxval_fast&) \
178 DECL_BIN_OP_T(op,const sc_fxnum_fast&) \
179 DECL_BIN_OP_OTHER(op)
262 #define DECL_REL_OP_T(op,tp) \
263 friend bool operator op ( const sc_fxval&, tp ); \
264 friend bool operator op ( tp, const sc_fxval& );
267 #define DECL_REL_OP_OTHER(op) \
268 DECL_REL_OP_T(op,int64) \
269 DECL_REL_OP_T(op,uint64) \
270 DECL_REL_OP_T(op,const sc_int_base&) \
271 DECL_REL_OP_T(op,const sc_uint_base&) \
272 DECL_REL_OP_T(op,const sc_signed&) \
273 DECL_REL_OP_T(op,const sc_unsigned&)
275 #define DECL_REL_OP_OTHER(op)
278 #define DECL_REL_OP(op) \
279 friend bool operator op ( const sc_fxval&, const sc_fxval& ); \
280 DECL_REL_OP_T(op,int) \
281 DECL_REL_OP_T(op,unsigned int) \
282 DECL_REL_OP_T(op,long) \
283 DECL_REL_OP_T(op,unsigned long) \
284 DECL_REL_OP_T(op,float) \
285 DECL_REL_OP_T(op,double) \
286 DECL_REL_OP_T(op,const char*) \
287 DECL_REL_OP_T(op,const sc_fxval_fast&) \
288 DECL_REL_OP_T(op,const sc_fxnum_fast&) \
289 DECL_REL_OP_OTHER(op)
305 #define DECL_ASN_OP_T(op,tp) \
306 sc_fxval& operator op( tp );
309 #define DECL_ASN_OP_OTHER(op) \
310 DECL_ASN_OP_T(op,int64) \
311 DECL_ASN_OP_T(op,uint64) \
312 DECL_ASN_OP_T(op,const sc_int_base&) \
313 DECL_ASN_OP_T(op,const sc_uint_base&) \
314 DECL_ASN_OP_T(op,const sc_signed&) \
315 DECL_ASN_OP_T(op,const sc_unsigned&)
317 #define DECL_ASN_OP_OTHER(op)
320 #define DECL_ASN_OP(op) \
321 DECL_ASN_OP_T(op,int) \
322 DECL_ASN_OP_T(op,unsigned int) \
323 DECL_ASN_OP_T(op,long) \
324 DECL_ASN_OP_T(op,unsigned long) \
325 DECL_ASN_OP_T(op,float) \
326 DECL_ASN_OP_T(op,double) \
327 DECL_ASN_OP_T(op,const char*) \
328 DECL_ASN_OP_T(op,const sc_fxval&) \
329 DECL_ASN_OP_T(op,const sc_fxval_fast&) \
330 DECL_ASN_OP_T(op,const sc_fxnum&) \
331 DECL_ASN_OP_T(op,const sc_fxnum_fast&) \
332 DECL_ASN_OP_OTHER(op)
491 #define DECL_BIN_OP_T(op,tp) \
492 friend const sc_fxval_fast operator op ( const sc_fxval_fast&, tp ); \
493 friend const sc_fxval_fast operator op ( tp, const sc_fxval_fast& );
496 #define DECL_BIN_OP_OTHER(op) \
497 DECL_BIN_OP_T(op,int64) \
498 DECL_BIN_OP_T(op,uint64) \
499 DECL_BIN_OP_T(op,const sc_int_base&) \
500 DECL_BIN_OP_T(op,const sc_uint_base&) \
501 DECL_BIN_OP_T(op,const sc_signed&) \
502 DECL_BIN_OP_T(op,const sc_unsigned&)
504 #define DECL_BIN_OP_OTHER(op)
507 #define DECL_BIN_OP(op,dummy) \
508 friend const sc_fxval_fast operator op ( const sc_fxval_fast&, \
510 DECL_BIN_OP_T(op,int) \
511 DECL_BIN_OP_T(op,unsigned int) \
512 DECL_BIN_OP_T(op,long) \
513 DECL_BIN_OP_T(op,unsigned long) \
514 DECL_BIN_OP_T(op,float) \
515 DECL_BIN_OP_T(op,double) \
516 DECL_BIN_OP_T(op,const char*) \
517 DECL_BIN_OP_OTHER(op)
598 #define DECL_REL_OP_T(op,tp) \
599 friend bool operator op ( const sc_fxval_fast&, tp ); \
600 friend bool operator op ( tp, const sc_fxval_fast& );
603 #define DECL_REL_OP_OTHER(op) \
604 DECL_REL_OP_T(op,int64) \
605 DECL_REL_OP_T(op,uint64) \
606 DECL_REL_OP_T(op,const sc_int_base&) \
607 DECL_REL_OP_T(op,const sc_uint_base&) \
608 DECL_REL_OP_T(op,const sc_signed&) \
609 DECL_REL_OP_T(op,const sc_unsigned&)
611 #define DECL_REL_OP_OTHER(op)
614 #define DECL_REL_OP(op) \
615 friend bool operator op ( const sc_fxval_fast&, const sc_fxval_fast& ); \
616 DECL_REL_OP_T(op,int) \
617 DECL_REL_OP_T(op,unsigned int) \
618 DECL_REL_OP_T(op,long) \
619 DECL_REL_OP_T(op,unsigned long) \
620 DECL_REL_OP_T(op,float) \
621 DECL_REL_OP_T(op,double) \
622 DECL_REL_OP_T(op,const char*) \
623 DECL_REL_OP_OTHER(op)
639 #define DECL_ASN_OP_T(op,tp) \
640 sc_fxval_fast& operator op( tp );
643 #define DECL_ASN_OP_OTHER(op) \
644 DECL_ASN_OP_T(op,int64) \
645 DECL_ASN_OP_T(op,uint64) \
646 DECL_ASN_OP_T(op,const sc_int_base&) \
647 DECL_ASN_OP_T(op,const sc_uint_base&) \
648 DECL_ASN_OP_T(op,const sc_signed&) \
649 DECL_ASN_OP_T(op,const sc_unsigned&)
651 #define DECL_ASN_OP_OTHER(op)
654 #define DECL_ASN_OP(op) \
655 DECL_ASN_OP_T(op,int) \
656 DECL_ASN_OP_T(op,unsigned int) \
657 DECL_ASN_OP_T(op,long) \
658 DECL_ASN_OP_T(op,unsigned long) \
659 DECL_ASN_OP_T(op,float) \
660 DECL_ASN_OP_T(op,double) \
661 DECL_ASN_OP_T(op,const char*) \
662 DECL_ASN_OP_T(op,const sc_fxval&) \
663 DECL_ASN_OP_T(op,const sc_fxval_fast&) \
664 DECL_ASN_OP_T(op,const sc_fxnum&) \
665 DECL_ASN_OP_T(op,const sc_fxnum_fast&) \
666 DECL_ASN_OP_OTHER(op)
914 #define DEFN_BIN_OP_T(op,fnc,tp) \
917 operator op ( const sc_fxval& a, tp b ) \
926 operator op ( tp a, const sc_fxval& b ) \
934 #define DEFN_BIN_OP_OTHER(op,fnc) \
935 DEFN_BIN_OP_T(op,fnc,int64) \
936 DEFN_BIN_OP_T(op,fnc,uint64) \
937 DEFN_BIN_OP_T(op,fnc,const sc_int_base&) \
938 DEFN_BIN_OP_T(op,fnc,const sc_uint_base&) \
939 DEFN_BIN_OP_T(op,fnc,const sc_signed&) \
940 DEFN_BIN_OP_T(op,fnc,const sc_unsigned&)
942 #define DEFN_BIN_OP_OTHER(op,fnc)
945 #define DEFN_BIN_OP(op,fnc) \
948 operator op ( const sc_fxval& a, const sc_fxval& b ) \
955 DEFN_BIN_OP_T(op,fnc,int) \
956 DEFN_BIN_OP_T(op,fnc,unsigned int) \
957 DEFN_BIN_OP_T(op,fnc,long) \
958 DEFN_BIN_OP_T(op,fnc,unsigned long) \
959 DEFN_BIN_OP_T(op,fnc,float) \
960 DEFN_BIN_OP_T(op,fnc,double) \
961 DEFN_BIN_OP_T(op,fnc,const char*) \
962 DEFN_BIN_OP_T(op,fnc,const sc_fxval_fast&) \
963 DEFN_BIN_OP_OTHER(op,fnc)
1111 #define DEFN_REL_OP_T(op,ret,tp) \
1114 operator op ( const sc_fxval& a, tp b ) \
1124 operator op ( tp a, const sc_fxval& b ) \
1133 #define DEFN_REL_OP_OTHER(op,ret) \
1134 DEFN_REL_OP_T(op,ret,int64) \
1135 DEFN_REL_OP_T(op,ret,uint64) \
1136 DEFN_REL_OP_T(op,ret,const sc_int_base&) \
1137 DEFN_REL_OP_T(op,ret,const sc_uint_base&) \
1138 DEFN_REL_OP_T(op,ret,const sc_signed&) \
1139 DEFN_REL_OP_T(op,ret,const sc_unsigned&)
1141 #define DEFN_REL_OP_OTHER(op,ret)
1144 #define DEFN_REL_OP(op,ret) \
1147 operator op ( const sc_fxval& a, const sc_fxval& b) \
1155 DEFN_REL_OP_T(op,ret,int) \
1156 DEFN_REL_OP_T(op,ret,unsigned int) \
1157 DEFN_REL_OP_T(op,ret,long) \
1158 DEFN_REL_OP_T(op,ret,unsigned long) \
1159 DEFN_REL_OP_T(op,ret,float) \
1160 DEFN_REL_OP_T(op,ret,double) \
1161 DEFN_REL_OP_T(op,ret,const char*) \
1162 DEFN_REL_OP_T(op,ret,const sc_fxval_fast&) \
1163 DEFN_REL_OP_OTHER(op,ret)
1223 #define DEFN_ASN_OP_T(op,fnc,tp) \
1226 sc_fxval::operator op ( tp b ) \
1238 #define DEFN_ASN_OP_OTHER(op,fnc) \
1239 DEFN_ASN_OP_T(op,fnc,int64) \
1240 DEFN_ASN_OP_T(op,fnc,uint64) \
1241 DEFN_ASN_OP_T(op,fnc,const sc_int_base&) \
1242 DEFN_ASN_OP_T(op,fnc,const sc_uint_base&) \
1243 DEFN_ASN_OP_T(op,fnc,const sc_signed&) \
1244 DEFN_ASN_OP_T(op,fnc,const sc_unsigned&)
1246 #define DEFN_ASN_OP_OTHER(op,fnc)
1249 #define DEFN_ASN_OP(op,fnc) \
1252 sc_fxval::operator op ( const sc_fxval& b ) \
1263 DEFN_ASN_OP_T(op,fnc,int) \
1264 DEFN_ASN_OP_T(op,fnc,unsigned int) \
1265 DEFN_ASN_OP_T(op,fnc,long) \
1266 DEFN_ASN_OP_T(op,fnc,unsigned long) \
1267 DEFN_ASN_OP_T(op,fnc,float) \
1268 DEFN_ASN_OP_T(op,fnc,double) \
1269 DEFN_ASN_OP_T(op,fnc,const char*) \
1270 DEFN_ASN_OP_T(op,fnc,const sc_fxval_fast&) \
1271 DEFN_ASN_OP_OTHER(op,fnc)
1675 #define DEFN_BIN_OP_T(op,tp) \
1678 operator op ( const sc_fxval_fast& a, tp b ) \
1682 return sc_fxval_fast( a.m_val op tmp.m_val ); \
1687 operator op ( tp a, const sc_fxval_fast& b ) \
1691 return sc_fxval_fast( tmp.m_val op b.m_val ); \
1695 #define DEFN_BIN_OP_OTHER(op) \
1696 DEFN_BIN_OP_T(op,int64) \
1697 DEFN_BIN_OP_T(op,uint64) \
1698 DEFN_BIN_OP_T(op,const sc_int_base&) \
1699 DEFN_BIN_OP_T(op,const sc_uint_base&) \
1700 DEFN_BIN_OP_T(op,const sc_signed&) \
1701 DEFN_BIN_OP_T(op,const sc_unsigned&)
1703 #define DEFN_BIN_OP_OTHER(op)
1706 #define DEFN_BIN_OP(op,dummy) \
1709 operator op ( const sc_fxval_fast& a, const sc_fxval_fast& b ) \
1713 return sc_fxval_fast( a.m_val op b.m_val ); \
1716 DEFN_BIN_OP_T(op,int) \
1717 DEFN_BIN_OP_T(op,unsigned int) \
1718 DEFN_BIN_OP_T(op,long) \
1719 DEFN_BIN_OP_T(op,unsigned long) \
1720 DEFN_BIN_OP_T(op,float) \
1721 DEFN_BIN_OP_T(op,double) \
1722 DEFN_BIN_OP_T(op,const char*) \
1723 DEFN_BIN_OP_OTHER(op)
1780 #define DEFN_BIN_FNC_T(fnc,op,tp) \
1787 c.m_val = a.m_val op tmp.m_val; \
1797 c.m_val = tmp.m_val op b.m_val; \
1802 #define DEFN_BIN_FNC_OTHER(fnc,op) \
1803 DEFN_BIN_FNC_T(fnc,op,int64) \
1804 DEFN_BIN_FNC_T(fnc,op,uint64) \
1805 DEFN_BIN_FNC_T(fnc,op,const sc_int_base&) \
1806 DEFN_BIN_FNC_T(fnc,op,const sc_uint_base&) \
1807 DEFN_BIN_FNC_T(fnc,op,const sc_signed&) \
1808 DEFN_BIN_FNC_T(fnc,op,const sc_unsigned&)
1810 #define DEFN_BIN_FNC_OTHER(fnc,op)
1813 #define DEFN_BIN_FNC(fnc,op) \
1820 c.m_val = a.m_val op b.m_val; \
1824 DEFN_BIN_FNC_T(fnc,op,int) \
1825 DEFN_BIN_FNC_T(fnc,op,unsigned int) \
1826 DEFN_BIN_FNC_T(fnc,op,long) \
1827 DEFN_BIN_FNC_T(fnc,op,unsigned long) \
1828 DEFN_BIN_FNC_T(fnc,op,float) \
1829 DEFN_BIN_FNC_T(fnc,op,double) \
1830 DEFN_BIN_FNC_T(fnc,op,const char*) \
1831 DEFN_BIN_FNC_OTHER(fnc,op)
1864 #define DEFN_REL_OP_T(op,tp) \
1867 operator op ( const sc_fxval_fast& a, tp b ) \
1871 return ( a.m_val op tmp.m_val ); \
1876 operator op ( tp a, const sc_fxval_fast& b ) \
1880 return ( tmp.m_val op b.m_val ); \
1884 #define DEFN_REL_OP_OTHER(op) \
1885 DEFN_REL_OP_T(op,int64) \
1886 DEFN_REL_OP_T(op,uint64) \
1887 DEFN_REL_OP_T(op,const sc_int_base&) \
1888 DEFN_REL_OP_T(op,const sc_uint_base&) \
1889 DEFN_REL_OP_T(op,const sc_signed&) \
1890 DEFN_REL_OP_T(op,const sc_unsigned&)
1892 #define DEFN_REL_OP_OTHER(op)
1895 #define DEFN_REL_OP(op) \
1898 operator op ( const sc_fxval_fast& a, const sc_fxval_fast& b ) \
1902 return ( a.m_val op b.m_val ); \
1905 DEFN_REL_OP_T(op,int) \
1906 DEFN_REL_OP_T(op,unsigned int) \
1907 DEFN_REL_OP_T(op,long) \
1908 DEFN_REL_OP_T(op,unsigned long) \
1909 DEFN_REL_OP_T(op,float) \
1910 DEFN_REL_OP_T(op,double) \
1911 DEFN_REL_OP_T(op,const char*) \
1912 DEFN_REL_OP_OTHER(op)
1972 #define DEFN_ASN_OP_T(op,tp) \
1975 sc_fxval_fast::operator op ( tp b ) \
1979 m_val op tmp.m_val; \
1985 #define DEFN_ASN_OP_OTHER(op) \
1986 DEFN_ASN_OP_T(op,int64) \
1987 DEFN_ASN_OP_T(op,uint64) \
1988 DEFN_ASN_OP_T(op,const sc_int_base&) \
1989 DEFN_ASN_OP_T(op,const sc_uint_base&) \
1990 DEFN_ASN_OP_T(op,const sc_signed&) \
1991 DEFN_ASN_OP_T(op,const sc_unsigned&)
1993 #define DEFN_ASN_OP_OTHER(op)
1996 #define DEFN_ASN_OP(op) \
1999 sc_fxval_fast::operator op ( const sc_fxval_fast& b ) \
2003 m_val op b.m_val; \
2008 DEFN_ASN_OP_T(op,int) \
2009 DEFN_ASN_OP_T(op,unsigned int) \
2010 DEFN_ASN_OP_T(op,long) \
2011 DEFN_ASN_OP_T(op,unsigned long) \
2012 DEFN_ASN_OP_T(op,float) \
2013 DEFN_ASN_OP_T(op,double) \
2014 DEFN_ASN_OP_T(op,const char*) \
2015 DEFN_ASN_OP_T(op,const sc_fxval&) \
2016 DEFN_ASN_OP_OTHER(op)