47 #ifndef SCFX_OTHER_DEFS_H 48 #define SCFX_OTHER_DEFS_H 77 "sc_signed::operator = ( const sc_fxval& )" );
81 for(
int i = 0; i <
length(); ++ i )
82 (*
this)[i] = v.get_bit( i );
94 "sc_signed::operator = ( const sc_fxval_fast& )" );
98 for(
int i = 0; i <
length(); ++ i )
99 (*
this)[i] = v.get_bit( i );
108 if( ! v.is_normal() )
111 "sc_signed::operator = ( const sc_fxnum& )" );
115 for(
int i = 0; i <
length(); ++ i )
116 (*
this)[i] = v.get_bit( i );
125 if( ! v.is_normal() )
128 "sc_signed::operator = ( const sc_fxnum_fast& )" );
132 for(
int i = 0; i <
length(); ++ i )
133 (*
this)[i] = v.get_bit( i );
149 if( ! v.is_normal() )
152 "sc_unsigned::operator = ( const sc_fxval& )" );
156 for(
int i = 0; i <
length(); ++ i )
157 (*
this)[i] = v.get_bit( i );
166 if( ! v.is_normal() )
169 "sc_unsigned::operator = ( const sc_fxval_fast& )" );
173 for(
int i = 0; i <
length(); ++ i )
174 (*
this)[i] = v.get_bit( i );
183 if( ! v.is_normal() )
186 "sc_unsigned::operator = ( const sc_fxnum& )" );
190 for(
int i = 0; i <
length(); ++ i )
191 (*
this)[i] = v.get_bit( i );
200 if( ! v.is_normal() )
203 "sc_unsigned::operator = ( const sc_fxnum_fast& )" );
207 for(
int i = 0; i <
length(); ++ i )
208 (*
this)[i] = v.get_bit( i );
224 if( ! v.is_normal() ) {
226 "sc_int_base::operator = ( const sc_fxval& )" );
229 for(
int i = 0; i < m_len; ++ i ) {
230 set( i, v.get_bit( i ) );
240 if( ! v.is_normal() ) {
242 "sc_int_base::operator = ( const sc_fxval_fast& )" );
245 for(
int i = 0; i < m_len; ++ i ) {
246 set( i, v.get_bit( i ) );
256 if( ! v.is_normal() ) {
258 "sc_int_base::operator = ( const sc_fxnum& )" );
261 for(
int i = 0; i < m_len; ++ i ) {
262 set( i, v.get_bit( i ) );
272 if( ! v.is_normal() ) {
274 "sc_int_base::operator = ( const sc_fxnum_fast& )" );
277 for(
int i = 0; i < m_len; ++ i ) {
278 set( i, v.get_bit( i ) );
295 if( ! v.is_normal() ) {
297 "sc_uint_base::operator = ( const sc_fxval& )" );
300 for(
int i = 0; i < m_len; ++ i ) {
301 set( i, v.get_bit( i ) );
311 if( ! v.is_normal() ) {
313 "sc_uint_base::operator = ( const sc_fxval_fast& )" );
316 for(
int i = 0; i < m_len; ++ i ) {
317 set( i, v.get_bit( i ) );
327 if( ! v.is_normal() ) {
329 "sc_uint_base::operator = ( const sc_fxnum& )" );
332 for(
int i = 0; i < m_len; ++ i ) {
333 set( i, v.get_bit( i ) );
343 if( ! v.is_normal() ) {
345 "sc_uint_base::operator = ( const sc_fxnum_fast& )" );
348 for(
int i = 0; i < m_len; ++ i ) {
349 set( i, v.get_bit( i ) );
Report ids for the datatypes/fx code.
Arbitrary precision signed arithmetic.
sc_int_base & operator=(int_type v)
sc_uint_base & operator=(uint_type v)
An unsigned integer whose length is less than 64 bits.
Arbitrary precision unsigned arithmetic.
#define SC_REPORT_ERROR(msg_type, msg)
const sc_signed & operator=(const sc_signed &v)
A signed integer whose length is less than 64 bit.
sc_signed(int nb=sc_length_param().len())
const sc_unsigned & operator=(const sc_unsigned &v)