Go to the documentation of this file.
15 #define TEST_BIT_T(T_op) \
17 out << #T_op << " " << T_WL << " " << T_IWL << "\n"; \
18 sc_fxtype_context fooc(sc_fxtype_params(T_WL, T_IWL)); \
21 for (i = 0; i < T_WL; ++i) \
29 for (i = 0; i < T_WL; i += 3) \
31 for (i = 0; i < T_WL; ++i) \
41 for (i = 0; i < T_WL; ++i) \
49 for (i = 0; i < T_WL; i += 3) \
51 for (i = 0; i < T_WL; ++i) \
59 out << "a = " << a.to_string(SC_BIN) << "\n"; \
61 out << "a = " << a.to_string(SC_BIN) << "\n"; \
66 TEST_BIT_T(T_FX_FIX); \
67 TEST_BIT_T(T_FX_FIXED); \
68 TEST_BIT_T(T_FX_UFIX); \
69 TEST_BIT_T(T_FX_UFIXED);
72 #define T_FX_UFIX sc_ufix
73 #define T_FX_FIX sc_fix
74 #define T_FX_FIXED sc_fixed<T_WL, T_IWL>
75 #define T_FX_UFIXED sc_ufixed<T_WL, T_IWL>
Generated on Wed Sep 30 2020 14:02:17 for gem5 by doxygen 1.8.17