Searched refs:sign (Results 1 - 25 of 33) sorted by relevance

12

/gem5/ext/fputils/
H A Dfpbits.h61 #define BUILD_IFP64(sign, frac, exp) \
62 ((sign) ? FP64_SIGN_BIT : 0) | \
66 #define BUILD_FP64(sign, frac, exp) \
67 { .bits = BUILD_IFP64(sign, frac, exp) }
70 build_fp64(int sign, uint64_t frac, int exp) argument
72 const fp64_t f = BUILD_FP64(sign, frac, exp);
77 #define BUILD_FP80_SE(sign, exp) \
78 ((sign) ? FP80_SIGN_BIT : 0) | \
85 #define BUILD_FP80(sign, frac, exp) \
88 .repr.se = BUILD_FP80_SE(sign, ex
93 build_fp80(int sign, uint64_t frac, int exp) argument
[all...]
H A Dfp80.c151 const int sign = fp80.repr.se & FP80_SIGN_BIT; local
162 return build_fp64(sign, fp64_frac, fp64_exp);
166 return build_fp64(sign, fp64_denormal_frac, 0);
169 return build_fp64(sign, 0, FP64_EXP_SPECIAL);
173 return build_fp64(sign, 0, FP64_EXP_SPECIAL);
/gem5/ext/systemc/src/sysc/datatypes/int/
H A Dsc_int64_io.cpp64 write_uint64(::std::ostream& os, uint64 val, int sign) argument
103 if (sign > 0 && (flags & ::std::ios::showpos))
111 if (sign < 0) len++;
126 if (sign < 0 || show_pos) {
127 if (! os.put(sign < 0 ? '-' : '+'))
159 int sign = 1; local
163 sign = -1;
165 sc_dt::write_uint64(os, abs_n, sign);
H A Dsc_int_base.cpp481 bool sgn = a.sign();
483 // sign extension
H A Dsc_nbutils.h158 // One transition of the FSM to find base and sign of a number.
177 // Find the base and sign of a number in v.
180 get_base_and_sign(const char *v, small_type &base, small_type &sign);
639 // Get u's sign and return its absolute value.
662 // - Return SC_ZERO if either sign is SC_ZERO.
764 // Functions for both signed and unsigned numbers to convert sign-magnitude
783 // Convert an (un)signed number from sign-magnitude representation to
796 // Convert an (un)signed number from sign-magnitude representation to
808 // Functions to convert between sign-magnitude (SM) and 2's complement
825 // sign
[all...]
H A Dsc_uint_base.cpp452 bool sgn = a.sign();
454 // sign extension
/gem5/src/arch/mips/
H A Ddsp.hh134 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,
142 int32_t sign, uint32_t *dspctl);
144 int32_t sign);
146 int32_t sign, uint32_t *dspctl);
148 int32_t sign);
150 int32_t sign, uint32_t *dspctl);
151 int32_t dspShrl(int32_t a, uint32_t sa, int32_t fmt, int32_t sign);
153 int32_t sign, uint32_t *dspctl);
167 int32_t sign, int32_
[all...]
H A Ddsp.cc61 MipsISA::dspSaturate(uint64_t value, int32_t fmt, int32_t sign, argument
66 switch (sign) {
91 MipsISA::checkOverflow(uint64_t value, int32_t fmt, int32_t sign, argument
96 switch (sign)
117 uint64_t sign = uint64_t(1) << (signpos - 1); local
120 if (value & sign)
167 int32_t sign, uint32_t *dspctl)
175 simdUnpack(a, a_values, fmt, sign);
176 simdUnpack(b, b_values, fmt, sign);
181 a_values[i] = dspSaturate(a_values[i] + b_values[i], fmt, sign,
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
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
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
1140 simdUnpack(int32_t reg, uint64_t *values_ptr, int32_t fmt, int32_t sign) argument
[all...]
/gem5/tests/test-progs/asmtest/src/riscv/env/v/
H A Dstring.c98 int sign = 0; local
104 sign = *str == '-';
113 return sign ? -res : res;
/gem5/src/kern/linux/
H A Dprintk.cc88 bool sign = false; local
100 sign = true;
150 if (sign) {
/gem5/ext/systemc/src/sysc/datatypes/fx/
H A Dscfx_utils.h118 int sign = 1; local
127 sign = -1;
134 return sign;
H A Dsc_fxval.cpp431 int sign = ( id2.negative() != 0 ) ? ( 1 << step ) - 1 : 0; local
434 if( sign < 10 )
435 s += static_cast<char>( sign + '0' );
437 s += static_cast<char>( sign + 'a' - 10 );
681 int sign = scfx_parse_sign( s, sign_char ); local
695 return static_cast<double>( scfx_ieee_double::inf( sign ) );
876 return ( sign * ( integer + fraction ) * exp );
H A Dscfx_rep.h300 int m_sign; // sign of value.
313 scfx_rep::set_zero( int sign )
317 m_sign = sign;
331 scfx_rep::set_inf( int sign )
335 m_sign = sign;
617 sc_enc enc, int sign )
641 m_sign = sign;
H A Dscfx_ieee.h410 scfx_ieee_double::inf( int sign )
412 scfx_ieee_double id( sign );
H A Dscfx_rep.cpp293 if( a.sign() )
1168 int sign = ( b.is_neg() ) ? ( 1 << step ) - 1 : 0; local
1171 if( sign < 10 )
1172 s += static_cast<char>( sign + '0' );
1174 s += static_cast<char>( sign + 'a' - 10 );
1935 // compare sign
2160 case SC_WRAP_SM: // sign magnitude wrap-around
2662 o_extend( x, params.enc() ); // sign extension
2701 o_extend( x, params.enc() ); // sign extension
2795 os << "sign
[all...]
/gem5/src/systemc/ext/dt/fx/
H A Dscfx_utils.hh113 int sign = 1; local
119 sign = -1;
126 return sign;
H A Dscfx_rep.hh278 int m_sign; // sign of value.
289 scfx_rep::set_zero(int sign) argument
293 m_sign = sign;
305 scfx_rep::set_inf(int sign) argument
309 m_sign = sign;
525 sc_enc enc, int sign)
549 m_sign = sign;
524 o_set_high(const scfx_index &x, const scfx_index &x2, sc_enc enc, int sign) argument
H A Dscfx_ieee.hh360 scfx_ieee_double::inf(int sign) argument
362 scfx_ieee_double id(sign);
/gem5/src/cpu/pred/
H A Dmultiperspective_perceptron.cc229 (specs[i]->width + (n_sign_bits - 1)); // extra sign bits
337 // get the sign
338 bool sign = local
343 // apply the sign
344 int val = sign ? -weight : weight;
366 MultiperspectivePerceptron::satIncDec(bool taken, bool &sign, int &counter, argument
370 // increment sign/magnitude
371 if (sign) {
374 sign = false; // moved to positive 0
385 // decrement sign/magnitud
422 bool sign = sign_bits[i][hashed_idx][bi.getHPC() % n_sign_bits]; local
472 bool sign = sign_bits[i][hashed_idx][bi.getHPC() % n_sign_bits]; local
505 bool sign = local
523 bool sign = local
[all...]
/gem5/src/systemc/dt/fx/
H A Dsc_fxval.cc399 int sign = (id2.negative() != 0) ? (1 << step) - 1 : 0; local
401 if (sign < 10)
402 s += static_cast<char>(sign + '0');
404 s += static_cast<char>(sign + 'a' - 10);
637 int sign = scfx_parse_sign(s, sign_char); local
650 return static_cast<double>(scfx_ieee_double::inf(sign));
807 return (sign * (integer + fraction) * exp);
H A Dscfx_rep.cc271 if (a.sign()) {
1095 int sign = (b.is_neg()) ? (1 << step) - 1 : 0; local
1097 if (sign < 10)
1098 s += static_cast<char>(sign + '0');
1100 s += static_cast<char>(sign + 'a' - 10);
1763 // compare sign
1964 case SC_WRAP_SM: // sign magnitude wrap-around
2412 o_extend(x, params.enc()); // sign extension
2450 o_extend(x, params.enc()); // sign extension
2540 os << "sign
[all...]
/gem5/src/systemc/ext/dt/bit/
H A Dsc_proxy.hh620 extend_sign_w_(X &x, int wi, bool sign) argument
623 unsigned int sgn = (sign ? ~SC_DIGIT_ZERO : SC_DIGIT_ZERO);
653 // decides what to do there (e.g. sign extension or zero padding).
679 bool sign = a < 0; local
687 x.set_bit(i, sc_logic_value_t(sign));
697 bool sign = a < 0; local
706 x.set_bit(i, sc_logic_value_t(sign));
761 // if formatted, fill the rest with sign(s), otherwise fill with zeros
814 // extend with sign(a)
847 // extend with sign(
[all...]
/gem5/ext/systemc/src/sysc/datatypes/bit/
H A Dsc_proxy.h729 extend_sign_w_( X& x, int wi, bool sign )
732 unsigned int sgn = (sign ? ~SC_DIGIT_ZERO : SC_DIGIT_ZERO);
765 // decides what to do there (e.g. sign extension or zero padding).
792 bool sign = a < 0; local
800 x.set_bit( i, sc_logic_value_t( sign ) );
811 bool sign = a < 0; local
819 x.set_bit( i, sc_logic_value_t( sign ) );
877 // if formatted, fill the rest with sign(s), otherwise fill with zeros
934 // extend with sign(a)
970 // extend with sign(
[all...]
/gem5/src/systemc/dt/int/
H A Dsc_int_base.cc458 bool sgn = a.sign();
460 // sign extension
H A Dsc_uint_base.cc444 bool sgn = a.sign();
446 // sign extension

Completed in 68 milliseconds

12