Home
last modified time | relevance | path

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

12345678910>>...66

/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/libnl/lib/netfilter/
Dexp_obj.c67 struct nfnl_exp *exp = (struct nfnl_exp *) c; in exp_free_data() local
69 if (exp == NULL) in exp_free_data()
72 nl_addr_put(exp->exp_expect.src); in exp_free_data()
73 nl_addr_put(exp->exp_expect.dst); in exp_free_data()
74 nl_addr_put(exp->exp_master.src); in exp_free_data()
75 nl_addr_put(exp->exp_master.dst); in exp_free_data()
76 nl_addr_put(exp->exp_mask.src); in exp_free_data()
77 nl_addr_put(exp->exp_mask.dst); in exp_free_data()
78 nl_addr_put(exp->exp_nat.src); in exp_free_data()
79 nl_addr_put(exp->exp_nat.dst); in exp_free_data()
[all …]
Dexp.c78 static int exp_parse_ip(struct nfnl_exp *exp, int tuple, struct nlattr *attr) in exp_parse_ip() argument
92 err = nfnl_exp_set_src(exp, tuple, addr); in exp_parse_ip()
101 err = nfnl_exp_set_dst(exp, tuple, addr); in exp_parse_ip()
110 err = nfnl_exp_set_src(exp, tuple, addr); in exp_parse_ip()
119 err = nfnl_exp_set_dst(exp, tuple, addr); in exp_parse_ip()
133 static int exp_parse_proto(struct nfnl_exp *exp, int tuple, struct nlattr *attr) in exp_parse_proto() argument
145 nfnl_exp_set_l4protonum(exp, tuple, nla_get_u8(tb[CTA_PROTO_NUM])); in exp_parse_proto()
152 nfnl_exp_set_ports(exp, tuple, srcport, dstport); in exp_parse_proto()
161 nfnl_exp_set_icmp(exp, tuple, icmpid, icmptype, icmpcode); in exp_parse_proto()
165 static int exp_parse_tuple(struct nfnl_exp *exp, int tuple, struct nlattr *attr) in exp_parse_tuple() argument
[all …]
/third_party/libnl/src/lib/
Dexp.c26 struct nfnl_exp *exp; in nl_cli_exp_alloc() local
28 exp = nfnl_exp_alloc(); in nl_cli_exp_alloc()
29 if (!exp) in nl_cli_exp_alloc()
32 return exp; in nl_cli_exp_alloc()
40 void nl_cli_exp_parse_family(struct nfnl_exp *exp, char *arg) in nl_cli_exp_parse_family() argument
49 nfnl_exp_set_family(exp, family); in nl_cli_exp_parse_family()
52 void nl_cli_exp_parse_timeout(struct nfnl_exp *exp, char *arg) in nl_cli_exp_parse_timeout() argument
55 nfnl_exp_set_timeout(exp, timeout); in nl_cli_exp_parse_timeout()
58 void nl_cli_exp_parse_id(struct nfnl_exp *exp, char *arg) in nl_cli_exp_parse_id() argument
61 nfnl_exp_set_id(exp, id); in nl_cli_exp_parse_id()
[all …]
/third_party/gettext/gettext-runtime/intl/
Dplural.y44 struct expression *exp;
140 %type <exp> exp
144 start: exp
152 exp: exp '?' exp ':' exp
156 | exp '|' exp
160 | exp '&' exp
164 | exp EQUOP2 exp
168 | exp CMPOP2 exp
172 | exp ADDOP2 exp
176 | exp MULOP2 exp
[all …]
Dplural.c158 struct expression *exp; member
1345 if ((yyvsp[0].exp) == NULL) in yyparse()
1347 arg->res = (yyvsp[0].exp); in yyparse()
1355 (yyval.exp) = new_exp_3 (qmop, (yyvsp[-4].exp), (yyvsp[-2].exp), (yyvsp[0].exp)); in yyparse()
1363 (yyval.exp) = new_exp_2 (lor, (yyvsp[-2].exp), (yyvsp[0].exp)); in yyparse()
1371 (yyval.exp) = new_exp_2 (land, (yyvsp[-2].exp), (yyvsp[0].exp)); in yyparse()
1379 (yyval.exp) = new_exp_2 ((yyvsp[-1].op), (yyvsp[-2].exp), (yyvsp[0].exp)); in yyparse()
1387 (yyval.exp) = new_exp_2 ((yyvsp[-1].op), (yyvsp[-2].exp), (yyvsp[0].exp)); in yyparse()
1395 (yyval.exp) = new_exp_2 ((yyvsp[-1].op), (yyvsp[-2].exp), (yyvsp[0].exp)); in yyparse()
1403 (yyval.exp) = new_exp_2 ((yyvsp[-1].op), (yyvsp[-2].exp), (yyvsp[0].exp)); in yyparse()
[all …]
/third_party/libnl/src/
Dnf-exp-add.c63 struct nfnl_exp *exp; in main() local
70 exp = nl_cli_exp_alloc(); in main()
145 case '4': nfnl_exp_set_family(exp, AF_INET); break; in main()
146 case '6': nfnl_exp_set_family(exp, AF_INET6); break; in main()
149 case 'i': nl_cli_exp_parse_id(exp, optarg); break; in main()
150 case ARG_EXPECT_PROTO: nl_cli_exp_parse_l4protonum(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main()
151 case ARG_EXPECT_SRC: nl_cli_exp_parse_src(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main()
152 case ARG_EXPECT_SPORT: nl_cli_exp_parse_src_port(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main()
153 case ARG_EXPECT_DST: nl_cli_exp_parse_dst(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main()
154 case ARG_EXPECT_DPORT: nl_cli_exp_parse_dst_port(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main()
[all …]
Dnf-exp-delete.c62 struct nfnl_exp *exp; in main() local
69 exp = nl_cli_exp_alloc(); in main()
129 case '4': nfnl_exp_set_family(exp, AF_INET); break; in main()
130 case '6': nfnl_exp_set_family(exp, AF_INET6); break; in main()
133 case 'i': nl_cli_exp_parse_id(exp, optarg); break; in main()
134 case ARG_EXPECT_PROTO: nl_cli_exp_parse_l4protonum(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main()
135 case ARG_EXPECT_SRC: nl_cli_exp_parse_src(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main()
136 case ARG_EXPECT_SPORT: nl_cli_exp_parse_src_port(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main()
137 case ARG_EXPECT_DST: nl_cli_exp_parse_dst(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main()
138 case ARG_EXPECT_DPORT: nl_cli_exp_parse_dst_port(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main()
[all …]
Dnf-exp-list.c55 struct nfnl_exp *exp; in main() local
61 exp = nl_cli_exp_alloc(); in main()
110 case '4': nfnl_exp_set_family(exp, AF_INET); break; in main()
111 case '6': nfnl_exp_set_family(exp, AF_INET6); break; in main()
115 case 'i': nl_cli_exp_parse_id(exp, optarg); break; in main()
116 case ARG_EXPECT_PROTO: nl_cli_exp_parse_l4protonum(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main()
117 case ARG_EXPECT_SRC: nl_cli_exp_parse_src(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main()
118 case ARG_EXPECT_SPORT: nl_cli_exp_parse_src_port(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main()
119 case ARG_EXPECT_DST: nl_cli_exp_parse_dst(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main()
120 case ARG_EXPECT_DPORT: nl_cli_exp_parse_dst_port(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main()
[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/mindspore/tests/st/ops/cpu/
Dtest_mul_op.py54 exp = x0.asnumpy() * y0.asnumpy()
55 diff = np.abs(out - exp)
56 err = np.ones(shape=exp.shape) * 1.0e-5
58 assert out.shape == exp.shape
61 exp = x1.asnumpy() * y1.asnumpy()
62 diff = np.abs(out - exp)
63 err = np.ones(shape=exp.shape) * 1.0e-5
65 assert out.shape == exp.shape
68 exp = x2.asnumpy() * y2.asnumpy()
69 diff = np.abs(out - exp)
[all …]
Dtest_tensoradd.py52 exp = x0.asnumpy() + y0.asnumpy()
53 diff = np.abs(out - exp)
54 err = np.ones(shape=exp.shape) * 1.0e-5
56 assert out.shape == exp.shape
59 exp = x1.asnumpy() + y1.asnumpy()
60 diff = np.abs(out - exp)
61 err = np.ones(shape=exp.shape) * 1.0e-5
63 assert out.shape == exp.shape
66 exp = x2.asnumpy() + y2.asnumpy()
67 diff = np.abs(out - exp)
[all …]
/third_party/gettext/gettext-tools/src/
Dcldr-plural.y288 const char *exp = arg->cp;
298 if (exp[0] == '\0')
300 arg->cp = exp;
304 if (exp[0] != ' ' && exp[0] != '\t')
307 ++exp;
310 length = u8_mbtouc (&uc, (const uint8_t *) exp, arg->cp_end - exp);
313 arg->cp = exp + length;
316 else if (strncmp ("...", exp, 3) == 0)
318 arg->cp = exp + 3;
321 else if (strncmp ("..", exp, 2) == 0)
[all …]
Dwrite-csharp.c284 is_expression_boolean (struct expression *exp) in is_expression_boolean() argument
286 switch (exp->operation) in is_expression_boolean()
306 return (exp->val.num == 0 || exp->val.num == 1); in is_expression_boolean()
308 return is_expression_boolean (exp->val.args[1]) in is_expression_boolean()
309 && is_expression_boolean (exp->val.args[2]); in is_expression_boolean()
319 write_csharp_expression (FILE *stream, const struct expression *exp, bool as_boolean) in write_csharp_expression() argument
326 switch (exp->operation) in write_csharp_expression()
329 fprintf (stream, "%s", exp->val.num ? "true" : "false"); in write_csharp_expression()
333 write_csharp_expression (stream, exp->val.args[0], true); in write_csharp_expression()
338 write_csharp_expression (stream, exp->val.args[0], false); in write_csharp_expression()
[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/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
/third_party/abseil-cpp/absl/strings/internal/str_format/
Dfloat_conversion.cc108 static constexpr int ChunksNeeded(int exp) { in ChunksNeeded() argument
112 return (128 + exp + 31) / 32 * 11 / 10; in ChunksNeeded()
118 static void RunConversion(uint128 v, int exp, in RunConversion() argument
120 assert(exp > 0); in RunConversion()
121 assert(exp <= std::numeric_limits<long double>::max_exponent); in RunConversion()
128 ChunksNeeded(exp), in RunConversion()
129 [=](absl::Span<uint32_t> input) { f(BinaryToDecimal(input, v, exp)); }); in RunConversion()
155 BinaryToDecimal(absl::Span<uint32_t> data, uint128 v, int exp) : data_(data) { in BinaryToDecimal() argument
173 int chunk_index = exp / 32; in BinaryToDecimal()
174 decimal_start_ = decimal_end_ = ChunksNeeded(exp); in BinaryToDecimal()
[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/flatbuffers/tests/
Dtest_assert.h19 #define TEST_EQ(exp, val) TestEq(exp, val, "'" #exp "' != '" #val "'", __FILE__, __LINE__, "") argument
22 #define TEST_EQ_STR(exp, val) TestEqStr(exp, val, "'" #exp "' != '" #val "'", __FILE__, __LINE__, "… argument
26 …#define TEST_EQ_FUNC(exp, val) TestEq(exp, val, "'" #exp "' != '" #val "'", __FILE__, __LINE__, __… argument
29 …#define TEST_EQ_FUNC(exp, val) TestEq(exp, val, "'" #exp "' != '" #val "'", __FILE__, __LINE__, __… argument
39 const char *exp, const char *file,
53 void TestFail(const char *expval, const char *val, const char *exp,
56 void TestEqStr(const char *expval, const char *val, const char *exp,
90 void TestEq(T expval, U val, const char *exp, const char *file, int line,
94 flatbuffers::NumToString(scalar_as_underlying(val)).c_str(), exp,
101 std::string val, const char *exp,
[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 …]
/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/boost/libs/gil/test/core/channel/
Dtest_fixture.cpp23 fixture::channel_minmax_value<channel_t> exp; in operator ()() local
24 BOOST_TEST_EQ(fix.min_v_, exp.min_v_); in operator ()()
25 BOOST_TEST_EQ(fix.max_v_, exp.max_v_); in operator ()()
40 fixture::channel_minmax_value<channel_t> exp; in operator ()() local
41 BOOST_TEST_EQ(fix.min_v_, exp.min_v_); in operator ()()
42 BOOST_TEST_EQ(fix.max_v_, exp.max_v_); in operator ()()
57 fixture::channel_minmax_value<channel_t> exp; in operator ()() local
58 BOOST_TEST_EQ(fix.min_v_, exp.min_v_); in operator ()()
59 BOOST_TEST_EQ(fix.max_v_, exp.max_v_); in operator ()()
74 fixture::channel_minmax_value<channel_t> exp; in operator ()() local
[all …]

12345678910>>...66