Home
last modified time | relevance | path

Searched refs:strncmp (Results 1 – 25 of 1225) sorted by relevance

12345678910>>...49

/external/cblas/testing/
Dauxiliary.c9 if( (strncmp( type,"n",1 )==0)||(strncmp( type,"N",1 )==0) ) in get_transpose_type()
11 else if( (strncmp( type,"t",1 )==0)||(strncmp( type,"T",1 )==0) ) in get_transpose_type()
13 else if( (strncmp( type,"c",1 )==0)||(strncmp( type,"C",1 )==0) ) in get_transpose_type()
19 if( (strncmp( type,"u",1 )==0)||(strncmp( type,"U",1 )==0) ) in get_uplo_type()
21 else if( (strncmp( type,"l",1 )==0)||(strncmp( type,"L",1 )==0) ) in get_uplo_type()
26 if( (strncmp( type,"u",1 )==0)||(strncmp( type,"U",1 )==0) ) in get_diag_type()
28 else if( (strncmp( type,"n",1 )==0)||(strncmp( type,"N",1 )==0) ) in get_diag_type()
33 if( (strncmp( type,"l",1 )==0)||(strncmp( type,"L",1 )==0) ) in get_side_type()
35 else if( (strncmp( type,"r",1 )==0)||(strncmp( type,"R",1 )==0) ) in get_side_type()
/external/u-boot/board/compulab/common/
Domap3_display.c273 if (!strncmp(setting, "mode:", 5)) { in parse_setting()
275 } else if (!strncmp(setting, "pixclock:", 9)) { in parse_setting()
277 } else if (!strncmp(setting, "left:", 5)) { in parse_setting()
280 } else if (!strncmp(setting, "right:", 6)) { in parse_setting()
283 } else if (!strncmp(setting, "upper:", 6)) { in parse_setting()
286 } else if (!strncmp(setting, "lower:", 6)) { in parse_setting()
289 } else if (!strncmp(setting, "hsynclen:", 9)) { in parse_setting()
292 } else if (!strncmp(setting, "vsynclen:", 9)) { in parse_setting()
295 } else if (!strncmp(setting, "hsync:", 6)) { in parse_setting()
300 } else if (!strncmp(setting, "vsync:", 6)) { in parse_setting()
[all …]
/external/libcups/cups/
Dppd-localize.c288 if (!strncmp(reason, "media-needed", 12)) in ppdLocalizeIPPReason()
290 else if (!strncmp(reason, "media-jam", 9)) in ppdLocalizeIPPReason()
292 else if (!strncmp(reason, "offline", 7) || in ppdLocalizeIPPReason()
293 !strncmp(reason, "shutdown", 8)) in ppdLocalizeIPPReason()
295 else if (!strncmp(reason, "toner-low", 9)) in ppdLocalizeIPPReason()
297 else if (!strncmp(reason, "toner-empty", 11)) in ppdLocalizeIPPReason()
299 else if (!strncmp(reason, "cover-open", 10)) in ppdLocalizeIPPReason()
301 else if (!strncmp(reason, "interlock-open", 14)) in ppdLocalizeIPPReason()
303 else if (!strncmp(reason, "door-open", 9)) in ppdLocalizeIPPReason()
305 else if (!strncmp(reason, "input-tray-missing", 18)) in ppdLocalizeIPPReason()
[all …]
/external/iperf3/src/
Dt_units.c77 assert(strncmp(s, "1.00 KByte", 11) == 0); in main()
80 assert(strncmp(s, "1.00 MByte", 11) == 0); in main()
83 assert(strncmp(s, "8.00 Kbit", 11) == 0); in main()
86 assert(strncmp(s, "8.00 Mbit", 11) == 0); in main()
90 assert(strncmp(s, "4.00 GByte", 11) == 0); in main()
93 assert(strncmp(s, "34.4 Gbit", 11) == 0); in main()
97 assert(strncmp(s, "4.00 TByte", 11) == 0); in main()
100 assert(strncmp(s, "35.2 Tbit", 11) == 0); in main()
104 assert(strncmp(s, "4096 TByte", 11) == 0); in main()
107 assert(strncmp(s, "36029 Tbit", 11) == 0); in main()
/external/bcc/src/cc/frontends/clang/
Dkbuild_helper.cc40 if (!strncmp(uname_machine, "x86_64", 6)) { in get_flags()
42 } else if (uname_machine[0] == 'i' && !strncmp(&uname_machine[2], "86", 2)) { in get_flags()
44 } else if (!strncmp(uname_machine, "arm", 3)) { in get_flags()
46 } else if (!strncmp(uname_machine, "sa110", 5)) { in get_flags()
48 } else if (!strncmp(uname_machine, "s390x", 5)) { in get_flags()
50 } else if (!strncmp(uname_machine, "parisc64", 8)) { in get_flags()
52 } else if (!strncmp(uname_machine, "ppc", 3)) { in get_flags()
54 } else if (!strncmp(uname_machine, "mips", 4)) { in get_flags()
56 } else if (!strncmp(uname_machine, "sh", 2)) { in get_flags()
58 } else if (!strncmp(uname_machine, "aarch64", 7)) { in get_flags()
/external/libpcap/
Dpcap-snoop.c249 if (strncmp("et", p->opt.device, 2) == 0 || /* Challenge 10 Mbit */ in pcap_activate_snoop()
250 strncmp("ec", p->opt.device, 2) == 0 || /* Indigo/Indy 10 Mbit, in pcap_activate_snoop()
252 strncmp("ef", p->opt.device, 2) == 0 || /* O200/2000 10/100 Mbit */ in pcap_activate_snoop()
253 strncmp("eg", p->opt.device, 2) == 0 || /* Octane/O2xxx/O3xxx Gigabit */ in pcap_activate_snoop()
254 strncmp("gfe", p->opt.device, 3) == 0 || /* GIO 100 Mbit */ in pcap_activate_snoop()
255 strncmp("fxp", p->opt.device, 3) == 0 || /* Challenge VME Enet */ in pcap_activate_snoop()
256 strncmp("ep", p->opt.device, 2) == 0 || /* Challenge 8x10 Mbit EPLEX */ in pcap_activate_snoop()
257 strncmp("vfe", p->opt.device, 3) == 0 || /* Challenge VME 100Mbit */ in pcap_activate_snoop()
258 strncmp("fa", p->opt.device, 2) == 0 || in pcap_activate_snoop()
259 strncmp("qaa", p->opt.device, 3) == 0 || in pcap_activate_snoop()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/InstCombine/
Dstrncmp-1.ll1 ; Test that the strncmp library call simplifier works correctly.
11 declare i32 @strncmp(i8*, i8*, i32)
13 ; strncmp("", x, n) -> -*x
22 %temp1 = call i32 @strncmp(i8* %str1, i8* %str2, i32 10)
26 ; strncmp(x, "", n) -> *x
34 %temp1 = call i32 @strncmp(i8* %str1, i8* %str2, i32 10)
38 ; strncmp(x, y, n) -> cnst
45 %temp1 = call i32 @strncmp(i8* %str1, i8* %str2, i32 10)
55 %temp1 = call i32 @strncmp(i8* %str1, i8* %str2, i32 10)
65 %temp1 = call i32 @strncmp(i8* %str1, i8* %str2, i32 4)
[all …]
/external/llvm/test/Transforms/InstCombine/
Dstrncmp-1.ll1 ; Test that the strncmp library call simplifier works correctly.
11 declare i32 @strncmp(i8*, i8*, i32)
13 ; strncmp("", x, n) -> -*x
22 %temp1 = call i32 @strncmp(i8* %str1, i8* %str2, i32 10)
26 ; strncmp(x, "", n) -> *x
34 %temp1 = call i32 @strncmp(i8* %str1, i8* %str2, i32 10)
38 ; strncmp(x, y, n) -> cnst
45 %temp1 = call i32 @strncmp(i8* %str1, i8* %str2, i32 10)
55 %temp1 = call i32 @strncmp(i8* %str1, i8* %str2, i32 10)
65 %temp1 = call i32 @strncmp(i8* %str1, i8* %str2, i32 4)
[all …]
/external/libmtp/examples/
Dconnect.c80 …if ((strncmp(basename(argv[0]),"mtp-delfile",11) == 0) || (strncmp(basename(argv[0]),"delfile",7) … in main()
82 …} else if ((strncmp(basename(argv[0]),"mtp-getfile",13) == 0) || (strncmp(basename(argv[0]),"getfi… in main()
84 …} else if ((strncmp(basename(argv[0]),"mtp-newfolder",13) == 0) || (strncmp(basename(argv[0]),"new… in main()
86 …} else if ((strncmp(basename(argv[0]),"mtp-sendfile",11) == 0) || (strncmp(basename(argv[0]),"send… in main()
88 …} else if ((strncmp(basename(argv[0]),"mtp-sendtr",10) == 0) || (strncmp(basename(argv[0]),"sendtr… in main()
/external/curl/tests/unit/
Dunit1304.c80 fail_unless(strncmp(login, "me", 2) == 0,
96 fail_unless(strncmp(login, "me", 2) == 0,
113 fail_unless(strncmp(login, "admi", 4) == 0,
131 fail_unless(strncmp(login, "adminn", 6) == 0,
146 fail_unless(strncmp(password, "passwd", 6) == 0,
150 fail_unless(strncmp(login, "admin", 5) == 0, "login should be 'admin'");
164 fail_unless(strncmp(password, "passwd", 6) == 0,
168 fail_unless(strncmp(login, "admin", 5) == 0, "login should be 'admin'");
185 fail_unless(strncmp(password, "none", 4) == 0,
189 fail_unless(strncmp(login, "none", 4) == 0, "login should be 'none'");
[all …]
/external/e2fsprogs/misc/
Dbase_device.c55 if (strncmp(cp, "/dev/", 5) != 0) in base_device()
60 if (strncmp(cp, "dsk/", 4) == 0) in base_device()
73 if (strncmp(cp, "rd/", 3) == 0) { in base_device()
97 if (strncmp(cp, "ide/", 4) == 0) in base_device()
99 if (strncmp(cp, "scsi/", 5) == 0) in base_device()
111 if (strncmp(cp, *hier, len) != 0) in base_device()
127 if (strncmp(cp, "discs/", 6) == 0) in base_device()
129 else if (strncmp(cp, "disks/", 6) == 0) in base_device()
133 if (strncmp(cp, disk, 4) != 0) in base_device()
/external/swiftshader/third_party/LLVM/test/Transforms/SimplifyLibCalls/
DStrNCmp.ll11 declare i32 @strncmp(i8*, i8*, i32)
15 …%temp1 = call i32 @strncmp(i8* getelementptr inbounds ([1 x i8]* @null, i32 0, i32 0), i8* %str, i…
26 …%temp1 = call i32 @strncmp(i8* %str, i8* getelementptr inbounds ([1 x i8]* @null, i32 0, i32 0), i…
34 ; strncmp(x, y, n) -> cnst
36 …%temp1 = call i32 @strncmp(i8* getelementptr inbounds ([5 x i8]* @hell, i32 0, i32 0), i8* getelem…
42 …%temp1 = call i32 @strncmp(i8* getelementptr inbounds ([5 x i8]* @hell, i32 0, i32 0), i8* getelem…
48 …%temp1 = call i32 @strncmp(i8* getelementptr inbounds ([5 x i8]* @hell, i32 0, i32 0), i8* getelem…
54 ; strncmp(x,y,1) -> memcmp(x,y,1)
56 %temp1 = call i32 @strncmp(i8* %str1, i8* %str2, i32 1)
64 ; strncmp(x,y,0) -> 0
[all …]
/external/harfbuzz_ng/src/
Dhb-ot-tag-table.hh1314 if (0 == strncmp (&lang_str[1], "do-", 3) in hb_ot_tags_from_complex_language()
1322 if (0 == strncmp (&lang_str[1], "do-", 3) in hb_ot_tags_from_complex_language()
1330 if (0 == strncmp (&lang_str[1], "do-", 3) in hb_ot_tags_from_complex_language()
1338 if (0 == strncmp (&lang_str[1], "jy-", 3) in hb_ot_tags_from_complex_language()
1346 if (0 == strncmp (&lang_str[1], "jy-", 3) in hb_ot_tags_from_complex_language()
1354 if (0 == strncmp (&lang_str[1], "jy-", 3) in hb_ot_tags_from_complex_language()
1362 if (0 == strncmp (&lang_str[1], "mn-", 3) in hb_ot_tags_from_complex_language()
1370 if (0 == strncmp (&lang_str[1], "mn-", 3) in hb_ot_tags_from_complex_language()
1378 if (0 == strncmp (&lang_str[1], "mn-", 3) in hb_ot_tags_from_complex_language()
1386 if (0 == strncmp (&lang_str[1], "px-", 3) in hb_ot_tags_from_complex_language()
[all …]
/external/libcups/filter/
Dpstops.c317 while (!strncmp(line, "\033%-12345X", 9) || !strncmp(line, "@PJL ", 5)) in main()
326 while (strstr(line, "ENTER LANGUAGE") == NULL && strncmp(line, "%!", 2)) in main()
330 if (!strncmp(line, "%!", 2)) in main()
342 if (!strncmp(line, "%!PS-Adobe-", 11)) in main()
609 if (!strncmp(line, "%%Pages:", 8)) in copy_comments()
658 else if (!strncmp(line, "%%BoundingBox:", 14)) in copy_comments()
682 else if (!strncmp(line, "%%For:", 6)) in copy_comments()
687 else if (!strncmp(line, "%%Title:", 8)) in copy_comments()
692 else if (!strncmp(line, "%cupsRotation:", 14)) in copy_comments()
716 else if (strncmp(line, "%!", 2) && strncmp(line, "%cups", 5)) in copy_comments()
[all …]
/external/libxaac/test/
Dixheaacd_metadata_read.c42 if (!strncmp((pCHAR8)cmd, "-dec_info_init:", 15)) { in ixheaacd_read_metadata_info()
46 } else if (!strncmp((pCHAR8)cmd, "-g_track_count:", 15)) { in ixheaacd_read_metadata_info()
52 else if (!strncmp((pCHAR8)cmd, "-movie_time_scale:", 18)) { in ixheaacd_read_metadata_info()
58 else if (!strncmp((pCHAR8)cmd, "-media_time_scale:", 18)) { in ixheaacd_read_metadata_info()
64 else if (!strncmp((pCHAR8)cmd, "-ia_mp4_stsz_entries:", 21)) { in ixheaacd_read_metadata_info()
80 else if (!strncmp((pCHAR8)cmd, "-playTimeInSamples:", 19)) { in ixheaacd_read_metadata_info()
87 else if (!strncmp((pCHAR8)cmd, "-startOffsetInSamples:", 22)) { in ixheaacd_read_metadata_info()
94 else if (!strncmp((pCHAR8)cmd, "-useEditlist:", 13)) { in ixheaacd_read_metadata_info()
101 else if (!strncmp((pCHAR8)cmd, "-ia_mp4_stsz_size:", 18)) { in ixheaacd_read_metadata_info()
/external/llvm/lib/Fuzzer/test/
DStrncmpTest.cpp15 if (Size >= 8 && strncmp(S, "123", 8)) in LLVMFuzzerTestOneInput()
17 if (Size >= 8 && strncmp(S, "01234567", 8) == 0) { in LLVMFuzzerTestOneInput()
18 if (Size >= 12 && strncmp(S + 8, "ABCD", 4) == 0) { in LLVMFuzzerTestOneInput()
19 if (Size >= 14 && strncmp(S + 12, "XY", 2) == 0) { in LLVMFuzzerTestOneInput()
20 if (Size >= 16 && strncmp(S + 14, "KLM", 3) == 0) { in LLVMFuzzerTestOneInput()
/external/deqp-deps/glslang/StandAlone/
Dspirv-remap.cpp244 if (strncmp(argv[a], "all", 3) == 0) { in parseCmdLine()
252 if (strncmp(c, "all", 3) == 0) { in parseCmdLine()
255 } else if (strncmp(c, "*", 1) == 0) { in parseCmdLine()
258 } else if (strncmp(c, "funcs", 5) == 0) { in parseCmdLine()
261 } else if (strncmp(c, "types", 5) == 0) { in parseCmdLine()
271 if (strncmp(c, "all", 3) == 0) { in parseCmdLine()
274 } else if (strncmp(c, "*", 1) == 0) { in parseCmdLine()
277 } else if (strncmp(c, "types", 5) == 0) { in parseCmdLine()
280 } else if (strncmp(c, "names", 5) == 0) { in parseCmdLine()
283 } else if (strncmp(c, "funcs", 5) == 0) { in parseCmdLine()
[all …]
/external/python/cpython2/Misc/
Dsetuid-prog.c108 if (strncmp(*p, "LD_", 3) == 0) in clean_environ()
110 else if (strncmp(*p, "_RLD", 4) == 0) in clean_environ()
112 else if (strncmp(*p, "PYTHON", 6) == 0) in clean_environ()
114 else if (strncmp(*p, "IFS=", 4) == 0) in clean_environ()
116 else if (strncmp(*p, "CDPATH=", 7) == 0) in clean_environ()
118 else if (strncmp(*p, "ENV=", 4) == 0) in clean_environ()
/external/clang/test/Analysis/
Dstring.c789 #define strncmp BUILTIN(strncmp) macro
790 int strncmp(const char *s1, const char *s2, size_t n);
795 clang_analyzer_eval(strncmp(x, y, 2) > 0); // expected-warning{{TRUE}} in strncmp_check_modelling()
796 clang_analyzer_eval(strncmp(x, y, 2) <= 0); // expected-warning{{FALSE}} in strncmp_check_modelling()
797 clang_analyzer_eval(strncmp(x, y, 2) > 1); // expected-warning{{UNKNOWN}} in strncmp_check_modelling()
799 clang_analyzer_eval(strncmp(y, x, 2) < 0); // expected-warning{{TRUE}} in strncmp_check_modelling()
800 clang_analyzer_eval(strncmp(y, x, 2) >= 0); // expected-warning{{FALSE}} in strncmp_check_modelling()
801 clang_analyzer_eval(strncmp(y, x, 2) < -1); // expected-warning{{UNKNOWN}} in strncmp_check_modelling()
805 clang_analyzer_eval(strncmp("123", "123", 3) == 0); // expected-warning{{TRUE}} in strncmp_constant0()
810 clang_analyzer_eval(strncmp(x, "123", 3) == 0); // expected-warning{{TRUE}} in strncmp_constant_and_var_0()
[all …]
/external/u-boot/cmd/
Dmp.c32 if (argc == 2 && strncmp(argv[1], "status", 6) == 0) in cpu_cmd()
46 if (strncmp(argv[2], "reset", 5) == 0) in cpu_cmd()
48 else if (strncmp(argv[2], "status", 6) == 0) in cpu_cmd()
50 else if (strncmp(argv[2], "disable", 7) == 0) in cpu_cmd()
59 if (strncmp(argv[2], "release", 7) != 0) in cpu_cmd()
Dblk_common.c25 if (strncmp(argv[1], "inf", 3) == 0) { in blk_common_cmd()
28 } else if (strncmp(argv[1], "dev", 3) == 0) { in blk_common_cmd()
34 } else if (strncmp(argv[1], "part", 4) == 0) { in blk_common_cmd()
41 if (strncmp(argv[1], "dev", 3) == 0) { in blk_common_cmd()
51 } else if (strncmp(argv[1], "part", 4) == 0) { in blk_common_cmd()
/external/nfacct/
Dnfacct.c93 if (strncmp(argv[1], "list", strlen(argv[1])) == 0) in main()
95 else if (strncmp(argv[1], "add", strlen(argv[1])) == 0) in main()
97 else if (strncmp(argv[1], "delete", strlen(argv[1])) == 0) in main()
99 else if (strncmp(argv[1], "get", strlen(argv[1])) == 0) in main()
101 else if (strncmp(argv[1], "flush", strlen(argv[1])) == 0) in main()
103 else if (strncmp(argv[1], "version", strlen(argv[1])) == 0) in main()
105 else if (strncmp(argv[1], "help", strlen(argv[1])) == 0) in main()
107 else if (strncmp(argv[1], "restore", strlen(argv[1])) == 0) in main()
195 if (strncmp(argv[i], "reset", strlen(argv[i])) == 0) { in nfacct_cmd_list()
197 } else if (strncmp(argv[i], "xml", strlen(argv[i])) == 0) { in nfacct_cmd_list()
[all …]
/external/mesa3d/src/mesa/program/
Dprogram_parse_extra.c81 if (strncmp(option, "ARB_", 4) == 0) { in _mesa_ARBfp_parse_option()
86 if (strncmp(option, "fog_", 4) == 0) { in _mesa_ARBfp_parse_option()
125 } else if (strncmp(option, "precision_hint_", 15) == 0) { in _mesa_ARBfp_parse_option()
158 } else if (strncmp(option, "fragment_coord_", 15) == 0) { in _mesa_ARBfp_parse_option()
171 } else if (strncmp(option, "ATI_", 4) == 0) { in _mesa_ARBfp_parse_option()
/external/u-boot/board/ti/am335x/
Dboard.h43 return board_is_bone_lt() && !strncmp(board_ti_get_rev(), "BBG1", 4); in board_is_bbg1()
58 return !strncmp(board_ti_get_config(), "SKU#02", 6); in board_is_idk()
69 strncmp("1.5", board_ti_get_rev(), 3) <= 0); in board_is_evm_15_or_later()
74 return board_ti_is("A335_ICE") && !strncmp("2", board_ti_get_rev(), 1); in board_is_icev2()
/external/u-boot/arch/arm/mach-keystone/
Dcmd_clock.c27 if (strncmp(argv[1], "pa", 2) == 0) in do_pll_cmd()
30 else if (strncmp(argv[1], "arm", 3) == 0) in do_pll_cmd()
34 else if (strncmp(argv[1], "ddr3a", 5) == 0) in do_pll_cmd()
36 else if (strncmp(argv[1], "ddr3b", 5) == 0) in do_pll_cmd()
39 else if (strncmp(argv[1], "ddr3", 4) == 0) in do_pll_cmd()

12345678910>>...49