/third_party/vk-gl-cts/external/openglcts/modules/common/ |
H A D | glcMisc.cpp | 50 unsigned int exp; in floatToHalfFloat() local 56 exp = x & FLOAT_MAX_BIASED_EXP; in floatToHalfFloat() 57 if (exp >= HALF_FLOAT_MAX_BIASED_EXP_AS_SINGLE_FP_EXP) in floatToHalfFloat() 60 if (mantissa && (exp == FLOAT_MAX_BIASED_EXP)) in floatToHalfFloat() 73 else if (exp <= HALF_FLOAT_MIN_BIASED_EXP_AS_SINGLE_FP_EXP) in floatToHalfFloat() 76 exp = (HALF_FLOAT_MIN_BIASED_EXP_AS_SINGLE_FP_EXP - exp) >> 23; in floatToHalfFloat() 79 if (exp < 18) in floatToHalfFloat() 80 mantissa >>= (14 + exp); in floatToHalfFloat() 88 hf = (((GLhalf)sign) << 15) | (GLhalf)((exp in floatToHalfFloat() 111 unsigned int exp; floatToUnisgnedF11() local 192 unsigned int exp; floatToUnisgnedF10() local 261 unsigned int exp = (unsigned int)(hf & HALF_FLOAT_MAX_BIASED_EXP); halfFloatToFloat() local 311 unsigned int exp = (unsigned int)(f11 & FLOAT11_MAX_BIASED_EXP); unsignedF11ToFloat() local 361 unsigned int exp = (unsigned int)(f10 & FLOAT10_MAX_BIASED_EXP); unsignedF10ToFloat() local [all...] |
/third_party/ffmpeg/libavutil/ |
H A D | softfloat.h | 36 int32_t exp; member 53 v.exp -= ONE_BITS +1; in av_sf2double() 54 return ldexp(v.mant, v.exp); in av_sf2double() 62 a.exp -= 1; in av_normalize_sf() 66 a.exp -= s; in av_normalize_sf() 69 if(a.exp < MIN_EXP){ in av_normalize_sf() 70 a.exp = MIN_EXP; in av_normalize_sf() 74 a.exp= MIN_EXP; in av_normalize_sf() 82 a.exp++; in av_normalize1_sf() 86 av_assert2(a.exp < in av_normalize1_sf() [all...] |
H A D | softfloat_ieee754.h | 32 int32_t exp; member 43 sf.exp++; in av_normalize_sf_ieee754() 73 if(a.exp >= 0) return a.mant << a.exp ; in av_sf2int_ieee754() 74 else return a.mant >>(-a.exp); in av_sf2int_ieee754() 81 int32_t mant, exp, sign; in av_div_sf_ieee754() local 86 exp = a.exp - b.exp; in av_div_sf_ieee754() 87 return av_normalize_sf_ieee754((SoftFloat_IEEE754) {sign, mant, exp}); in av_div_sf_ieee754() 94 int32_t sign, mant, exp; av_mul_sf_ieee754() local [all...] |
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/internal/str_format/ |
H A D | float_conversion.cc | 121 // Generates the decimal representation for an integer of the form `v * 2^exp`, 122 // where `v` and `exp` are both positive integers. 126 // Requires `0 <= exp` and `exp <= numeric_limits<MaxFloatType>::max_exponent`. 128 static constexpr int ChunksNeeded(int exp) { in ChunksNeeded() argument 129 // We will left shift a uint128 by `exp` bits, so we need `128+exp` total in ChunksNeeded() 132 return (128 + exp + 31) / 32 * 11 / 10; in ChunksNeeded() 136 // Run the conversion for `v * 2^exp` and call `f(binary_to_decimal)`. 138 static void RunConversion(uint128 v, int exp, in RunConversion() argument 175 BinaryToDecimal(absl::Span<uint32_t> data, uint128 v, int exp) BinaryToDecimal() argument 246 RunConversion( uint128 v, int exp, absl::FunctionRef<void(FractionalDigitGenerator)> f) RunConversion() argument 303 FractionalDigitGenerator(absl::Span<uint32_t> data, uint128 v, int exp) FractionalDigitGenerator() argument 376 PrintFractionalDigitsFast(uint64_t v, char *start, int exp, int precision) PrintFractionalDigitsFast() argument 405 PrintFractionalDigitsFast(uint128 v, char *start, int exp, int precision) PrintFractionalDigitsFast() argument 510 FormatFFast(Int v, int exp, const FormatState &state) FormatFFast() argument 567 FormatFPositiveExpSlow(uint128 v, int exp, const FormatState &state) FormatFPositiveExpSlow() argument 595 FormatFNegativeExpSlow(uint128 v, int exp, const FormatState &state) FormatFNegativeExpSlow() argument 667 FormatF(Int mantissa, int exp, const FormatState &state) FormatF() argument 804 FormatARound(bool precision_specified, const FormatState &state, uint8_t *leading, Int *mantissa, int *exp) FormatARound() argument 831 FormatANormalize(const HexFloatTypeParams float_traits, uint8_t *leading, Int *mantissa, int *exp) FormatANormalize() argument 856 FormatA(const HexFloatTypeParams float_traits, Int mantissa, int exp, bool uppercase, const FormatState &state) FormatA() argument [all...] |
/third_party/python/Python/ |
H A D | ast.c | 209 validate_expr(struct validator *state, expr_ty exp, expr_context_ty ctx) in validate_expr() argument 212 VALIDATE_POSITIONS(exp); in validate_expr() 223 switch (exp->kind) { in validate_expr() 225 actual_ctx = exp->v.Attribute.ctx; in validate_expr() 228 actual_ctx = exp->v.Subscript.ctx; in validate_expr() 231 actual_ctx = exp->v.Starred.ctx; in validate_expr() 234 if (!validate_name(exp->v.Name.id)) { in validate_expr() 237 actual_ctx = exp->v.Name.ctx; in validate_expr() 240 actual_ctx = exp->v.List.ctx; in validate_expr() 243 actual_ctx = exp in validate_expr() 403 ensure_literal_number(expr_ty exp, bool allow_real, bool allow_imaginary) ensure_literal_number() argument 413 ensure_literal_negative(expr_ty exp, bool allow_real, bool allow_imaginary) ensure_literal_negative() argument 430 ensure_literal_complex(expr_ty exp) ensure_literal_complex() argument 470 validate_pattern_match_value(struct validator *state, expr_ty exp) validate_pattern_match_value() argument [all...] |
/third_party/libwebsockets/lib/core/ |
H A D | libwebsockets.c | 1078 lws_strexp_init(lws_strexp_t *exp, void *priv, lws_strexp_expand_cb cb, in lws_strexp_init() argument 1081 memset(exp, 0, sizeof(*exp)); in lws_strexp_init() 1082 exp->cb = cb; in lws_strexp_init() 1083 exp->out = out; in lws_strexp_init() 1084 exp->olen = olen; in lws_strexp_init() 1085 exp->state = LWS_EXPS_LITERAL; in lws_strexp_init() 1086 exp->priv = priv; in lws_strexp_init() 1090 lws_strexp_reset_out(lws_strexp_t *exp, char *out, size_t olen) in lws_strexp_reset_out() argument 1092 exp in lws_strexp_reset_out() 1098 lws_strexp_expand(lws_strexp_t *exp, const char *in, size_t len, size_t *pused_in, size_t *pused_out) lws_strexp_expand() argument [all...] |
/third_party/mesa3d/src/asahi/compiler/ |
H A D | agx_minifloat.h | 38 signed exp = (imm & 0x70) >> 4; in agx_minifloat_decode() local 41 if (exp) in agx_minifloat_decode() 42 return ldexpf(sign * (float) (mantissa | 0x10), exp - 7); in agx_minifloat_decode() 57 /* frac is in [0.5, 1) and f = frac * 2^exp */ in agx_minifloat_encode() 58 int exp = 0; in agx_minifloat_encode() local 59 float frac = frexpf(f, &exp); in agx_minifloat_encode() 63 exp -= 5; /* 2^5 = 32 */ in agx_minifloat_encode() 64 exp = CLAMP(exp + 7, 0, 7); in agx_minifloat_encode() 67 assert(exp > in agx_minifloat_encode() [all...] |
/third_party/rust/crates/minimal-lexical/tests/ |
H A D | rounding_tests.rs | 8 exp: -10, in round_test() 12 f.exp += s; in round_test() 15 assert_eq!(fp.exp, 1); in round_test() 19 exp: -10, in round_test() 23 f.exp += s; in round_test() 28 assert_eq!(fp.exp, 1); in round_test() 33 exp: -10, in round_test() 41 assert_eq!(fp.exp, 1); in round_test() 46 exp: -10, in round_test() 54 assert_eq!(fp.exp, in round_test() [all...] |
H A D | slow_tests.rs | 12 (fp.mant, fp.exp) in b() 17 (fp.mant, fp.exp) in bh() 61 exp: -63, in slow_test() 65 assert_eq!(result.exp, 0); in slow_test() 71 assert_eq!(result.exp, 0); in slow_test() 83 exp: 2035, in slow_test() 87 assert_eq!(result.exp, 2046); in slow_test() 93 assert_eq!(result.exp, 2046); in slow_test() 108 assert_eq!(result.exp, 2046); in positive_digit_comp_test() 120 assert_eq!(result.exp, 204 in positive_digit_comp_test() [all...] |
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/math/ |
H A D | BigDecimal.java | 70 /* zero can now have trailing zeros (i.e., exp\=0) */ 402 * For fixed point arithmetic, scale is <code>-exp</code>, and can apply to zero. 408 private int exp; field in BigDecimal 454 // exp remains 0 478 exp = -scale; // exponent is -scale in BigDecimal() 624 exp = (exp * 10) + dvalue; in BigDecimal() 628 exp = -exp; // was negative in BigDecimal() 638 exp in BigDecimal() [all...] |
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/math/ |
H A D | BigDecimal.java | 71 /* zero can now have trailing zeros (i.e., exp\=0) */ 391 * For fixed point arithmetic, scale is <code>-exp</code>, and can apply to zero. 397 private int exp; field in BigDecimal 441 // exp remains 0 464 exp = -scale; // exponent is -scale in BigDecimal() 608 exp = (exp * 10) + dvalue; in BigDecimal() 612 exp = -exp; // was negative in BigDecimal() 622 exp in BigDecimal() [all...] |
/third_party/mesa3d/include/android_stub/cutils/ |
H A D | compiler.h | 25 # define CC_LIKELY( exp ) (__builtin_expect( !!(exp), true )) 26 # define CC_UNLIKELY( exp ) (__builtin_expect( !!(exp), false )) 28 # define CC_LIKELY( exp ) (__builtin_expect( !!(exp), 1 )) 29 # define CC_UNLIKELY( exp ) (__builtin_expect( !!(exp), 0 ))
|
/third_party/rust/crates/minimal-lexical/src/ |
H A D | bellerophon.rs | 42 exp: 0, in bellerophon() 46 exp: F::INFINITE_POWER, in bellerophon() 87 exp: 0, in bellerophon() 113 fp.exp += F::EXPONENT_BIAS; in bellerophon() 116 if -fp.exp + 1 > 65 { in bellerophon() 123 fp.exp += F::INVALID_FP; in bellerophon() 130 if -fp.exp + 1 == 65 { in bellerophon() 177 debug_assert!(fp.exp >= -64); in error_is_accurate() 185 // This is always a valid u32, since `fp.exp >= -64` in error_is_accurate() 192 let extrabits = match fp.exp < in error_is_accurate() [all...] |
H A D | rounding.rs | 24 exp: F::INFINITE_POWER, in round() 31 if -fp.exp >= mantissa_shift { in round() 36 // checked if `exp == F::DENORMAL_EXPONENT` and no hidden mask in round() 41 let shift = -fp.exp + 1; in round() 45 fp.exp = (fp.mant >= F::HIDDEN_BIT_MASK) as i32; in round() 56 fp.exp += 1; in round() 60 if fp.exp >= F::INFINITE_POWER { in round() 111 fp.exp += shift; in round_nearest_tie_even() 130 fp.exp += shift; in round_down()
|
/third_party/vk-gl-cts/framework/common/ |
H A D | tcuFloatFormat.cpp | 100 int exp = 0; in ulp() local 101 const double frac = deFractExp(deAbs(x), &exp); in ulp() 111 --exp; in ulp() 114 exp = m_minExp; in ulp() 117 exp = de::max(exp, m_minExp); in ulp() 120 const double oneULP = deLdExp(1.0, exp - m_fractionBits); in ulp() 131 //! for subnormals it is less and for values of exp where 2^exp is too 133 int FloatFormat::exponentShift (int exp) cons 143 int exp = 0; round() local 204 int exp = 0; roundOut() local 236 int exp = 0; floatToHex() local [all...] |
/third_party/ltp/testcases/commands/ar/ |
H A D | ar01.sh | 29 printf "file1.in\nfile2.in\nfile3.in\n" > ar.exp 31 if diff ar.out ar.exp >/dev/null; then 48 printf "file1.in\nfile4.in\nfile2.in\nfile3.in\n" > ar.exp 50 if diff ar.out ar.exp > /dev/null; then 66 printf "file1.in\nfile2.in\nfile3.in\n" > ar.exp 68 if diff ar.out ar.exp; then 85 printf "file1.in\nfile2.in\nfile3.in\n" > ar.exp 87 if diff ar.out ar.exp > /dev/null; then 132 printf "file3.in\n" > ar.exp 134 if diff ar.out ar.exp > /de [all...] |
/third_party/python/Modules/_decimal/libmpdec/ |
H A D | mpdecimal.c | 82 #define MPD_NEW_STATIC(name, flags, exp, digits, len) \ 84 mpd_t name = {flags|MPD_STATIC|MPD_STATIC_DATA, exp, digits, \ 87 #define MPD_NEW_CONST(name, flags, exp, digits, len, alloc, initval) \ 89 mpd_t name = {flags|MPD_STATIC|MPD_CONST_DATA, exp, digits, \ 94 a->exp, a->digits, a->len, a->alloc, a->data} 107 mpd_ssize_t exp); 119 mpd_uint_t exp, uint8_t resultsign, 204 return (dec->exp + dec->digits) - 1; in mpd_adjexp() 258 mpd_exp_digits(mpd_ssize_t exp) in mpd_exp_digits() argument 260 exp in mpd_exp_digits() 1054 _ssettriple(mpd_t *result, uint8_t sign, mpd_uint_t a, mpd_ssize_t exp) _ssettriple() argument 1065 _settriple(mpd_t *result, uint8_t sign, mpd_uint_t a, mpd_ssize_t exp) _settriple() argument 3047 int64_t exp; mpd_qscaleb() local 3051 mpd_ssize_t exp; mpd_qscaleb() local 3343 mpd_ssize_t exp, i; _mpd_qaddsub() local 3759 mpd_ssize_t shift, exp, tz; _mpd_qdiv() local 6284 _mpd_qpow_uint(mpd_t *result, const mpd_t *base, mpd_uint_t exp, uint8_t resultsign, const mpd_context_t *ctx, uint32_t *status) _mpd_qpow_uint() argument 6364 _mpd_qpow_int(mpd_t *result, const mpd_t *base, const mpd_t *exp, uint8_t resultsign, const mpd_context_t *ctx, uint32_t *status) _mpd_qpow_int() argument 6449 _qcheck_pow_one(mpd_t *result, const mpd_t *base, const mpd_t *exp, uint8_t resultsign, const mpd_context_t *ctx, uint32_t *status) _qcheck_pow_one() argument 6656 _mpd_qpow_real(mpd_t *result, const mpd_t *base, const mpd_t *exp, const mpd_context_t *ctx, uint32_t *status) _mpd_qpow_real() argument 6708 mpd_qpow(mpd_t *result, const mpd_t *base, const mpd_t *exp, const mpd_context_t *ctx, uint32_t *status) mpd_qpow() argument 6806 _mpd_qpowmod_uint(mpd_t *result, mpd_t *base, mpd_uint_t exp, const mpd_t *mod, uint32_t *status) _mpd_qpowmod_uint() argument 6829 mpd_qpowmod(mpd_t *result, const mpd_t *base, const mpd_t *exp, const mpd_t *mod, const mpd_context_t *ctx, uint32_t *status) mpd_qpowmod() argument 7204 _mpd_qrescale(mpd_t *result, const mpd_t *a, mpd_ssize_t exp, const mpd_context_t *ctx, uint32_t *status) _mpd_qrescale() argument 7260 mpd_qrescale(mpd_t *result, const mpd_t *a, mpd_ssize_t exp, const mpd_context_t *ctx, uint32_t *status) mpd_qrescale() argument 7280 mpd_qrescale_fmt(mpd_t *result, const mpd_t *a, mpd_ssize_t exp, const mpd_context_t *ctx, uint32_t *status) mpd_qrescale_fmt() argument 8742 _set_uint128_coeff_exp(mpd_t *result, uint64_t hi, uint64_t lo, mpd_ssize_t exp) _set_uint128_coeff_exp() argument 8787 mpd_ssize_t exp; mpd_from_uint128_triple() local [all...] |
/third_party/typescript/tests/baselines/reference/ |
H A D | typeofAmbientExternalModules.js | 14 import exp = require('./typeofAmbientExternalModules_1'); 17 y1 = exp; 18 var y2: typeof exp = exp; 45 var exp = require("./typeofAmbientExternalModules_1");
variable 47 y1 = exp;
48 var y2 = exp;
|
H A D | typeofExternalModules.js | 12 import exp = require('./typeofExternalModules_exportAssign'); 15 y1 = exp; 16 var y2: typeof exp = exp; 41 var exp = require("./typeofExternalModules_exportAssign");
variable 43 y1 = exp;
44 var y2 = exp;
|
/third_party/opencl-headers/CL/ |
H A D | cl_half.h | 127 int32_t exp = f_exp - CL_FLT_MAX_EXP + 1; in cl_half_from_float() local 130 uint16_t h_exp = (uint16_t)(exp + CL_HALF_MAX_EXP - 1); in cl_half_from_float() 159 if (exp >= CL_HALF_MAX_EXP) in cl_half_from_float() 165 if (exp < (CL_HALF_MIN_EXP - CL_HALF_MANT_DIG - 1)) in cl_half_from_float() 171 if (exp < -14) in cl_half_from_float() 178 lsb_pos = -exp + (CL_FLT_MANT_DIG - 25); in cl_half_from_float() 253 int64_t exp = d_exp - CL_DBL_MAX_EXP + 1; in cl_half_from_double() local 256 uint16_t h_exp = (uint16_t)(exp + CL_HALF_MAX_EXP - 1); in cl_half_from_double() 285 if (exp >= CL_HALF_MAX_EXP) in cl_half_from_double() 291 if (exp < (CL_HALF_MIN_EX in cl_half_from_double() 378 int32_t exp = h_exp - CL_HALF_MAX_EXP + 1; cl_half_to_float() local [all...] |
/third_party/skia/third_party/externals/angle2/include/CL/ |
H A D | cl_half.h | 127 int32_t exp = f_exp - CL_FLT_MAX_EXP + 1; in cl_half_from_float() local 130 uint16_t h_exp = (uint16_t)(exp + CL_HALF_MAX_EXP - 1); in cl_half_from_float() 159 if (exp >= CL_HALF_MAX_EXP) in cl_half_from_float() 165 if (exp < (CL_HALF_MIN_EXP - CL_HALF_MANT_DIG - 1)) in cl_half_from_float() 171 if (exp < -14) in cl_half_from_float() 178 lsb_pos = -exp + (CL_FLT_MANT_DIG - 25); in cl_half_from_float() 253 int64_t exp = d_exp - CL_DBL_MAX_EXP + 1; in cl_half_from_double() local 256 uint16_t h_exp = (uint16_t)(exp + CL_HALF_MAX_EXP - 1); in cl_half_from_double() 285 if (exp >= CL_HALF_MAX_EXP) in cl_half_from_double() 291 if (exp < (CL_HALF_MIN_EX in cl_half_from_double() 378 int32_t exp = h_exp - CL_HALF_MAX_EXP + 1; cl_half_to_float() local [all...] |
/third_party/rust/crates/minimal-lexical/etc/ |
H A D | bellerophon_table.py | 29 small: ExtendedFloatArray {{ mant: &BASE{0}_SMALL_MANTISSA, exp: &BASE{0}_SMALL_EXPONENT }}, 30 large: ExtendedFloatArray {{ mant: &BASE{0}_LARGE_MANTISSA, exp: &BASE{0}_LARGE_EXPONENT }}, 71 for exp in range(count): 72 fps.append((normalize_fp(fp), exp)) 94 for exp in range(-step, min_exp-step, -step): 96 fps.appendleft((normalize_fp(fp), exp)) 101 for exp in range(step, max_exp, step): 103 fps.append((normalize_fp(fp), exp)) 105 # Return the smallest exp, AKA, the bias 113 for fp, exp i [all...] |
/third_party/node/deps/v8/tools/clusterfuzz/foozzie/ |
H A D | v8_suppressions.py | 87 ALLOWED_LINE_DIFFS = [re.compile(exp) for exp in ALLOWED_LINE_DIFFS] 88 IGNORE_LINES = [re.compile(exp) for exp in IGNORE_LINES] 141 for exp in allowed: 142 match1 = exp.match(line1) 143 match2 = exp.match(line2) 252 for bug, exp in IGNORE_TEST_CASES.items(): 253 if exp.search(content): 266 for bug, exp i [all...] |
/third_party/ffmpeg/libavcodec/x86/ |
H A D | mdct15.asm | 145 ;void ff_mdct15_postreindex(FFTComplex *out, FFTComplex *in, FFTComplex *exp, int *lut, ptrdiff_t len8); 162 cglobal mdct15_postreindex, 5, 7, 8 + cpuflag(avx2)*2, out, in, exp, lut, len8, offset_p, offset_n 175 movups m0, [expq + offset_pq*8] ; exp[p0].re, exp[p0].im, exp[p1].re, exp[p1].im, exp[p2].re, exp[p2].im, exp[p3].re, exp[p [all...] |
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/ |
H A D | numbers.cc | 368 int exp = 5; in SplitToSix() local 372 // in the output ASCII array, and exp is the base-10 exponent. It would be in SplitToSix() 377 if (d >= 1e+261) exp += 256, d *= 1e-256; in SplitToSix() 378 if (d >= 1e+133) exp += 128, d *= 1e-128; in SplitToSix() 379 if (d >= 1e+69) exp += 64, d *= 1e-64; in SplitToSix() 380 if (d >= 1e+37) exp += 32, d *= 1e-32; in SplitToSix() 381 if (d >= 1e+21) exp += 16, d *= 1e-16; in SplitToSix() 382 if (d >= 1e+13) exp += 8, d *= 1e-8; in SplitToSix() 383 if (d >= 1e+9) exp += 4, d *= 1e-4; in SplitToSix() 384 if (d >= 1e+7) exp in SplitToSix() 514 int exp = exp_dig.exponent; SixDigitsToBuffer() local [all...] |