Home
last modified time | relevance | path

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

12345678910>>...94

/external/python/cpython2/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 …]
/external/python/cpython3/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 …]
/external/deqp/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 …]
/external/libnl/lib/netfilter/
Dexp_obj.c60 struct nfnl_exp *exp = (struct nfnl_exp *) c; in exp_free_data() local
62 if (exp == NULL) in exp_free_data()
65 nl_addr_put(exp->exp_expect.src); in exp_free_data()
66 nl_addr_put(exp->exp_expect.dst); in exp_free_data()
67 nl_addr_put(exp->exp_master.src); in exp_free_data()
68 nl_addr_put(exp->exp_master.dst); in exp_free_data()
69 nl_addr_put(exp->exp_mask.src); in exp_free_data()
70 nl_addr_put(exp->exp_mask.dst); in exp_free_data()
71 nl_addr_put(exp->exp_nat.src); in exp_free_data()
72 nl_addr_put(exp->exp_nat.dst); in exp_free_data()
[all …]
Dexp.c71 static int exp_parse_ip(struct nfnl_exp *exp, int tuple, struct nlattr *attr) in exp_parse_ip() argument
85 err = nfnl_exp_set_src(exp, tuple, addr); in exp_parse_ip()
94 err = nfnl_exp_set_dst(exp, tuple, addr); in exp_parse_ip()
103 err = nfnl_exp_set_src(exp, tuple, addr); in exp_parse_ip()
112 err = nfnl_exp_set_dst(exp, tuple, addr); in exp_parse_ip()
126 static int exp_parse_proto(struct nfnl_exp *exp, int tuple, struct nlattr *attr) in exp_parse_proto() argument
138 nfnl_exp_set_l4protonum(exp, tuple, nla_get_u8(tb[CTA_PROTO_NUM])); in exp_parse_proto()
145 nfnl_exp_set_ports(exp, tuple, srcport, dstport); in exp_parse_proto()
154 nfnl_exp_set_icmp(exp, tuple, icmpid, icmptype, icmpcode); in exp_parse_proto()
158 static int exp_parse_tuple(struct nfnl_exp *exp, int tuple, struct nlattr *attr) in exp_parse_tuple() argument
[all …]
/external/libnl/src/lib/
Dexp.c19 struct nfnl_exp *exp; in nl_cli_exp_alloc() local
21 exp = nfnl_exp_alloc(); in nl_cli_exp_alloc()
22 if (!exp) in nl_cli_exp_alloc()
25 return exp; in nl_cli_exp_alloc()
33 void nl_cli_exp_parse_family(struct nfnl_exp *exp, char *arg) in nl_cli_exp_parse_family() argument
42 nfnl_exp_set_family(exp, family); in nl_cli_exp_parse_family()
45 void nl_cli_exp_parse_timeout(struct nfnl_exp *exp, char *arg) in nl_cli_exp_parse_timeout() argument
48 nfnl_exp_set_timeout(exp, timeout); in nl_cli_exp_parse_timeout()
51 void nl_cli_exp_parse_id(struct nfnl_exp *exp, char *arg) in nl_cli_exp_parse_id() argument
54 nfnl_exp_set_id(exp, id); in nl_cli_exp_parse_id()
[all …]
/external/libnetfilter_conntrack/src/expect/
Dbuild.c14 const struct nf_expect *exp) in __build_timeout() argument
16 nfnl_addattr32(&req->nlh, size, CTA_EXPECT_TIMEOUT,htonl(exp->timeout)); in __build_timeout()
20 const struct nf_expect *exp) in __build_zone() argument
22 nfnl_addattr16(&req->nlh, size, CTA_EXPECT_ZONE, htons(exp->zone)); in __build_zone()
26 size_t size, const struct nf_expect *exp) in __build_flags() argument
28 nfnl_addattr32(&req->nlh, size, CTA_EXPECT_FLAGS,htonl(exp->flags)); in __build_flags()
33 const struct nf_expect *exp) in __build_class() argument
35 nfnl_addattr32(&req->nlh, size, CTA_EXPECT_CLASS, htonl(exp->class)); in __build_class()
39 const struct nf_expect *exp) in __build_helper_name() argument
42 exp->helper_name, strlen(exp->helper_name)+1); in __build_helper_name()
[all …]
Dparse.c31 struct nf_expect *exp) in __parse_expect() argument
36 exp->expected.orig.l3protonum = nfhdr->nfgen_family; in __parse_expect()
37 set_bit(ATTR_ORIG_L3PROTO, exp->expected.set); in __parse_expect()
39 exp->mask.orig.l3protonum = nfhdr->nfgen_family; in __parse_expect()
40 set_bit(ATTR_ORIG_L3PROTO, exp->mask.set); in __parse_expect()
42 exp->master.orig.l3protonum = nfhdr->nfgen_family; in __parse_expect()
43 set_bit(ATTR_ORIG_L3PROTO, exp->master.set); in __parse_expect()
47 &exp->master.orig, in __parse_expect()
49 exp->master.set); in __parse_expect()
50 set_bit(ATTR_EXP_MASTER, exp->set); in __parse_expect()
[all …]
Dgetter.c12 static const void *get_exp_attr_master(const struct nf_expect *exp) in get_exp_attr_master() argument
14 return &exp->master; in get_exp_attr_master()
17 static const void *get_exp_attr_expected(const struct nf_expect *exp) in get_exp_attr_expected() argument
19 return &exp->expected; in get_exp_attr_expected()
22 static const void *get_exp_attr_mask(const struct nf_expect *exp) in get_exp_attr_mask() argument
24 return &exp->mask; in get_exp_attr_mask()
27 static const void *get_exp_attr_timeout(const struct nf_expect *exp) in get_exp_attr_timeout() argument
29 return &exp->timeout; in get_exp_attr_timeout()
32 static const void *get_exp_attr_zone(const struct nf_expect *exp) in get_exp_attr_zone() argument
34 return &exp->zone; in get_exp_attr_zone()
[all …]
Dsetter.c12 static void set_exp_attr_master(struct nf_expect *exp, const void *value) in set_exp_attr_master() argument
14 exp->master = *((struct nfct_tuple_head *) value); in set_exp_attr_master()
17 static void set_exp_attr_expected(struct nf_expect *exp, const void *value) in set_exp_attr_expected() argument
19 exp->expected = *((struct nfct_tuple_head *) value); in set_exp_attr_expected()
22 static void set_exp_attr_mask(struct nf_expect *exp, const void *value) in set_exp_attr_mask() argument
24 exp->mask = *((struct nfct_tuple_head *) value); in set_exp_attr_mask()
27 static void set_exp_attr_timeout(struct nf_expect *exp, const void *value) in set_exp_attr_timeout() argument
29 exp->timeout = *((uint32_t *) value); in set_exp_attr_timeout()
32 static void set_exp_attr_zone(struct nf_expect *exp, const void *value) in set_exp_attr_zone() argument
34 exp->zone = *((uint16_t *) value); in set_exp_attr_zone()
[all …]
Dapi.c30 struct nf_expect *exp; in nfexp_new() local
32 exp = malloc(sizeof(struct nf_expect)); in nfexp_new()
33 if (!exp) in nfexp_new()
36 memset(exp, 0, sizeof(struct nf_expect)); in nfexp_new()
38 return exp; in nfexp_new()
45 void nfexp_destroy(struct nf_expect *exp) in nfexp_destroy() argument
47 assert(exp != NULL); in nfexp_destroy()
48 free(exp); in nfexp_destroy()
49 exp = NULL; /* bugtrap */ in nfexp_destroy()
56 size_t nfexp_sizeof(const struct nf_expect *exp) in nfexp_sizeof() argument
[all …]
Dparse_mnl.c50 int nfexp_nlmsg_parse(const struct nlmsghdr *nlh, struct nf_expect *exp) in nfexp_nlmsg_parse() argument
59 exp->expected.orig.l3protonum = nfg->nfgen_family; in nfexp_nlmsg_parse()
60 set_bit(ATTR_ORIG_L3PROTO, exp->expected.set); in nfexp_nlmsg_parse()
62 nfct_parse_tuple(tb[CTA_EXPECT_MASTER], &exp->master.orig, in nfexp_nlmsg_parse()
63 __DIR_ORIG, exp->master.set); in nfexp_nlmsg_parse()
64 set_bit(ATTR_EXP_MASTER, exp->set); in nfexp_nlmsg_parse()
67 exp->mask.orig.l3protonum = nfg->nfgen_family; in nfexp_nlmsg_parse()
68 set_bit(ATTR_ORIG_L3PROTO, exp->mask.set); in nfexp_nlmsg_parse()
70 nfct_parse_tuple(tb[CTA_EXPECT_TUPLE], &exp->expected.orig, in nfexp_nlmsg_parse()
71 __DIR_ORIG, exp->expected.set); in nfexp_nlmsg_parse()
[all …]
Dsnprintf_default.c14 const struct nf_expect *exp) in __snprintf_expect_timeout() argument
16 if (test_bit(ATTR_EXP_TIMEOUT, exp->set)) in __snprintf_expect_timeout()
17 return snprintf(buf, len, "%u ", exp->timeout); in __snprintf_expect_timeout()
24 const struct nf_expect *exp) in __snprintf_expect_class() argument
26 if (test_bit(ATTR_EXP_CLASS, exp->set)) in __snprintf_expect_class()
27 return snprintf(buf, len, "class=%u ", exp->class); in __snprintf_expect_class()
34 const struct nf_expect *exp) in __snprintf_expect_proto() argument
37 exp->expected.orig.protonum)); in __snprintf_expect_proto()
42 const struct nf_expect *exp, in __snprintf_expect_default() argument
65 ret = __snprintf_expect_timeout(buf+offset, len, exp); in __snprintf_expect_default()
[all …]
/external/rust/crates/serde_json/tests/lexical/
Dfloat.rs9 fn check_normalize(mant: u64, exp: i32, shift: u32, r_mant: u64, r_exp: i32) { in check_normalize()
10 let mut x = ExtendedFloat { mant, exp }; in check_normalize()
16 exp: r_exp in check_normalize()
86 fn check_round_to_f32(mant: u64, exp: i32, r_mant: u64, r_exp: i32) { in check_round_to_f32()
87 let mut x = ExtendedFloat { mant, exp }; in check_round_to_f32()
93 exp: r_exp in check_round_to_f32()
127 fn check_round_to_f64(mant: u64, exp: i32, r_mant: u64, r_exp: i32) { in check_round_to_f64()
128 let mut x = ExtendedFloat { mant, exp }; in check_round_to_f64()
134 exp: r_exp in check_round_to_f64()
250 exp: -213, in to_f32_test()
[all …]
Drounding.rs55 let mut fp = ExtendedFloat { mant: 0x60, exp: 0 }; in round_nearest_test()
62 let mut fp = ExtendedFloat { mant: 0x61, exp: 0 }; in round_nearest_test()
69 let mut fp = ExtendedFloat { mant: 0x5F, exp: 0 }; in round_nearest_test()
81 let mut fp = ExtendedFloat { mant: 0x00, exp: 0 }; in round_downward_test()
86 let mut fp = ExtendedFloat { mant: 0x40, exp: 0 }; in round_downward_test()
91 let mut fp = ExtendedFloat { mant: 0x60, exp: 0 }; in round_downward_test()
96 let mut fp = ExtendedFloat { mant: 0x70, exp: 0 }; in round_downward_test()
104 let mut fp = ExtendedFloat { mant: 0x60, exp: 0 }; in round_nearest_tie_even_test()
109 let mut fp = ExtendedFloat { mant: 0x20, exp: 0 }; in round_nearest_tie_even_test()
114 let mut fp = ExtendedFloat { mant: 0x61, exp: 0 }; in round_nearest_tie_even_test()
[all …]
/external/libese/ready_se/google/keymint/KM300/Applet/src/com/android/javacard/keymaster/
DKMDecoder.java75 public short decodeArray(short exp, byte[] buffer, short startOff, short length) { in decodeArray() argument
80 short expLength = KMArray.cast(exp).length(); in decodeArray()
89 type = KMArray.cast(exp).get(index); in decodeArray()
97 private short decode(short exp) { in decode() argument
98 byte type = KMType.getType(exp); in decode()
101 return decodeByteBlob(exp); in decode()
103 return decodeTstr(exp); in decode()
105 return decodeInteger(exp); in decode()
107 return decodeSimpleValue(exp); in decode()
109 return decodeSemanticTagValue(exp); in decode()
[all …]
/external/libese/ready_se/google/keymint/KM200/Applet/src/com/android/javacard/keymaster/
DKMDecoder.java75 public short decodeArray(short exp, byte[] buffer, short startOff, short length) { in decodeArray() argument
80 short expLength = KMArray.cast(exp).length(); in decodeArray()
89 type = KMArray.cast(exp).get(index); in decodeArray()
97 private short decode(short exp) { in decode() argument
98 byte type = KMType.getType(exp); in decode()
101 return decodeByteBlob(exp); in decode()
103 return decodeTstr(exp); in decode()
105 return decodeInteger(exp); in decode()
107 return decodeSimpleValue(exp); in decode()
109 return decodeSemanticTagValue(exp); in decode()
[all …]
/external/webrtc/rtc_base/experiments/
Dquality_rampup_experiment_unittest.cc58 auto exp = QualityRampupExperiment::ParseSettings(); in TEST_F() local
59 EXPECT_EQ(10000, exp.MinPixels()); in TEST_F()
60 EXPECT_EQ(2000, exp.MinDurationMs()); in TEST_F()
63 exp.SetMaxBitrate(/*pixels*/ 10000, kMaxKbps); in TEST_F()
66 EXPECT_FALSE(exp.BwHigh(NowMs(), kAvailableKbps)); in TEST_F()
67 EXPECT_FALSE(exp.BwHigh(AdvanceMs(2000 - 1), kAvailableKbps)); in TEST_F()
68 EXPECT_TRUE(exp.BwHigh(AdvanceMs(1), kAvailableKbps)); in TEST_F()
75 auto exp = QualityRampupExperiment::ParseSettings(); in TEST_F() local
78 exp.SetMaxBitrate(/*pixels*/ 10000, kMaxKbps); in TEST_F()
79 exp.SetMaxBitrate(/*pixels*/ 10000, kMaxKbps - 1); in TEST_F()
[all …]
Dfield_trial_parser_unittest.cc53 DummyExperiment exp("Enabled,f:-1.7,r:2,s:10,p:1,h:x7c"); in TEST() local
54 EXPECT_TRUE(exp.enabled.Get()); in TEST()
55 EXPECT_EQ(exp.factor.Get(), -1.7); in TEST()
56 EXPECT_EQ(exp.retries.Get(), 2); in TEST()
57 EXPECT_EQ(exp.size.Get(), 10u); in TEST()
58 EXPECT_EQ(exp.ping.Get(), true); in TEST()
59 EXPECT_EQ(exp.hash.Get(), "x7c"); in TEST()
66 DummyExperiment exp; in TEST() local
67 EXPECT_TRUE(exp.enabled.Get()); in TEST()
68 EXPECT_EQ(exp.factor.Get(), -1.7); in TEST()
[all …]
Dstruct_parameters_parser_unittest.cc39 DummyConfig exp; in TEST() local
40 exp.Parser()->Parse("e:1,f:-1.7,r:2,s:7,p:1,d:8,l:,"); in TEST()
41 EXPECT_TRUE(exp.enabled); in TEST()
42 EXPECT_EQ(exp.factor, -1.7); in TEST()
43 EXPECT_EQ(exp.retries, 2); in TEST()
44 EXPECT_EQ(exp.size, 7u); in TEST()
45 EXPECT_EQ(exp.ping, true); in TEST()
46 EXPECT_EQ(exp.duration.value().ms(), 8); in TEST()
47 EXPECT_FALSE(exp.latency); in TEST()
51 DummyConfig exp; in TEST() local
[all …]
/external/libnl/src/
Dnf-exp-add.c55 struct nfnl_exp *exp; in main() local
62 exp = nl_cli_exp_alloc(); in main()
137 case '4': nfnl_exp_set_family(exp, AF_INET); break; in main()
138 case '6': nfnl_exp_set_family(exp, AF_INET6); break; in main()
141 case 'i': nl_cli_exp_parse_id(exp, optarg); break; in main()
142 case ARG_EXPECT_PROTO: nl_cli_exp_parse_l4protonum(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main()
143 case ARG_EXPECT_SRC: nl_cli_exp_parse_src(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main()
144 case ARG_EXPECT_SPORT: nl_cli_exp_parse_src_port(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main()
145 case ARG_EXPECT_DST: nl_cli_exp_parse_dst(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main()
146 case ARG_EXPECT_DPORT: nl_cli_exp_parse_dst_port(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main()
[all …]
Dnf-exp-delete.c55 struct nfnl_exp *exp; in main() local
62 exp = nl_cli_exp_alloc(); in main()
122 case '4': nfnl_exp_set_family(exp, AF_INET); break; in main()
123 case '6': nfnl_exp_set_family(exp, AF_INET6); break; in main()
126 case 'i': nl_cli_exp_parse_id(exp, optarg); break; in main()
127 case ARG_EXPECT_PROTO: nl_cli_exp_parse_l4protonum(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main()
128 case ARG_EXPECT_SRC: nl_cli_exp_parse_src(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main()
129 case ARG_EXPECT_SPORT: nl_cli_exp_parse_src_port(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main()
130 case ARG_EXPECT_DST: nl_cli_exp_parse_dst(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main()
131 case ARG_EXPECT_DPORT: nl_cli_exp_parse_dst_port(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main()
[all …]
Dnf-exp-list.c48 struct nfnl_exp *exp; in main() local
54 exp = nl_cli_exp_alloc(); in main()
103 case '4': nfnl_exp_set_family(exp, AF_INET); break; in main()
104 case '6': nfnl_exp_set_family(exp, AF_INET6); break; in main()
108 case 'i': nl_cli_exp_parse_id(exp, optarg); break; in main()
109 case ARG_EXPECT_PROTO: nl_cli_exp_parse_l4protonum(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main()
110 case ARG_EXPECT_SRC: nl_cli_exp_parse_src(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main()
111 case ARG_EXPECT_SPORT: nl_cli_exp_parse_src_port(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main()
112 case ARG_EXPECT_DST: nl_cli_exp_parse_dst(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main()
113 case ARG_EXPECT_DPORT: nl_cli_exp_parse_dst_port(exp, NFNL_EXP_TUPLE_EXPECT, optarg); break; in main()
[all …]
/external/rust/crates/num-bigint/src/biguint/
Dpower.rs13 fn pow(self, exp: &BigUint) -> BigUint { in pow()
14 if self.is_one() || exp.is_zero() { in pow()
18 } else if let Some(exp) = exp.to_u64() { in pow()
19 self.pow(exp) in pow()
20 } else if let Some(exp) = exp.to_u128() { in pow()
21 self.pow(exp) in pow()
34 fn pow(self, exp: BigUint) -> BigUint { in pow()
35 Pow::pow(self, &exp) in pow()
43 fn pow(self, exp: &BigUint) -> BigUint { in pow()
44 if self.is_one() || exp.is_zero() { in pow()
[all …]
/external/arm-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 …]

12345678910>>...94