Lines Matching defs:numrep

74 sc_fxval::to_string(sc_numrep numrep) const
76 return std::string(m_rep->to_string(numrep, -1, SC_E));
80 sc_fxval::to_string(sc_numrep numrep, bool w_prefix) const
82 return std::string(m_rep->to_string(numrep, (w_prefix ? 1 : 0), SC_E));
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));
290 print_other(scfx_string &s, const scfx_ieee_double &id, sc_numrep numrep,
295 sc_numrep numrep2 = numrep;
297 bool numrep_is_sm = (numrep == SC_BIN_SM ||
298 numrep == SC_OCT_SM ||
299 numrep == SC_HEX_SM);
306 switch (numrep) {
322 scfx_print_prefix(s, numrep);
325 numrep = numrep2;
336 (numrep == SC_BIN_US ||
337 numrep == SC_OCT_US ||
338 numrep == SC_HEX_US) &&
343 (numrep == SC_BIN ||
344 numrep == SC_OCT ||
345 numrep == SC_HEX ||
346 numrep == SC_CSD)) {
358 if (numrep == SC_BIN_US ||
359 numrep == SC_OCT_US ||
360 numrep == SC_HEX_US) {
372 switch (numrep) {
439 if (numrep == SC_CSD)
444 to_string(const scfx_ieee_double &id, sc_numrep numrep, int w_prefix,
456 (numrep == SC_BIN_US ||
457 numrep == SC_OCT_US ||
458 numrep == SC_HEX_US)) {
460 } else if (numrep == SC_DEC) {
463 sc_dt::print_other(s, id, numrep, w_prefix, fmt, params);
478 sc_fxval_fast::to_string(sc_numrep numrep) const
480 return std::string(sc_dt::to_string(m_val, numrep, -1, SC_E));
484 sc_fxval_fast::to_string(sc_numrep numrep, bool w_prefix) const
486 return std::string(sc_dt::to_string(m_val, numrep, (w_prefix ? 1 : 0),
497 sc_fxval_fast::to_string(sc_numrep numrep, sc_fmt fmt) const
499 return std::string(sc_dt::to_string(m_val, numrep, -1, fmt));
503 sc_fxval_fast::to_string(sc_numrep numrep, bool w_prefix, sc_fmt fmt) const
505 return std::string(sc_dt::to_string(m_val, numrep, (w_prefix ? 1 : 0),
639 sc_numrep numrep = scfx_parse_prefix(s);
643 switch (numrep) {
696 numrep = SC_BIN;
719 SCFX_FAIL_IF_(!scfx_is_digit(*end, numrep));
751 integer = scfx_to_digit(*s, numrep);
752 switch (numrep) {
767 integer += scfx_to_digit(*s, numrep);
783 fraction = scfx_to_digit(*s, numrep);
784 switch (numrep) {
799 fraction += scfx_to_digit(*s, numrep) * scale;