Home
last modified time | relevance | path

Searched refs:ARRAY_LEN (Results 1 – 21 of 21) sorted by relevance

/external/libvorbis/test/
Dtest.c43 gen_windowed_sine (data_out, ARRAY_LEN (data_out), 0.95); in main()
49 for (k = 0 ; k < ARRAY_LEN (sample_rates); k ++) { in main()
57 set_data_in (data_in, ARRAY_LEN (data_in), 3.141); in main()
59 write_vorbis_data_or_die (filename, sample_rates [k], q, data_out, ARRAY_LEN (data_out),ch); in main()
60 read_vorbis_data_or_die (filename, sample_rates [k], data_in, ARRAY_LEN (data_in)); in main()
62 if (check_output (data_in, ARRAY_LEN (data_in), (.15f - .1f*q)) != 0) in main()
Dutil.h18 #define ARRAY_LEN(x) (sizeof(x)/sizeof(x[0])) macro
/external/toybox/
Dmain.c44 top = ARRAY_LEN(toy_list)-1; in toy_find()
93 toys.toycount = ARRAY_LEN(toy_list); in toy_singleinit()
170 for (i=1; i<ARRAY_LEN(toy_list); i++) { in toybox_main()
Dtoys.h146 #define ARRAY_LEN(array) (sizeof(array)/sizeof(*array)) macro
/external/toybox/toys/other/
Dnsenter.c124 for (i = 0; i<ARRAY_LEN(flags); i++) in unshare_main()
134 for (i = 0; i<ARRAY_LEN(flags); i++) { in unshare_main()
Drfkill.c53 for (i = 0; i < ARRAY_LEN(rftypes); i++) in rfkill_main()
55 if (i == ARRAY_LEN(rftypes)) idx = atolx_range(*optargs, 0, INT_MAX); in rfkill_main()
Doneit.c74 for (i = 0; i<ARRAY_LEN(pipes); i++) xsignal(pipes[i], oneit_signaled); in oneit_main()
Difconfig.c465 } else for (i = 0; i < ARRAY_LEN(try); i++) { in ifconfig_main()
/external/toybox/toys/pending/
Dbrctl.c251 for (i = 0; i < ARRAY_LEN(ss); i++) { in br_set_stp()
254 if (i >= ARRAY_LEN(ss)) error_exit("invalid stp state"); in br_set_stp()
317 for (i = 0; i < ARRAY_LEN(cc); i++) { in brctl_main()
333 if (i == ARRAY_LEN(cc)) { in brctl_main()
Ddd.c116 for (i = 0; i < ARRAY_LEN(suffixes); i++) in strsuftoll()
305 if (!(res = bsearch(&key, operands, ARRAY_LEN(operands), sizeof(struct pair), in dd_main()
339 if (!(res = bsearch(&key, clist, ARRAY_LEN(clist), in dd_main()
Dps.c299 for (i = 0; i<ARRAY_LEN(typos) && !field->which; i++) { in ps_main()
314 if (i == ARRAY_LEN(typos)) error_exit("bad -o %.*s", end-type, type); in ps_main()
Dopenvt.c47 for (i = 0; i < ARRAY_LEN(console_name); i++) {
Dnetstat.c170 int sz = ARRAY_LEN(state_label); in display_data()
347 int sz = ARRAY_LEN(ss_type);//sizeof(ss_type)/sizeof(ss_type[0]); in show_unix_sockets()
351 sz = ARRAY_LEN(ss_state);//sizeof(ss_state)/sizeof(ss_state[0]); in show_unix_sockets()
Ddhcp.c253 .len = ARRAY_LEN(filter_instr),
396 int count, size = ARRAY_LEN(options_list); in strtoopt()
510 int size = ARRAY_LEN(options_list), count, ret = -1; in fill_envp()
934 int size = ARRAY_LEN(options_list); in set_xopt()
1061 int count, optlen, size = ARRAY_LEN(options_list); in dhcpc_parseoptions()
1255 int count, size = ARRAY_LEN(options_list); in free_option_stores()
Ddhcpd.c393 int count, size = ARRAY_LEN(options_list); in strtoopt()
563 int len, linelen, tcount, count, size = ARRAY_LEN(keywords); in parse_server_config()
811 int count, size = ARRAY_LEN(options_list); in set_reqparam()
902 int count, size = ARRAY_LEN(options_list); in set_maxlease()
Darp.c137 for (j = 0; j < ARRAY_LEN(f); j++) { in check_flags()
Dip.c227 parseRPDB("/etc/iproute2/rt_dsfield", alist, ARRAY_LEN(rt_dsfield)); in getlist()
244 parseRPDB("/etc/iproute2/rt_protos", alist, ARRAY_LEN(rt_protos)); in getlist()
252 parseRPDB("/etc/iproute2/rt_realms", alist, ARRAY_LEN(rt_realms)); in getlist()
264 parseRPDB("/etc/iproute2/rt_scopes", alist, ARRAY_LEN(rt_scope)); in getlist()
274 parseRPDB("/etc/iproute2/rt_tables", alist, ARRAY_LEN(rt_tables)); in getlist()
Dfdisk.c138 int i, adjust = 0, size = ARRAY_LEN(sys_types); in list_types()
400 int i, size = ARRAY_LEN(sys_types); in get_type()
/external/toybox/toys/lsb/
Dsu.c77 for (i=0; i < ARRAY_LEN(stuff); i++) if (stuff[i]) putenv(stuff[i]); in su_main()
Dmount.c111 for (i = 0; i < ARRAY_LEN(opts); i++) if (!strcasecmp(opts[i].name, new)) {
121 if (more && i == ARRAY_LEN(opts)) {
/external/toybox/lib/
Dpassword.c17 for (i = 0; i < ARRAY_LEN(al); i++) { in get_salt()