Home
last modified time | relevance | path

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

12345678910>>...61

/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/libcups/man/
Dmantohtml.c136 if (!strncmp(line, ".TH ", 4) && section < 0) in main()
154 else if (!strncmp(line, ".SH ", 4) || !strncmp(line, ".SS ", 4)) in main()
220 else if (!strncmp(line, ".B ", 3)) in main()
246 else if (!strncmp(line, ".I ", 3)) in main()
272 else if (!strncmp(line, ".BI ", 4)) in main()
298 else if (!strncmp(line, ".BR ", 4)) in main()
324 else if (!strncmp(line, ".IB ", 4)) in main()
350 else if (!strncmp(line, ".IR ", 4)) in main()
376 else if (!strncmp(line, ".RB ", 4)) in main()
402 else if (!strncmp(line, ".RI ", 4)) in main()
[all …]
/external/llvm-project/llvm/test/Transforms/InstCombine/
Dstrncmp-1.ll2 ; Test that the strncmp library call simplifier works correctly.
12 declare i32 @strncmp(i8*, i8*, i32)
14 ; strncmp("", x, n) -> -*x
24 %temp1 = call i32 @strncmp(i8* %str1, i8* %str2, i32 10)
28 ; strncmp(x, "", n) -> *x
37 %temp1 = call i32 @strncmp(i8* %str1, i8* %str2, i32 10)
41 ; strncmp(x, y, n) -> cnst
49 %temp1 = call i32 @strncmp(i8* %str1, i8* %str2, i32 10)
60 %temp1 = call i32 @strncmp(i8* %str1, i8* %str2, i32 10)
71 %temp1 = call i32 @strncmp(i8* %str1, i8* %str2, i32 4)
[all …]
/external/llvm-project/compiler-rt/test/asan/TestCases/
Dstrncmp_strict.c37 assert((strncmp(s1, s2, i) == 0) == (i < size)); in main()
40 assert(strncmp(s1, s2, 2*size) == 0); in main()
43 return strncmp(s1-1, s2, 1); in main()
45 return strncmp(s1, s2-1, 1); in main()
47 return strncmp(s1+size, s2, 1); in main()
49 return strncmp(s1, s2+size, 1); in main()
51 return strncmp(s1+1, s2, size); in main()
53 return strncmp(s1, s2+1, size); in main()
56 assert(strncmp(s1, s2, 2*size) != 0); in main()
60 assert(strncmp(s1, s2, 2*size) != 0); in main()
/external/minigbm/
Dminigbm_helpers.c121 if (strncmp("i915", version->name, version->name_len) == 0) { in detect_device_info()
126 } else if (strncmp("amdgpu", version->name, version->name_len) == 0) { in detect_device_info()
144 } else if (strncmp("radeon", version->name, version->name_len) == 0) { in detect_device_info()
166 } else if (strncmp("nvidia", version->name, version->name_len) == 0) { in detect_device_info()
169 } else if (strncmp("nouveau", version->name, version->name_len) == 0) { in detect_device_info()
172 } else if (strncmp("msm", version->name, version->name_len) == 0) { in detect_device_info()
175 } else if (strncmp("armada", version->name, version->name_len) == 0) { in detect_device_info()
177 } else if (strncmp("exynos", version->name, version->name_len) == 0) { in detect_device_info()
179 } else if (strncmp("mediatek", version->name, version->name_len) == 0) { in detect_device_info()
181 } else if (strncmp("rockchip", version->name, version->name_len) == 0) { in detect_device_info()
[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/libcups/scheduler/
Dstatbuf.c193 if (!strncmp(sb->buffer, "EMERG:", 6)) in cupsdStatBufUpdate()
198 else if (!strncmp(sb->buffer, "ALERT:", 6)) in cupsdStatBufUpdate()
203 else if (!strncmp(sb->buffer, "CRIT:", 5)) in cupsdStatBufUpdate()
208 else if (!strncmp(sb->buffer, "ERROR:", 6)) in cupsdStatBufUpdate()
213 else if (!strncmp(sb->buffer, "WARNING:", 8)) in cupsdStatBufUpdate()
218 else if (!strncmp(sb->buffer, "NOTICE:", 7)) in cupsdStatBufUpdate()
223 else if (!strncmp(sb->buffer, "INFO:", 5)) in cupsdStatBufUpdate()
228 else if (!strncmp(sb->buffer, "DEBUG:", 6)) in cupsdStatBufUpdate()
233 else if (!strncmp(sb->buffer, "DEBUG2:", 7)) in cupsdStatBufUpdate()
238 else if (!strncmp(sb->buffer, "PAGE:", 5)) in cupsdStatBufUpdate()
[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/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/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/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/harfbuzz_ng/src/
Dhb-ot-tag-table.hh1312 if (0 == strncmp (&lang_str[1], "do-", 3) in hb_ot_tags_from_complex_language()
1320 if (0 == strncmp (&lang_str[1], "do-", 3) in hb_ot_tags_from_complex_language()
1328 if (0 == strncmp (&lang_str[1], "do-", 3) in hb_ot_tags_from_complex_language()
1336 if (0 == strncmp (&lang_str[1], "jy-", 3) in hb_ot_tags_from_complex_language()
1344 if (0 == strncmp (&lang_str[1], "jy-", 3) in hb_ot_tags_from_complex_language()
1352 if (0 == strncmp (&lang_str[1], "jy-", 3) in hb_ot_tags_from_complex_language()
1360 if (0 == strncmp (&lang_str[1], "mn-", 3) in hb_ot_tags_from_complex_language()
1368 if (0 == strncmp (&lang_str[1], "mn-", 3) in hb_ot_tags_from_complex_language()
1376 if (0 == strncmp (&lang_str[1], "mn-", 3) in hb_ot_tags_from_complex_language()
1384 if (0 == strncmp (&lang_str[1], "px-", 3) in hb_ot_tags_from_complex_language()
[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/llvm-project/compiler-rt/test/fuzzer/
DStrncmpTest.cpp16 if (Size >= 8 && strncmp(S, "123", 8)) in LLVMFuzzerTestOneInput()
18 if (Size >= 8 && strncmp(S, "01234567", 8) == 0) { in LLVMFuzzerTestOneInput()
19 if (Size >= 12 && strncmp(S + 8, "ABCD", 4) == 0) { in LLVMFuzzerTestOneInput()
20 if (Size >= 14 && strncmp(S + 12, "XY", 2) == 0) { in LLVMFuzzerTestOneInput()
21 if (Size >= 17 && strncmp(S + 14, "KLM", 3) == 0) { in LLVMFuzzerTestOneInput()
/external/capstone/suite/cstest/src/
Dmain.c94 while (counter < size_lines && strncmp(list_lines[counter], "0x", 2)) in setup_MC()
97 while (counter < size_lines && strncmp(list_lines[counter], "// 0x", 5)) in setup_MC()
132 while (counter < size_lines && strncmp(list_lines[counter], "!# ", 3)) in setup_issue()
135 while (counter < size_lines && strncmp(list_lines[counter], "// !# ", 6)) in setup_issue()
140 while (counter < size_lines && strncmp(list_lines[counter], "!#", 2)) in setup_issue()
143 while (counter < size_lines && strncmp(list_lines[counter], "// !# ", 6)) in setup_issue()
216 while (counter < size_lines && strncmp(list_lines[counter], "0x", 2)) in setup_issue()
219 while (counter < size_lines && strncmp(list_lines[counter], "// 0x", 5)) in setup_issue()
239 while (counter < size_lines && strncmp(list_lines[counter], "!# ", 3)) in teardown_issue()
242 while (counter < size_lines && strncmp(list_lines[counter], "// !# ", 6)) in teardown_issue()
[all …]
/external/libcap/progs/
Dcapsh.c388 if (!strncmp("--drop=", argv[i], 7)) { in main()
390 } else if (!strncmp("--dropped=", argv[i], 10)) { in main()
407 } else if (!strncmp("--addamb=", argv[i], 9)) { in main()
409 } else if (!strncmp("--delamb=", argv[i], 9)) { in main()
411 } else if (!strncmp("--noamb", argv[i], 7)) { in main()
416 } else if (!strncmp("--inh=", argv[i], 6)) { in main()
485 } else if (!strncmp("--caps=", argv[i], 7)) { in main()
539 } else if (!strncmp("--mode=", argv[i], 7)) { in main()
564 } else if (!strncmp("--inmode=", argv[i], 9)) { in main()
572 } else if (!strncmp("--keep=", argv[i], 7)) { in main()
[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/libcups/filter/
Dpstops.c312 while (!strncmp(line, "\033%-12345X", 9) || !strncmp(line, "@PJL ", 5)) in main()
321 while (strstr(line, "ENTER LANGUAGE") == NULL && strncmp(line, "%!", 2)) in main()
325 if (!strncmp(line, "%!", 2)) in main()
337 if (!strncmp(line, "%!PS-Adobe-", 11)) in main()
604 if (!strncmp(line, "%%Pages:", 8)) in copy_comments()
653 else if (!strncmp(line, "%%BoundingBox:", 14)) in copy_comments()
677 else if (!strncmp(line, "%%For:", 6)) in copy_comments()
682 else if (!strncmp(line, "%%Title:", 8)) in copy_comments()
687 else if (!strncmp(line, "%cupsRotation:", 14)) in copy_comments()
711 else if (strncmp(line, "%!", 2) && strncmp(line, "%cups", 5)) in copy_comments()
[all …]
/external/angle/third_party/vulkan-deps/glslang/src/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/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/libcups/locale/
Dcheckpo.c102 if (!strncmp(msg->msg, "ALERT:", 6) || !strncmp(msg->msg, "CRIT:", 5) || in main()
103 !strncmp(msg->msg, "DEBUG:", 6) || !strncmp(msg->msg, "DEBUG2:", 7) || in main()
104 !strncmp(msg->msg, "EMERG:", 6) || !strncmp(msg->msg, "ERROR:", 6) || in main()
105 !strncmp(msg->msg, "INFO:", 5) || !strncmp(msg->msg, "NOTICE:", 7) || in main()
106 !strncmp(msg->msg, "WARNING:", 8)) in main()
147 if ((idfmt - 2) >= msg->msg && !strncmp(idfmt - 2, "...", 3)) in main()
/external/llvm-project/compiler-rt/lib/scudo/standalone/
Dflags_parser.cpp112 if (strncmp(Value, "0", 1) == 0 || strncmp(Value, "no", 2) == 0 || in parseBool()
113 strncmp(Value, "false", 5) == 0) { in parseBool()
117 if (strncmp(Value, "1", 1) == 0 || strncmp(Value, "yes", 3) == 0 || in parseBool()
118 strncmp(Value, "true", 4) == 0) { in parseBool()
128 if (strncmp(Name, Flags[I].Name, Len) != 0 || Name[Len] != '=') in runHandler()
/external/scudo/standalone/
Dflags_parser.cpp112 if (strncmp(Value, "0", 1) == 0 || strncmp(Value, "no", 2) == 0 || in parseBool()
113 strncmp(Value, "false", 5) == 0) { in parseBool()
117 if (strncmp(Value, "1", 1) == 0 || strncmp(Value, "yes", 3) == 0 || in parseBool()
118 strncmp(Value, "true", 4) == 0) { in parseBool()
128 if (strncmp(Name, Flags[I].Name, Len) != 0 || Name[Len] != '=') in runHandler()
/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 …]

12345678910>>...61