Home
last modified time | relevance | path

Searched refs:opt (Results 1 – 25 of 4510) sorted by relevance

12345678910>>...181

/external/libcxx/test/std/experimental/optional/optional.object/optional.object.assign/
Demplace.pass.cpp63 optional<int> opt; in main() local
64 opt.emplace(); in main()
65 assert(static_cast<bool>(opt) == true); in main()
66 assert(*opt == 0); in main()
69 optional<int> opt; in main() local
70 opt.emplace(1); in main()
71 assert(static_cast<bool>(opt) == true); in main()
72 assert(*opt == 1); in main()
75 optional<int> opt(2); in main() local
76 opt.emplace(); in main()
[all …]
Dassign_value.pass.cpp40 optional<int> opt; in main() local
41 opt = 1; in main()
42 assert(static_cast<bool>(opt) == true); in main()
43 assert(*opt == 1); in main()
46 optional<int> opt; in main() local
48 opt = i; in main()
49 assert(static_cast<bool>(opt) == true); in main()
50 assert(*opt == i); in main()
53 optional<int> opt(3); in main() local
55 opt = i; in main()
[all …]
Dcopy.pass.cpp42 optional<int> opt; in main() local
44 opt = opt2; in main()
46 assert(static_cast<bool>(opt) == static_cast<bool>(opt2)); in main()
49 optional<int> opt; in main() local
51 opt = opt2; in main()
54 assert(static_cast<bool>(opt) == static_cast<bool>(opt2)); in main()
55 assert(*opt == *opt2); in main()
58 optional<int> opt(3); in main() local
60 opt = opt2; in main()
62 assert(static_cast<bool>(opt) == static_cast<bool>(opt2)); in main()
[all …]
Dmove.pass.cpp51 optional<int> opt; in main() local
53 opt = std::move(opt2); in main()
55 assert(static_cast<bool>(opt) == static_cast<bool>(opt2)); in main()
58 optional<int> opt; in main() local
60 opt = std::move(opt2); in main()
63 assert(static_cast<bool>(opt) == static_cast<bool>(opt2)); in main()
64 assert(*opt == *opt2); in main()
67 optional<int> opt(3); in main() local
69 opt = std::move(opt2); in main()
71 assert(static_cast<bool>(opt) == static_cast<bool>(opt2)); in main()
[all …]
/external/toybox/tests/
Ddd.test9 opt="2>/dev/null"
13 testing "dd if=(file)" "dd if=input $opt" "I WANT\n" "I WANT\n" ""
14 testing "dd of=(file)" "dd of=file $opt && cat file" "I WANT\n" "" "I WANT\n"
15 testing "dd if=file of=file" "dd if=input of=foo $opt && cat foo && rm -f foo" \
17 testing "dd if=file | dd of=file" "dd if=input $opt | dd of=foo $opt &&
19 testing "dd (stdout)" "dd $opt" "I WANT\n" "" "I WANT\n"
21 "dd if=input of=outFile seek=8860 bs=1M conv=sync,noerror $opt &&
24 "dd if=input of=/dev/null $opt && echo 'yes'" "yes\n" "I WANT\n" ""
26 "dd if=/dev/zero of=sda.txt bs=512 count=1 $opt &&
29 "dd if=/dev/zero of=sda.txt ibs=512 obs=256 count=1 $opt &&
[all …]
/external/ppp/pppd/
Doptions.c376 option_t *opt; local
385 opt = find_option(arg);
386 if (opt == NULL) {
391 n = n_arguments(opt);
396 if (!process_option(opt, arg, argv))
417 option_t *opt; local
453 opt = find_option(cmd);
454 if (opt == NULL) {
459 n = n_arguments(opt);
469 if (!process_option(opt, cmd, argv))
[all …]
/external/clang/lib/Driver/
DToolChains.h104 void init(const llvm::Triple &TargetTriple, const llvm::opt::ArgList &Args,
145 const llvm::opt::ArgList &Args,
151 const llvm::opt::ArgList &Args,
173 void init(const llvm::Triple &TargetTriple, const llvm::opt::ArgList &Args);
198 const llvm::opt::ArgList &Args);
227 const llvm::opt::ArgList &DriverArgs,
228 llvm::opt::ArgStringList &CC1Args) const;
250 const llvm::opt::ArgList &Args);
258 StringRef getMachOArchName(const llvm::opt::ArgList &Args) const;
261 virtual void AddLinkARCArgs(const llvm::opt::ArgList &Args, in AddLinkARCArgs()
[all …]
/external/iproute2/tc/
Dq_sfq.c41 struct tc_sfq_qopt_v1 opt; in sfq_parse_opt() local
47 memset(&opt, 0, sizeof(opt)); in sfq_parse_opt()
52 if (get_size(&opt.v0.quantum, *argv)) { in sfq_parse_opt()
59 if (get_integer(&opt.v0.perturb_period, *argv, 0)) { in sfq_parse_opt()
66 if (get_u32(&opt.v0.limit, *argv, 0)) { in sfq_parse_opt()
70 if (opt.v0.limit < 2) { in sfq_parse_opt()
77 if (get_u32(&opt.v0.divisor, *argv, 0)) { in sfq_parse_opt()
84 if (get_u32(&opt.v0.flows, *argv, 0)) { in sfq_parse_opt()
91 if (get_u32(&opt.depth, *argv, 0)) { in sfq_parse_opt()
97 opt.headdrop = 1; in sfq_parse_opt()
[all …]
Dq_sfb.c54 struct tc_sfb_qopt opt; in sfb_parse_opt() local
57 memset(&opt, 0, sizeof(opt)); in sfb_parse_opt()
58 opt.rehash_interval = 600*1000; in sfb_parse_opt()
59 opt.warmup_time = 60*1000; in sfb_parse_opt()
60 opt.penalty_rate = 10; in sfb_parse_opt()
61 opt.penalty_burst = 20; in sfb_parse_opt()
62 opt.increment = (SFB_MAX_PROB + 1000) / 2000; in sfb_parse_opt()
63 opt.decrement = (SFB_MAX_PROB + 10000) / 20000; in sfb_parse_opt()
68 if (get_u32(&opt.rehash_interval, *argv, 0)) { in sfb_parse_opt()
74 if (get_u32(&opt.warmup_time, *argv, 0)) { in sfb_parse_opt()
[all …]
Dq_choke.c37 struct tc_red_qopt opt; in choke_parse_opt() local
48 memset(&opt, 0, sizeof(opt)); in choke_parse_opt()
53 if (get_unsigned(&opt.limit, *argv, 0)) { in choke_parse_opt()
67 if (get_unsigned(&opt.qth_min, *argv, 0)) { in choke_parse_opt()
73 if (get_unsigned(&opt.qth_max, *argv, 0)) { in choke_parse_opt()
106 if (!rate || !opt.limit) { in choke_parse_opt()
115 if (!opt.qth_max) in choke_parse_opt()
116 opt.qth_max = opt.limit / 4; in choke_parse_opt()
117 if (!opt.qth_min) in choke_parse_opt()
118 opt.qth_min = opt.qth_max / 3; in choke_parse_opt()
[all …]
Dq_red.c38 struct tc_red_qopt opt; in red_parse_opt() local
48 memset(&opt, 0, sizeof(opt)); in red_parse_opt()
53 if (get_size(&opt.limit, *argv)) { in red_parse_opt()
59 if (get_size(&opt.qth_min, *argv)) { in red_parse_opt()
65 if (get_size(&opt.qth_max, *argv)) { in red_parse_opt()
94 opt.flags |= TC_RED_ECN; in red_parse_opt()
96 opt.flags |= TC_RED_HARDDROP; in red_parse_opt()
98 opt.flags |= TC_RED_ADAPTATIVE; in red_parse_opt()
100 opt.flags |= TC_RED_ADAPTATIVE; in red_parse_opt()
112 if (!opt.limit || !avpkt) { in red_parse_opt()
[all …]
Dq_gred.c52 struct tc_gred_sopt opt = { 0 }; in init_gred() local
55 opt.def_DP = MAX_DPs; in init_gred()
62 if (get_unsigned(&opt.DPs, *argv, 10)) { in init_gred()
65 } else if (opt.DPs > MAX_DPs) { in init_gred()
71 if (opt.DPs == 0) { in init_gred()
77 if (get_unsigned(&opt.def_DP, *argv, 10)) { in init_gred()
80 } else if (opt.def_DP >= opt.DPs) { in init_gred()
86 opt.grio = 1; in init_gred()
104 if (!opt.DPs || opt.def_DP == MAX_DPs) { in init_gred()
109 DPRINTF("TC_GRED: sending DPs=%u def_DP=%u\n",opt.DPs,opt.def_DP); in init_gred()
[all …]
/external/llvm/tools/llvm-objdump/
Dllvm-objdump.h24 extern cl::opt<std::string> TripleName;
25 extern cl::opt<std::string> ArchName;
26 extern cl::opt<std::string> MCPU;
29 extern cl::opt<bool> Disassemble;
30 extern cl::opt<bool> DisassembleAll;
31 extern cl::opt<bool> NoShowRawInsn;
32 extern cl::opt<bool> PrivateHeaders;
33 extern cl::opt<bool> ExportsTrie;
34 extern cl::opt<bool> Rebase;
35 extern cl::opt<bool> Bind;
[all …]
/external/iproute2/ip/
Dip.c183 char *opt = argv[1]; in main() local
185 if (strcmp(opt, "--") == 0) { in main()
189 if (opt[0] != '-') in main()
191 if (opt[1] == '-') in main()
192 opt++; in main()
193 if (matches(opt, "-loops") == 0) { in main()
199 } else if (matches(opt, "-family") == 0) { in main()
210 } else if (strcmp(opt, "-4") == 0) { in main()
212 } else if (strcmp(opt, "-6") == 0) { in main()
214 } else if (strcmp(opt, "-0") == 0) { in main()
[all …]
/external/libxml2/win32/
Dconfigure.js85 function boolToStr(opt) argument
87 if (opt == false)
89 else if (opt == true)
97 function strToBool(opt) argument
99 if (opt == 0 || opt == "no")
101 else if (opt == 1 || opt == "yes")
447 var arg, opt; variable
449 opt = arg.substring(0, arg.indexOf("="));
450 if (opt.length == 0)
451 opt = arg.substring(0, arg.indexOf(":"));
[all …]
/external/dhcpcd-6.8.2/
Ddhcp-common.c47 dhcp_print_option_encoding(const struct dhcp_opt *opt, int cols) in dhcp_print_option_encoding() argument
55 if (opt->type & EMBED) in dhcp_print_option_encoding()
57 if (opt->type & ENCAP) in dhcp_print_option_encoding()
59 if (opt->type & INDEX) in dhcp_print_option_encoding()
61 if (opt->type & ARRAY) in dhcp_print_option_encoding()
63 if (opt->type & UINT8) in dhcp_print_option_encoding()
65 else if (opt->type & UINT16) in dhcp_print_option_encoding()
67 else if (opt->type & SINT16) in dhcp_print_option_encoding()
69 else if (opt->type & UINT32) in dhcp_print_option_encoding()
71 else if (opt->type & SINT32) in dhcp_print_option_encoding()
[all …]
/external/elfutils/libdwfl/
Dargp-std.c127 struct parse_opt *opt = calloc (1, sizeof (*opt)); in parse_opt() local
128 if (opt == NULL) in parse_opt()
130 state->hook = opt; in parse_opt()
140 struct parse_opt *opt = state->hook; in parse_opt() local
141 Dwfl *dwfl = opt->dwfl; in parse_opt()
147 opt->dwfl = dwfl; in parse_opt()
160 opt->e = arg; in parse_opt()
166 struct parse_opt *opt = state->hook; in parse_opt() local
167 if (opt->dwfl == NULL) in parse_opt()
177 opt->dwfl = dwfl; in parse_opt()
[all …]
/external/clang/include/clang/Driver/
DToolChain.h26 namespace opt {
71 const llvm::opt::ArgList &Args;
73 const llvm::opt::Arg *const CachedRTTIArg;
99 const llvm::opt::ArgList &Args);
107 static void addSystemInclude(const llvm::opt::ArgList &DriverArgs,
108 llvm::opt::ArgStringList &CC1Args,
110 static void addExternCSystemInclude(const llvm::opt::ArgList &DriverArgs,
111 llvm::opt::ArgStringList &CC1Args,
114 addExternCSystemIncludeIfExists(const llvm::opt::ArgList &DriverArgs,
115 llvm::opt::ArgStringList &CC1Args,
[all …]
/external/pcre/dist/
DRunTest152 for opt in "" "-s" "-dfa" "-s -dfa"; do
153 ./pcretest -q $opt $testdata/testinputEBC >testtry
159 if [ "$opt" = "-s" ] ; then echo " OK with study"
160 elif [ "$opt" = "-dfa" ] ; then echo " OK using DFA"
161 elif [ "$opt" = "-s -dfa" ] ; then echo " OK using DFA with study"
425 for opt in "" "-s" $jitopt; do
426 $sim $valgrind ./pcretest -q $bmode $opt $testdata/testinput1 testtry
432 if [ "$opt" = "-s" ] ; then echo " OK with study"
433 elif [ "$opt" = "-s+" ] ; then echo " OK with JIT study"
443 for opt in "" "-s" $jitopt; do
[all …]
/external/toybox/lib/
Dargs.c115 struct opts *opt; member
132 static int gotflag(struct getoptflagstate *gof, struct opts *opt) in gotflag() argument
137 if (!opt) { in gotflag()
143 if (toys.optflags & opt->dex[0]) { in gotflag()
149 if (clr->arg && (i & toys.optflags & opt->dex[0])) *clr->arg = 0; in gotflag()
150 toys.optflags &= ~opt->dex[0]; in gotflag()
154 toys.optflags |= opt->dex[1]; in gotflag()
155 gof->excludes |= opt->dex[2]; in gotflag()
156 if (opt->flags&2) gof->stopearly=2; in gotflag()
163 if (opt == bad || !(i & toys.optflags)) continue; in gotflag()
[all …]
/external/libpng/scripts/
Doptions.awk261 opt = $2
262 sub(/,$/,"",opt)
263 onoff = option[opt] # records current (and the default is "", enabled)
272 print "option", opt ": ERROR: missing continuation line"
274 print "option", opt ": ERROR: error reading continuation line"
294 print "option", opt ": ERROR: turning unrecognized option", val
303 print "option", opt ": currently", onoff ": attempt to turn", val
310 requires[opt] = requires[opt] " " val
312 iffs[opt] = iffs[opt] " " val
314 enabledby[val] = enabledby[val] " " opt
[all …]
/external/libcxx/test/std/experimental/optional/optional.object/optional.object.ctor/
Din_place_t.pass.cpp67 constexpr optional<int> opt(in_place, 5); in main() local
68 static_assert(static_cast<bool>(opt) == true, ""); in main()
69 static_assert(*opt == 5, ""); in main()
80 const optional<X> opt(in_place); in main() local
81 assert(static_cast<bool>(opt) == true); in main()
82 assert(*opt == X()); in main()
85 const optional<X> opt(in_place, 5); in main() local
86 assert(static_cast<bool>(opt) == true); in main()
87 assert(*opt == X(5)); in main()
90 const optional<X> opt(in_place, 5, 4); in main() local
[all …]
/external/jdiff/src/jdiff/
DOptions.java36 String opt = option.toLowerCase(); in optionLength() local
39 if (opt.equals("-authorid")) return 2; in optionLength()
40 if (opt.equals("-versionid")) return 2; in optionLength()
41 if (opt.equals("-d")) return 2; in optionLength()
42 if (opt.equals("-classlist")) return 1; in optionLength()
43 if (opt.equals("-title")) return 2; in optionLength()
44 if (opt.equals("-docletid")) return 1; in optionLength()
45 if (opt.equals("-evident")) return 2; in optionLength()
46 if (opt.equals("-skippkg")) return 2; in optionLength()
47 if (opt.equals("-skipclass")) return 2; in optionLength()
[all …]
/external/libvpx/libvpx/build/make/
Drtcd.pl33 foreach my $opt (qw/arch config/) {
34 if (!defined($opts{$opt})) {
35 warn "--$opt is required!\n";
69 foreach my $opt (@_) {
70 eval "\$${fn}_${opt}=${fn}_${opt}";
82 foreach my $opt (@_) {
83 my $ofn = eval "\$${fn}_${opt}";
95 eval "\$${fn}_default=${fn}_${opt}";
96 eval "\$${fn}_${opt}_link='true'";
133 foreach my $opt (@_) {
[all …]
/external/libcxx/test/std/experimental/optional/optional.hash/
Dhash.pass.cpp27 optional<T> opt; in main() local
28 assert(std::hash<optional<T>>{}(opt) == 0); in main()
29 opt = 2; in main()
30 assert(std::hash<optional<T>>{}(opt) == std::hash<T>{}(*opt)); in main()
34 optional<T> opt; in main() local
35 assert(std::hash<optional<T>>{}(opt) == 0); in main()
36 opt = std::string("123"); in main()
37 assert(std::hash<optional<T>>{}(opt) == std::hash<T>{}(*opt)); in main()
41 optional<T> opt; in main() local
42 assert(std::hash<optional<T>>{}(opt) == 0); in main()
[all …]

12345678910>>...181