Searched refs:exp (Results 1 - 25 of 28) sorted by relevance

12

/gem5/src/gpu-compute/
H A Dmisc.hh101 uint32_t exp = (ai >> 23) & 0xff; local
104 if (exp == 0 || exp <= 0x70) {
105 exp = 0;
107 } else if (exp == 0xff) {
108 exp = 0x1f;
109 } else if (exp >= 0x8f) {
110 exp = 0x1f;
113 exp = exp
127 uint32_t exp = (val >> 10) & 0x1f; local
[all...]
/gem5/ext/fputils/
H A Dfpbits.h61 #define BUILD_IFP64(sign, frac, exp) \
63 (((uint64_t)(exp) << FP64_EXP_SHIFT) & FP64_EXP_MASK) | \
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) \
79 ((exp) & FP80_EXP_MASK)
81 #define BUILD_FP80_FI(frac, exp) \
82 ((exp)
93 build_fp80(int sign, uint64_t frac, int exp) argument
[all...]
H A Dfp80.c56 const int exp = FP80_EXP(fp80); local
58 return exp == FP80_EXP_SPECIAL;
197 const unsigned exp = FP64_EXP(fp64); local
198 const int unb_exp = exp - FP64_EXP_BIAS;
201 if (exp != 0) {
203 const unsigned fp80_exp = exp == FP64_EXP_SPECIAL ?
208 } else if (exp == 0 && frac == 0) {
230 fprintf(fout, "sgn: %i, int: %i, frac: 0x%llx, exp: 0x%x (%i)\n",
/gem5/src/arch/arm/insts/
H A Dfplib.cc217 fp16_normalise(uint16_t mnt, int *exp) argument
228 *exp -= shift;
235 fp32_normalise(uint32_t mnt, int *exp) argument
246 *exp -= shift;
253 fp64_normalise(uint64_t mnt, int *exp) argument
264 *exp -= shift;
271 fp128_normalise(uint64_t *mnt0, uint64_t *mnt1, int *exp) argument
284 *exp -= 64;
291 *exp -= shift;
300 fp16_pack(uint16_t sgn, uint16_t exp, uint16_ argument
306 fp32_pack(uint32_t sgn, uint32_t exp, uint32_t mnt) argument
312 fp64_pack(uint64_t sgn, uint64_t exp, uint64_t mnt) argument
390 fp16_unpack(int *sgn, int *exp, uint16_t *mnt, uint16_t x, int mode, int *flags) argument
409 fp32_unpack(int *sgn, int *exp, uint32_t *mnt, uint32_t x, int mode, int *flags) argument
429 fp64_unpack(int *sgn, int *exp, uint64_t *mnt, uint64_t x, int mode, int *flags) argument
449 fp16_is_NaN(int exp, uint16_t mnt) argument
455 fp32_is_NaN(int exp, uint32_t mnt) argument
461 fp64_is_NaN(int exp, uint64_t mnt) argument
467 fp16_is_signalling_NaN(int exp, uint16_t mnt) argument
473 fp32_is_signalling_NaN(int exp, uint32_t mnt) argument
479 fp64_is_signalling_NaN(int exp, uint64_t mnt) argument
485 fp16_is_quiet_NaN(int exp, uint16_t mnt) argument
491 fp32_is_quiet_NaN(int exp, uint32_t mnt) argument
497 fp64_is_quiet_NaN(int exp, uint64_t mnt) argument
503 fp16_is_infinity(int exp, uint16_t mnt) argument
509 fp32_is_infinity(int exp, uint32_t mnt) argument
515 fp64_is_infinity(int exp, uint64_t mnt) argument
707 fp16_round_(int sgn, int exp, uint16_t mnt, int rm, int mode, int *flags) argument
785 fp16_round(int sgn, int exp, uint16_t mnt, int mode, int *flags) argument
791 fp32_round_(int sgn, int exp, uint32_t mnt, int rm, int mode, int *flags) argument
862 fp32_round(int sgn, int exp, uint32_t mnt, int mode, int *flags) argument
868 fp64_round_(int sgn, int exp, uint64_t mnt, int rm, int mode, int *flags) argument
939 fp64_round(int sgn, int exp, uint64_t mnt, int mode, int *flags) argument
2617 int sgn, exp; local
2666 int sgn, exp; local
2715 int sgn, exp; local
2753 int sgn, exp; local
2792 int sgn, exp; local
2830 int sgn, exp; local
3113 fp16_repack(int sgn, int exp, uint16_t mnt) argument
3119 fp32_repack(int sgn, int exp, uint32_t mnt) argument
3125 fp64_repack(int sgn, int exp, uint64_t mnt) argument
3521 int sgn, exp; local
3556 int sgn, exp; local
3591 int sgn, exp; local
3716 int sgn, exp; local
3778 int sgn, exp; local
3840 int sgn, exp; local
3992 int sgn, exp; local
4019 int sgn, exp; local
4046 int sgn, exp; local
4074 int sgn, exp; local
4204 int sgn, exp; local
4459 int sgn, exp; local
4479 int sgn, exp; local
4498 int sgn, exp; local
4546 FPToFixed_64(int sgn, int exp, uint64_t mnt, bool u, FPRounding rounding, int *flags) argument
4595 FPToFixed_32(int sgn, int exp, uint64_t mnt, bool u, FPRounding rounding, int *flags) argument
4609 FPToFixed_16(int sgn, int exp, uint64_t mnt, bool u, FPRounding rounding, int *flags) argument
4628 int sgn, exp; local
4658 int sgn, exp; local
4689 int sgn, exp; local
4718 int sgn, exp; local
4746 int sgn, exp; local
4777 int sgn, exp; local
4807 int sgn, exp; local
[all...]
/gem5/ext/fputils/tests/
H A Dfp80_cvtf.c59 test_cvtf_exp(const char *name, double x, int exp) argument
61 double val = ldexp(x, exp);
H A Dfp80_cvfd.c97 test_cvfd_class_exp(const char *name, double x, int exp) argument
99 double val = ldexp(x, exp);
/gem5/ext/systemc/src/sysc/datatypes/fx/
H A Dscfx_utils.h494 scfx_print_exp( scfx_string& s, int exp )
496 if( exp != 0 )
500 if( exp < 0 )
502 exp = - exp;
512 int digit = exp / scale;
513 exp = exp % scale;
H A Dscfx_ieee.h641 // Computes 2.0**exp in double-precision.
645 double scfx_pow2( int exp )
648 if( exp < SCFX_IEEE_DOUBLE_E_MIN )
652 exp -= SCFX_IEEE_DOUBLE_E_MIN;
653 if( ( exp += 20 ) >= 0 )
655 r.mantissa0( 1U << exp );
657 else if( ( exp += 32 ) >= 0 )
659 r.mantissa1( 1U << exp );
662 else if( exp > SCFX_IEEE_DOUBLE_E_MAX )
669 r.exponent( exp );
[all...]
H A Dscfx_rep.cpp811 int exp = (m_msw - m_wp) * bits_in_word + msb;
813 if( exp > SCFX_IEEE_DOUBLE_E_MAX )
820 if( exp < SCFX_IEEE_DOUBLE_E_MIN
869 if( exp < SCFX_IEEE_DOUBLE_E_MIN )
873 int subnormal_shift = SCFX_IEEE_DOUBLE_E_MIN - exp;
889 exp = SCFX_IEEE_DOUBLE_E_MIN - 1;
894 id.exponent( exp );
900 result += m_sign * scfx_pow2( exp - SCFX_IEEE_DOUBLE_M_SIZE );
H A Dsc_fxval.cpp873 double exp = ( exponent != 0 ) ? pow( (double) base, (double) exponent ) local
876 return ( sign * ( integer + fraction ) * exp );
/gem5/src/systemc/ext/dt/fx/
H A Dscfx_utils.hh461 scfx_print_exp(scfx_string &s, int exp) argument
463 if (exp != 0) {
466 if (exp < 0) {
467 exp = - exp;
476 int digit = exp / scale;
477 exp = exp % scale;
H A Dscfx_ieee.hh564 // Computes 2.0**exp in double-precision.
568 scfx_pow2(int exp) argument
571 if (exp < SCFX_IEEE_DOUBLE_E_MIN) {
574 exp -= SCFX_IEEE_DOUBLE_E_MIN;
575 if ((exp += 20) >= 0) {
576 r.mantissa0(1U << exp);
577 } else if ((exp += 32) >= 0) {
578 r.mantissa1(1U << exp);
580 } else if (exp > SCFX_IEEE_DOUBLE_E_MAX) {
584 r.exponent(exp);
[all...]
/gem5/src/systemc/tests/systemc/datatypes/misc/signless_conversion/
H A Dsignless_conversion.cpp40 #define DISP(exp) \
42 cout << #exp << " = " << exp << endl; \
/gem5/src/systemc/core/
H A Dsensitivity.cc149 newStaticSensitivityExport(Process *p, const sc_core::sc_export_base *exp) argument
151 auto s = new StaticSensitivityExport(p, exp);
173 Process *p, const sc_core::sc_export_base *exp) :
175 SensitivityEvent(p, &exp->get_interface()->default_event())
172 StaticSensitivityExport( Process *p, const sc_core::sc_export_base *exp) argument
H A Dsensitivity.hh181 Process *p, const sc_core::sc_export_base *exp);
224 Process *p, const sc_core::sc_export_base *exp);
226 StaticSensitivityExport(Process *p, const sc_core::sc_export_base *exp);
/gem5/ext/systemc/src/tlm_core/tlm_2/tlm_sockets/
H A Dtlm_target_socket.h158 export_type* exp = &get_base_export(); local
159 if( this == exp ) {
162 exp->bind( ifs );
/gem5/src/systemc/ext/tlm_core/2/sockets/
H A Dtarget_socket.hh127 export_type *exp = &get_base_export(); local
128 if (this == exp) {
131 exp->bind( ifs );
/gem5/ext/googletest/googlemock/include/gmock/
H A Dgmock-spec-builders.h224 // Returns an Expectation object that references and co-owns exp,
226 Expectation GetHandleOf(ExpectationBase* exp);
503 Expectation(internal::ExpectationBase& exp); // NOLINT
577 ExpectationSet(internal::ExpectationBase& exp) { // NOLINT
578 *this += Expectation(exp);
1687 TypedExpectation<F>* exp = this->FindMatchingExpectationLocked(args);
1688 if (exp == NULL) { // A match wasn't found.
1694 // which will increment the call count for *exp and thus affect
1696 *is_excessive = exp->IsSaturated();
1697 const Action<F>* action = exp
[all...]
/gem5/ext/googletest/googletest/scripts/
H A Dpump.py300 return MakeToken(lines, start, pos, 'exp')
337 exp_token = ParseToken(lines, pos, REST_OF_LINE_REGEX, 'exp')
356 yield MakeToken(lines, pos, dots_pos, 'exp')
360 yield MakeToken(lines, pos, new_pos, 'exp')
421 def __init__(self, exp=None, then_branch=None, else_branch=None):
422 self.exp = exp
490 exp = Pop('code')
495 return CodeNode([IfNode(ParseExpNode(exp), code_node, inner_else_node)])
515 if next.token_type == 'exp'
[all...]
/gem5/ext/dsent/tech/
H A DTechModel.cc308 A = 1.14 * (metal_thickness / spacing_) * std::exp(-4.0 * spacing_ / (spacing_ + 8.01 * dielec_thickness));
311 std::exp(-2.0 * spacing_ / (spacing_ + 6.0 * dielec_thickness));
/gem5/src/systemc/dt/fx/
H A Dscfx_rep.cc746 int exp = (m_msw - m_wp) * bits_in_word + msb;
748 if (exp > SCFX_IEEE_DOUBLE_E_MAX) {
754 if (exp < SCFX_IEEE_DOUBLE_E_MIN -
793 if (exp < SCFX_IEEE_DOUBLE_E_MIN) {
796 int subnormal_shift = SCFX_IEEE_DOUBLE_E_MIN - exp;
809 exp = SCFX_IEEE_DOUBLE_E_MIN - 1;
814 id.exponent(exp);
820 result += m_sign * scfx_pow2(exp - SCFX_IEEE_DOUBLE_M_SIZE);
H A Dsc_fxval.cc804 double exp = local
807 return (sign * (integer + fraction) * exp);
/gem5/ext/dsent/model/optical/
H A DRingDetector.cc272 double v_sense = vdd * exp(-(1 - integ_time_ratio) / (data_rate * tau)) + noise_margin + v_residual + supply_noise_det / CMRR;
/gem5/ext/googletest/googlemock/src/
H A Dgmock-spec-builders.cc447 // Returns an Expectation object that references and co-owns exp,
449 Expectation UntypedFunctionMockerBase::GetHandleOf(ExpectationBase* exp) { argument
453 if (it->get() == exp) {
/gem5/src/python/m5/
H A DSimObject.py740 for exp in param_exports:
741 exp.export(code, "%sParams" % cls)
770 for exp in cls.cxx_exports:
771 exp.export(code, cls.cxx_class)

Completed in 66 milliseconds

12