Lines Matching refs: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 ) );
314 print_other( scfx_string& s, const scfx_ieee_double& id, sc_numrep numrep,
319 sc_numrep numrep2 = numrep;
321 bool numrep_is_sm = ( numrep == SC_BIN_SM ||
322 numrep == SC_OCT_SM ||
323 numrep == SC_HEX_SM );
332 switch( numrep )
349 scfx_print_prefix( s, numrep );
352 numrep = numrep2;
364 ( numrep == SC_BIN_US ||
365 numrep == SC_OCT_US ||
366 numrep == SC_HEX_US ) &&
371 ( numrep == SC_BIN ||
372 numrep == SC_OCT ||
373 numrep == SC_HEX ||
374 numrep == SC_CSD ) )
390 if( numrep == SC_BIN_US ||
391 numrep == SC_OCT_US ||
392 numrep == SC_HEX_US )
403 switch( numrep )
476 if( numrep == SC_CSD )
482 to_string( const scfx_ieee_double& id, sc_numrep numrep, int w_prefix,
494 ( numrep == SC_BIN_US ||
495 numrep == SC_OCT_US ||
496 numrep == SC_HEX_US ) )
498 else if( numrep == SC_DEC )
501 sc_dt::print_other( s, id, numrep, w_prefix, fmt, params );
516 sc_fxval_fast::to_string( sc_numrep numrep ) const
518 return std::string( sc_dt::to_string( m_val, numrep, -1, SC_E ) );
522 sc_fxval_fast::to_string( sc_numrep numrep, bool w_prefix ) const
524 return std::string( sc_dt::to_string( m_val, numrep, (w_prefix ? 1 : 0),
535 sc_fxval_fast::to_string( sc_numrep numrep, sc_fmt fmt ) const
537 return std::string( sc_dt::to_string( m_val, numrep, -1, fmt ) );
541 sc_fxval_fast::to_string( sc_numrep numrep, bool w_prefix, sc_fmt fmt ) const
543 return std::string( sc_dt::to_string( m_val, numrep, (w_prefix ? 1 : 0),
683 sc_numrep numrep = scfx_parse_prefix( s );
687 switch( numrep )
741 numrep = SC_BIN;
768 SCFX_FAIL_IF_( ! scfx_is_digit( *end, numrep ) );
809 integer = scfx_to_digit( *s, numrep );
810 switch( numrep )
828 integer += scfx_to_digit( *s, numrep );
851 fraction = scfx_to_digit( *s, numrep );
852 switch( numrep )
869 fraction += scfx_to_digit( *s, numrep ) * scale;