Searched refs:fmt (Results 1 - 25 of 35) sorted by relevance

12

/gem5/src/base/
H A Dcprintf_formats.hh78 _format_char(std::ostream &out, const T &data, Format &fmt) argument
87 _format_integer(std::ostream &out, const T &data, Format &fmt) argument
93 switch (fmt.base) {
107 if (fmt.alternate_form) {
108 if (!fmt.fill_zero)
111 switch (fmt.base) {
114 fmt.width -= 2;
118 fmt.width -= 1;
126 if (fmt.fill_zero)
129 if (fmt
148 _format_float(std::ostream &out, const T &data, Format &fmt) argument
207 _format_string(std::ostream &out, const T &data, Format &fmt) argument
252 format_char(std::ostream &out, const T &data, Format &fmt) argument
256 format_char(std::ostream &out, char data, Format &fmt) argument
260 format_char(std::ostream &out, unsigned char data, Format &fmt) argument
264 format_char(std::ostream &out, signed char data, Format &fmt) argument
268 format_char(std::ostream &out, short data, Format &fmt) argument
272 format_char(std::ostream &out, unsigned short data, Format &fmt) argument
276 format_char(std::ostream &out, int data, Format &fmt) argument
280 format_char(std::ostream &out, unsigned int data, Format &fmt) argument
284 format_char(std::ostream &out, long data, Format &fmt) argument
288 format_char(std::ostream &out, unsigned long data, Format &fmt) argument
292 format_char(std::ostream &out, long long data, Format &fmt) argument
296 format_char(std::ostream &out, unsigned long long data, Format &fmt) argument
304 format_integer(std::ostream &out, const T &data, Format &fmt) argument
307 format_integer(std::ostream &out, char data, Format &fmt) argument
310 format_integer(std::ostream &out, unsigned char data, Format &fmt) argument
313 format_integer(std::ostream &out, signed char data, Format &fmt) argument
321 format_float(std::ostream &out, const T &data, Format &fmt) argument
325 format_float(std::ostream &out, float data, Format &fmt) argument
329 format_float(std::ostream &out, double data, Format &fmt) argument
337 format_string(std::ostream &out, const T &data, Format &fmt) argument
[all...]
H A Dcprintf.cc69 fmt.clear();
124 fmt.format = Format::string;
129 fmt.format = Format::character;
137 fmt.format = Format::integer;
138 fmt.base = Format::hex;
139 fmt.alternate_form = true;
144 fmt.uppercase = true;
147 fmt.base = Format::hex;
148 fmt.format = Format::integer;
153 fmt
[all...]
H A Dcprintf.hh59 Format fmt; member in struct:cp::Print
88 if (fmt.get_width) {
89 fmt.get_width = false;
91 fmt.width = get_number(data);
95 if (fmt.get_precision) {
96 fmt.get_precision = false;
98 fmt.precision = get_number(data);
102 switch (fmt.format) {
104 format_char(stream, data, fmt);
108 format_integer(stream, data, fmt);
[all...]
H A Dtrace.hh60 void dprintf(Tick when, const std::string &name, const char *fmt, argument
67 ccprintf(line, fmt, args...);
/gem5/src/arch/mips/
H A Ddsp.cc61 MipsISA::dspSaturate(uint64_t value, int32_t fmt, int32_t sign, argument
68 if (svalue > (int64_t)FIXED_SMAX[fmt]) {
70 svalue = (int64_t)FIXED_SMAX[fmt];
71 } else if (svalue < (int64_t)FIXED_SMIN[fmt]) {
73 svalue = (int64_t)FIXED_SMIN[fmt];
77 if (svalue > (int64_t)FIXED_UMAX[fmt]) {
79 svalue = FIXED_UMAX[fmt];
80 } else if (svalue < (int64_t)FIXED_UMIN[fmt]) {
82 svalue = FIXED_UMIN[fmt];
91 MipsISA::checkOverflow(uint64_t value, int32_t fmt, int32_ argument
114 signExtend(uint64_t value, int32_t fmt) argument
135 dspAbs(int32_t a, int32_t fmt, uint32_t *dspctl) argument
166 dspAdd(int32_t a, int32_t b, int32_t fmt, int32_t saturate, int32_t sign, uint32_t *dspctl) argument
198 dspAddh(int32_t a, int32_t b, int32_t fmt, int32_t round, int32_t sign) argument
222 dspSub(int32_t a, int32_t b, int32_t fmt, int32_t saturate, int32_t sign, uint32_t *dspctl) argument
253 dspSubh(int32_t a, int32_t b, int32_t fmt, int32_t round, int32_t sign) argument
278 dspShll(int32_t a, uint32_t sa, int32_t fmt, int32_t saturate, int32_t sign, uint32_t *dspctl) argument
307 dspShrl(int32_t a, uint32_t sa, int32_t fmt, int32_t sign) argument
326 dspShra(int32_t a, uint32_t sa, int32_t fmt, int32_t round, int32_t sign, uint32_t *dspctl) argument
350 dspMulq(int32_t a, int32_t b, int32_t fmt, int32_t saturate, int32_t round, uint32_t *dspctl) argument
391 dspMul(int32_t a, int32_t b, int32_t fmt, int32_t saturate, uint32_t *dspctl) argument
628 dspDpa(int64_t dspac, int32_t a, int32_t b, int32_t ac, int32_t fmt, int32_t sign, int32_t mode) argument
656 dspDps(int64_t dspac, int32_t a, int32_t b, int32_t ac, int32_t fmt, int32_t sign, int32_t mode) argument
684 dspMaq(int64_t dspac, int32_t a, int32_t b, int32_t ac, int32_t fmt, int32_t mode, int32_t saturate, uint32_t *dspctl) argument
728 dspMulsa(int64_t dspac, int32_t a, int32_t b, int32_t ac, int32_t fmt) argument
742 dspMulsaq(int64_t dspac, int32_t a, int32_t b, int32_t ac, int32_t fmt, uint32_t *dspctl) argument
771 dspCmp(int32_t a, int32_t b, int32_t fmt, int32_t sign, int32_t op, uint32_t *dspctl) argument
804 dspCmpg(int32_t a, int32_t b, int32_t fmt, int32_t sign, int32_t op) argument
836 dspCmpgd(int32_t a, int32_t b, int32_t fmt, int32_t sign, int32_t op, uint32_t *dspctl) argument
944 dspPrecrq(int32_t a, int32_t b, int32_t fmt, uint32_t *dspctl) argument
969 dspPrecrSra(int32_t a, int32_t b, int32_t sa, int32_t fmt, int32_t round) argument
997 dspPick(int32_t a, int32_t b, int32_t fmt, uint32_t *dspctl) argument
1022 dspPack(int32_t a, int32_t b, int32_t fmt) argument
1041 dspExtr(int64_t dspac, int32_t fmt, int32_t sa, int32_t round, int32_t saturate, uint32_t *dspctl) argument
1128 simdPack(uint64_t *values_ptr, int32_t *reg, int32_t fmt) argument
1140 simdUnpack(int32_t reg, uint64_t *values_ptr, int32_t fmt, int32_t sign) argument
[all...]
H A Ddsp.hh96 // number of values in fmt
134 uint64_t dspSaturate(uint64_t value, int32_t fmt, int32_t sign,
136 uint64_t checkOverflow(uint64_t value, int32_t fmt, int32_t sign,
140 int32_t dspAbs(int32_t a, int32_t fmt, uint32_t *dspctl);
141 int32_t dspAdd(int32_t a, int32_t b, int32_t fmt, int32_t saturate,
143 int32_t dspAddh(int32_t a, int32_t b, int32_t fmt, int32_t round,
145 int32_t dspSub(int32_t a, int32_t b, int32_t fmt, int32_t saturate,
147 int32_t dspSubh(int32_t a, int32_t b, int32_t fmt, int32_t round,
149 int32_t dspShll(int32_t a, uint32_t sa, int32_t fmt, int32_t saturate,
151 int32_t dspShrl(int32_t a, uint32_t sa, int32_t fmt, int32_
[all...]
/gem5/ext/fputils/tests/
H A Dtest_helper.h43 void test_bail(const char *fmt, ...)
46 void test_diag(const char *fmt, ...)
H A Dtest_helper.c62 test_bail(const char *fmt, ...) argument
65 va_start(ap, fmt);
68 vprintf(fmt, ap);
77 test_diag(const char *fmt, ...) argument
80 va_start(ap, fmt);
83 vprintf(fmt, ap);
/gem5/ext/nomali/tests/
H A Dtest_helpers.h37 void test_bail(const char *fmt, ...)
40 void test_diag(const char *fmt, ...)
H A Dtest_helpers.c52 test_bail(const char *fmt, ...) argument
55 va_start(ap, fmt);
58 vprintf(fmt, ap);
67 test_diag(const char *fmt, ...) argument
70 va_start(ap, fmt);
73 vprintf(fmt, ap);
/gem5/src/python/m5/util/
H A D__init__.py60 def panic(fmt, *args):
61 print('panic:', fmt % args, file=sys.stderr)
67 def fatal(fmt, *args):
68 print('fatal:', fmt % args, file=sys.stderr)
74 def warn(fmt, *args):
75 print('warn:', fmt % args, file=sys.stderr)
79 def inform(fmt, *args):
80 print('info:', fmt % args, file=sys.stdout)
/gem5/site_scons/gem5_scons/
H A D__init__.py122 def fmt(files): function in function:Transform.__call__
125 return self.format % (com_pfx, fmt(srcs), fmt(tgts))
/gem5/ext/systemc/src/sysc/datatypes/fx/
H A Dsc_fxval.cpp86 sc_fxval::to_string( sc_fmt fmt ) const
88 return std::string( m_rep->to_string( SC_DEC, -1, fmt ) );
92 sc_fxval::to_string( sc_numrep numrep, sc_fmt fmt ) const
94 return std::string( m_rep->to_string( numrep, -1, fmt ) );
98 sc_fxval::to_string( sc_numrep numrep, bool w_prefix, sc_fmt fmt ) const
100 return std::string( m_rep->to_string( numrep, (w_prefix ? 1 : 0), fmt ) );
190 print_dec( scfx_string& s, scfx_ieee_double id, int w_prefix, sc_fmt fmt )
227 bool zero_digits = ( frac_part == 0.0 && fmt != SC_F );
265 bool zero_digits = ( int_digits == 0 && fmt != SC_F );
302 if( fmt !
314 print_other( scfx_string& s, const scfx_ieee_double& id, sc_numrep numrep, int w_prefix, sc_fmt fmt, const scfx_params* params ) argument
482 to_string( const scfx_ieee_double& id, sc_numrep numrep, int w_prefix, sc_fmt fmt, const scfx_params* params = 0 ) argument
[all...]
H A Dsc_fxdefs.cpp160 to_string( sc_fmt fmt )
162 switch( fmt ) {
H A Dsc_fxnum.cpp282 sc_fxnum::to_string( sc_fmt fmt ) const
284 return std::string( m_rep->to_string( SC_DEC, -1, fmt, &m_params ) );
288 sc_fxnum::to_string( sc_numrep numrep, sc_fmt fmt ) const
290 return std::string( m_rep->to_string( numrep, -1, fmt, &m_params ) );
294 sc_fxnum::to_string( sc_numrep numrep, bool w_prefix, sc_fmt fmt ) const
297 fmt, &m_params ) );
692 sc_fxnum_fast::to_string( sc_fmt fmt ) const
694 return std::string( sc_dt::to_string( m_val, SC_DEC, -1, fmt, &m_params ) );
698 sc_fxnum_fast::to_string( sc_numrep numrep, sc_fmt fmt ) const
700 return std::string( sc_dt::to_string( m_val, numrep, -1, fmt,
[all...]
H A Dsc_fxdefs.h183 operator << ( ::std::ostream& os, sc_fmt fmt )
185 return os << to_string( fmt );
/gem5/src/systemc/dt/fx/
H A Dsc_fxval.cc86 sc_fxval::to_string(sc_fmt fmt) const
88 return std::string(m_rep->to_string(SC_DEC, -1, fmt));
92 sc_fxval::to_string(sc_numrep numrep, sc_fmt fmt) const
94 return std::string(m_rep->to_string(numrep, -1, fmt));
98 sc_fxval::to_string(sc_numrep numrep, bool w_prefix, sc_fmt fmt) const
100 return std::string(m_rep->to_string(numrep, (w_prefix ? 1 : 0), fmt));
183 print_dec(scfx_string &s, scfx_ieee_double id, int w_prefix, sc_fmt fmt) argument
215 bool zero_digits = (frac_part == 0.0 && fmt != SC_F);
248 bool zero_digits = (int_digits == 0 && fmt != SC_F);
281 if (fmt !
290 print_other(scfx_string &s, const scfx_ieee_double &id, sc_numrep numrep, int w_prefix, sc_fmt fmt, const scfx_params *params) argument
444 to_string(const scfx_ieee_double &id, sc_numrep numrep, int w_prefix, sc_fmt fmt, const scfx_params *params=0) argument
[all...]
H A Dsc_fxdefs.cc154 to_string(sc_fmt fmt) argument
156 switch (fmt) {
H A Dsc_fxnum.cc247 sc_fxnum::to_string(sc_fmt fmt) const
249 return std::string(m_rep->to_string(SC_DEC, -1, fmt, &m_params));
253 sc_fxnum::to_string(sc_numrep numrep, sc_fmt fmt) const
255 return std::string(m_rep->to_string(numrep, -1, fmt, &m_params));
259 sc_fxnum::to_string(sc_numrep numrep, bool w_prefix, sc_fmt fmt) const
262 fmt, &m_params));
627 sc_fxnum_fast::to_string(sc_fmt fmt) const
629 return std::string(sc_dt::to_string(m_val, SC_DEC, -1, fmt, &m_params));
633 sc_fxnum_fast::to_string(sc_numrep numrep, sc_fmt fmt) const
635 return std::string(sc_dt::to_string(m_val, numrep, -1, fmt,
[all...]
/gem5/ext/dnet/
H A Dblob.h37 int blob_pack(blob_t *b, const char *fmt, ...);
38 int blob_unpack(blob_t *b, const char *fmt, ...);
/gem5/tests/
H A Ddiff-out282 $fmt = "%10.${digits}f";
285 printf(" %-30s $fmt $fmt $fmt %+7.2f%%\n",
312 $fmt = "%10.${digits}f";
315 printf(" %-30s $fmt $fmt $fmt %+7.2f%%\n",
/gem5/ext/systemc/src/sysc/utils/
H A Dsc_string.h149 // e.g. sc_string_old("a=%d, s is %s").fmt(1).fmt("string")
157 template<class T> sc_string_old& fmt(const T& t) function in class:sc_dt::sc_string_old
174 sc_string_old& fmt(const sc_string_old& s);
/gem5/src/systemc/ext/dt/fx/
H A Dsc_fxdefs.hh173 operator << (::std::ostream &os, sc_fmt fmt) argument
175 return os << to_string(fmt);
/gem5/ext/pybind11/tests/
H A Dtest_numpy_dtypes.py299 fmt = "f4"
301 start = getrefcount(fmt)
302 d = m.dtype_wrapper(fmt)
306 assert getrefcount(fmt) == start
/gem5/src/systemc/tests/systemc/misc/sim_tests/new_prop/new_prop1/
H A Dnew_prop1.cpp124 dont_print(const char* fmt, ...) argument

Completed in 23 milliseconds

12