OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:StrNCmp
(Results
1 - 3
of
3
) sorted by null
/external/compiler-rt/lib/asan/tests/
asan_str_test.cc
220
//
strncmp
221
EXPECT_EQ(0,
strncmp
("a", "b", 0));
222
EXPECT_EQ(0,
strncmp
("abcd", "abcd", 10));
223
EXPECT_EQ(0,
strncmp
("abcd", "abcef", 3));
224
EXPECT_GT(0,
strncmp
("abcde", "abcfa", 4));
225
EXPECT_GT(0,
strncmp
("a", "b", 5));
226
EXPECT_GT(0,
strncmp
("bc", "bcde", 4));
227
EXPECT_LT(0,
strncmp
("xyz", "xyy", 10));
228
EXPECT_LT(0,
strncmp
("baa", "aaa", 1));
229
EXPECT_LT(0,
strncmp
("zyx", "", 2))
[
all
...]
/external/llvm/lib/Transforms/Utils/
BuildLibCalls.cpp
118
/// EmitStrNCmp - Emit a call to the
strncmp
function to the builder.
122
if (!TLI->has(LibFunc::
strncmp
))
134
Value *
StrNCmp
= M->getOrInsertFunction("
strncmp
",
141
CallInst *CI = B.CreateCall3(
StrNCmp
, CastToCStr(Ptr1, B),
142
CastToCStr(Ptr2, B), Len, "
strncmp
");
144
if (const Function *F = dyn_cast<Function>(
StrNCmp
->stripPointerCasts()))
SimplifyLibCalls.cpp
573
// Verify the "
strncmp
" function prototype.
583
if (Str1P == Str2P) //
strncmp
(x,x,n) -> 0
593
if (Length == 0) //
strncmp
(x,y,0) -> 0
596
if (TD && Length == 1) //
strncmp
(x,y,1) -> memcmp(x,y,1)
603
//
strncmp
(x, y) -> cnst (if both x and y are constant strings)
610
if (HasStr1 && Str1.empty()) //
strncmp
("", x, n) -> -*x
614
if (HasStr2 && Str2.empty()) //
strncmp
(x, "", n) -> *x
884
// fold strstr(a, b) == a ->
strncmp
(a, b, strlen(b)) == 0
889
Value *
StrNCmp
= EmitStrNCmp(CI->getArgOperand(0), CI->getArgOperand(1),
891
if (!
StrNCmp
)
[
all
...]
Completed in 131 milliseconds