Home
last modified time | relevance | path

Searched refs:exp (Results 1 – 25 of 1234) sorted by relevance

12345678910>>...50

/third_party/python/Lib/test/decimaltestdata/
Dexp.decTest2 -- exp.decTest -- decimal natural exponentiation --
32 expx001 exp -Infinity -> 0
33 expx002 exp -10 -> 0.0000453999298 Inexact Rounded
34 expx003 exp -1 -> 0.367879441 Inexact Rounded
35 expx004 exp 0 -> 1
36 expx005 exp -0 -> 1
37 expx006 exp 1 -> 2.71828183 Inexact Rounded
38 expx007 exp 0.693147181 -> 2.00000000 Inexact Rounded
39 expx008 exp 10 -> 22026.4658 Inexact Rounded
40 expx009 exp +Infinity -> Infinity
[all …]
/third_party/vk-gl-cts/external/openglcts/modules/common/
DglcMisc.cpp50 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 - HALF_FLOAT_MIN_BIASED_EXP_AS_SINGLE_FP_EXP) >> 13) | in floatToHalfFloat()
111 unsigned int exp; in floatToUnisgnedF11() local
[all …]
/third_party/optimized-routines/math/test/testcases/directed/
Dexp.tst1 ; Directed test cases for exp
6 func=exp op1=7ff80000.00000001 result=7ff80000.00000001 errno=0
7 func=exp op1=fff80000.00000001 result=7ff80000.00000001 errno=0
8 func=exp op1=7ff00000.00000001 result=7ff80000.00000001 errno=0 status=i
9 func=exp op1=fff00000.00000001 result=7ff80000.00000001 errno=0 status=i
10 func=exp op1=7ff00000.00000000 result=7ff00000.00000000 errno=0
11 func=exp op1=fff00000.00000000 result=00000000.00000000 errno=0
12 func=exp op1=7fefffff.ffffffff result=7ff00000.00000000 errno=ERANGE status=ox
13 func=exp op1=ffefffff.ffffffff result=00000000.00000000 errno=ERANGE status=ux
14 func=exp op1=00000000.00000000 result=3ff00000.00000000 errno=0
[all …]
/third_party/ffmpeg/libavutil/
Dsoftfloat.h36 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 <= MAX_EXP); in av_normalize1_sf()
[all …]
Dsoftfloat_ieee754.h32 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; in av_mul_sf_ieee754() local
99 exp = a.exp + b.exp; in av_mul_sf_ieee754()
100 return av_normalize_sf_ieee754((SoftFloat_IEEE754) {sign, mant, exp}); in av_mul_sf_ieee754()
[all …]
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/internal/str_format/
Dfloat_conversion.cc128 static constexpr int ChunksNeeded(int exp) { in ChunksNeeded() argument
132 return (128 + exp + 31) / 32 * 11 / 10; in ChunksNeeded()
138 static void RunConversion(uint128 v, int exp, in RunConversion() argument
140 assert(exp > 0); in RunConversion()
141 assert(exp <= std::numeric_limits<MaxFloatType>::max_exponent); in RunConversion()
148 ChunksNeeded(exp), in RunConversion()
149 [=](absl::Span<uint32_t> input) { f(BinaryToDecimal(input, v, exp)); }); in RunConversion()
175 BinaryToDecimal(absl::Span<uint32_t> data, uint128 v, int exp) : data_(data) { in BinaryToDecimal() argument
193 int chunk_index = exp / 32; in BinaryToDecimal()
194 decimal_start_ = decimal_end_ = ChunksNeeded(exp); in BinaryToDecimal()
[all …]
/third_party/typescript/tests/baselines/reference/
DtypeofExternalModules.types5 import exp = require('./typeofExternalModules_exportAssign');
6 >exp : typeof exp
13 y1 = exp;
14 >y1 = exp : typeof exp
16 >exp : typeof exp
18 var y2: typeof exp = exp;
19 >y2 : typeof exp
20 >exp : typeof exp
21 >exp : typeof exp
25 >y2 : typeof exp
DtypeofAmbientExternalModules.types7 import exp = require('./typeofAmbientExternalModules_1');
8 >exp : typeof exp
15 y1 = exp;
16 >y1 = exp : typeof exp
18 >exp : typeof exp
20 var y2: typeof exp = exp;
21 >y2 : typeof exp
22 >exp : typeof exp
23 >exp : typeof exp
27 >y2 : typeof exp
DtypeofExternalModules.symbols5 import exp = require('./typeofExternalModules_exportAssign');
6 >exp : Symbol(exp, Decl(typeofExternalModules_core.ts, 0, 57))
13 y1 = exp;
15 >exp : Symbol(exp, Decl(typeofExternalModules_core.ts, 0, 57))
17 var y2: typeof exp = exp;
19 >exp : Symbol(exp, Decl(typeofExternalModules_core.ts, 0, 57))
20 >exp : Symbol(exp, Decl(typeofExternalModules_core.ts, 0, 57))
DtypeofAmbientExternalModules.symbols7 import exp = require('./typeofAmbientExternalModules_1');
8 >exp : Symbol(exp, Decl(typeofAmbientExternalModules_2.ts, 2, 57))
15 y1 = exp;
17 >exp : Symbol(exp, Decl(typeofAmbientExternalModules_2.ts, 2, 57))
19 var y2: typeof exp = exp;
21 >exp : Symbol(exp, Decl(typeofAmbientExternalModules_2.ts, 2, 57))
22 >exp : Symbol(exp, Decl(typeofAmbientExternalModules_2.ts, 2, 57))
/third_party/python/Python/
Dast.c184 validate_expr(struct validator *state, expr_ty exp, expr_context_ty ctx) in validate_expr() argument
196 switch (exp->kind) { in validate_expr()
198 actual_ctx = exp->v.Attribute.ctx; in validate_expr()
201 actual_ctx = exp->v.Subscript.ctx; in validate_expr()
204 actual_ctx = exp->v.Starred.ctx; in validate_expr()
207 if (!validate_name(exp->v.Name.id)) { in validate_expr()
210 actual_ctx = exp->v.Name.ctx; in validate_expr()
213 actual_ctx = exp->v.List.ctx; in validate_expr()
216 actual_ctx = exp->v.Tuple.ctx; in validate_expr()
235 switch (exp->kind) { in validate_expr()
[all …]
/third_party/skia/tests/sksl/intrinsics/
DFrexp.metal13 float _skOutParamHelper0_frexp(float _var0, thread int4& exp) {
16 exp.x = _var1;
19 float2 _skOutParamHelper1_frexp(float2 _var0, thread int4& exp) {
22 exp.xy = _var1;
25 float3 _skOutParamHelper2_frexp(float3 _var0, thread int4& exp) {
28 exp.xyz = _var1;
31 float4 _skOutParamHelper3_frexp(float4 _var0, thread int4& exp) {
34 exp = _var1;
41 int4 exp;
44 result.x = _skOutParamHelper0_frexp(value.x, exp);
[all …]
DFrexp.glsl7 ivec4 exp;
10 result.x = frexp(value.x, exp.x);
11 ok.x = result.x == 0.75 && exp.x == 3;
12 result.xy = frexp(value.xy, exp.xy);
13 ok.y = result.y == 0.75 && exp.y == 3;
14 result.xyz = frexp(value.xyz, exp.xyz);
15 ok.z = result.z == 0.75 && exp.z == 3;
16 result = frexp(value, exp);
17 ok.w = result.w == 0.75 && exp.w == 3;
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/math/
DBigDecimal.java408 private int exp; field in BigDecimal
478 exp = -scale; // exponent is -scale in BigDecimal()
624 exp = (exp * 10) + dvalue; in BigDecimal()
628 exp = -exp; // was negative in BigDecimal()
638 exp = (exp + dotoff) - d; // adjust exponent if had dot in BigDecimal()
715 if (exp > 0) in BigDecimal()
716 exp = 0; // positive exponent can be ignored in BigDecimal()
719 exp = 0; in BigDecimal()
727 mag = (exp + mant.length) - 1; // true exponent in scientific notation in BigDecimal()
1065 if (lhs.exp == rhs.exp) {/* no padding needed */ in add()
[all …]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/math/
DBigDecimal.java397 private int exp; field in BigDecimal
464 exp = -scale; // exponent is -scale in BigDecimal()
608 exp = (exp * 10) + dvalue; in BigDecimal()
612 exp = -exp; // was negative in BigDecimal()
622 exp = (exp + dotoff) - d; // adjust exponent if had dot in BigDecimal()
699 if (exp > 0) in BigDecimal()
700 exp = 0; // positive exponent can be ignored in BigDecimal()
703 exp = 0; in BigDecimal()
711 mag = (exp + mant.length) - 1; // true exponent in scientific notation in BigDecimal()
1041 if (lhs.exp == rhs.exp) {/* no padding needed */ in add()
[all …]
/third_party/rust/crates/minimal-lexical/src/
Dbellerophon.rs42 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()
192 let extrabits = match fp.exp <= -mantissa_shift { in error_is_accurate()
196 true => 1 - fp.exp, in error_is_accurate()
[all …]
/third_party/libwebsockets/lib/core/
Dlibwebsockets.c1078 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->out = out; in lws_strexp_reset_out()
1093 exp->olen = olen; in lws_strexp_reset_out()
[all …]
/third_party/rust/crates/minimal-lexical/tests/
Drounding_tests.rs8 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, 1); in round_test()
[all …]
Dslow_tests.rs12 (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, 2046); in positive_digit_comp_test()
[all …]
/third_party/mesa3d/src/asahi/compiler/
Dagx_minifloat.h38 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()
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 >= 1); in agx_minifloat_encode()
69 return sign | (exp << 4) | (mantissa & 0xF); in agx_minifloat_encode()
/third_party/ltp/testcases/commands/ar/
Dar01.sh31 printf "file1.in\nfile2.in\nfile3.in\n" > ar.exp
33 if diff ar.out ar.exp >/dev/null; then
50 printf "file1.in\nfile4.in\nfile2.in\nfile3.in\n" > ar.exp
52 if diff ar.out ar.exp > /dev/null; then
68 printf "file1.in\nfile2.in\nfile3.in\n" > ar.exp
70 if diff ar.out ar.exp; then
87 printf "file1.in\nfile2.in\nfile3.in\n" > ar.exp
89 if diff ar.out ar.exp > /dev/null; then
134 printf "file3.in\n" > ar.exp
136 if diff ar.out ar.exp > /dev/null; then
[all …]
/third_party/mesa3d/include/android_stub/cutils/
Dcompiler.h25 # define CC_LIKELY( exp ) (__builtin_expect( !!(exp), true )) argument
26 # define CC_UNLIKELY( exp ) (__builtin_expect( !!(exp), false )) argument
28 # define CC_LIKELY( exp ) (__builtin_expect( !!(exp), 1 )) argument
29 # define CC_UNLIKELY( exp ) (__builtin_expect( !!(exp), 0 )) argument
/third_party/python/Modules/_decimal/libmpdec/
Dmpdecimal.c82 #define MPD_NEW_STATIC(name, flags, exp, digits, len) \ argument
84 mpd_t name = {flags|MPD_STATIC|MPD_STATIC_DATA, exp, digits, \
87 #define MPD_NEW_CONST(name, flags, exp, digits, len, alloc, initval) \ argument
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 = (exp < 0) ? -exp : exp; in mpd_exp_digits()
[all …]
/third_party/skia/resources/sksl/intrinsics/
DFrexp.sksl5 int4 exp;
10 result.x = frexp(value.x, exp.x);
11 ok.x = (result.x == 0.75 && exp.x == 3);
12 result.xy = frexp(value.xy, exp.xy);
13 ok.y = (result.y == 0.75 && exp.y == 3);
14 result.xyz = frexp(value.xyz, exp.xyz);
15 ok.z = (result.z == 0.75 && exp.z == 3);
16 result.xyzw = frexp(value.xyzw, exp.xyzw);
17 ok.w = (result.w == 0.75 && exp.w == 3);
/third_party/vk-gl-cts/framework/common/
DtcuFloatFormat.cpp100 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()
133 int FloatFormat::exponentShift (int exp) const in exponentShift()
135 return m_fractionBits - de::max(m_minExp - exp, 0); in exponentShift()
143 int exp = 0; in round() local
144 const double frac = deFractExp(d, &exp); in round()
[all …]

12345678910>>...50