Home
last modified time | relevance | path

Searched refs:strtoll (Results 1 – 25 of 58) sorted by relevance

123

/llvm-project-15.0.7/libc/test/src/stdlib/
H A Dstrtoll_test.cpp20 ASSERT_EQ(__llvm_libc::strtoll(ten, nullptr, -1), 0ll); in TEST()
29 ASSERT_EQ(__llvm_libc::strtoll(ten, &str_end, 10), 10ll); in TEST()
33 ASSERT_EQ(__llvm_libc::strtoll(ten, nullptr, 10), 10ll); in TEST()
38 ASSERT_EQ(__llvm_libc::strtoll(hundred, &str_end, 10), 100ll); in TEST()
44 ASSERT_EQ(__llvm_libc::strtoll(negative, &str_end, 10), -100ll); in TEST()
56 ASSERT_EQ(__llvm_libc::strtoll(big_negative_number, &str_end, 10), in TEST()
125 ASSERT_EQ(__llvm_libc::strtoll(word_before, &str_end, 10), 0ll); in TEST()
143 ASSERT_EQ(__llvm_libc::strtoll(two_signs, &str_end, 10), 0ll); in TEST()
155 ASSERT_EQ(__llvm_libc::strtoll(sign_after, &str_end, 10), 2ll); in TEST()
218 __llvm_libc::strtoll(small_string, nullptr, base), in TEST()
[all …]
H A DCMakeLists.txt91 libc.src.stdlib.strtoll
/llvm-project-15.0.7/compiler-rt/test/asan/TestCases/
H A Dstrtoll_strict.c36 long long r = strtoll(array, &endptr, 3); in test1()
44 long long r = strtoll(array, &endptr, 35); in test2()
53 long long r = strtoll(array + 1, NULL, -1); in test3()
60 long long r = strtoll(array + 3, NULL, 1); in test4()
69 long long r = strtoll(array, NULL, 0); in test5()
77 long long r = strtoll(array, &endptr, 0); in test6()
85 long long r = strtoll(array + 2, NULL, 0); in test7()
/llvm-project-15.0.7/llvm/test/Transforms/InstCombine/
H A Dstr-int-3.ll11 declare i64 @strtoll(i8*, i8**, i32)
280 ; Fold strtoll(a[0].a, 0, 0) to 1.
282 %ia0a = call i64 @strtoll(i8* %pa0a, i8** null, i32 0)
286 ; Fold strtoll(a[0].b + 1, 0, 0, i8** null, i32 0) to 2.
288 %ia0bp1 = call i64 @strtoll(i8* %pa0bp1, i8** null, i32 0)
292 ; Fold strtoll(a[0].c + 3, 0, 0, i8** null, i32 0) to 89.
294 %ia0cp3 = call i64 @strtoll(i8* %pa0cp3, i8** null, i32 0)
298 ; Fold strtoll(a[1].a + 2, 0, 0, i8** null, i32 0) to 3.
300 %ia1ap2 = call i64 @strtoll(i8* %pa1ap2, i8** null, i32 0)
304 ; Fold strtoll(a[1].b + 3, 0, 0, i8** null, i32 0) to 4.
[all …]
H A Dstrto-1.ll19 declare i64 @strtoll(i8* %s, i8** %endptr, i32 %base)
20 ; CHECK: declare i64 @strtoll(i8* readonly, i8** nocapture, i32)
58 call i64 @strtoll(i8* %x, i8** null, i32 10)
59 ; CHECK-NEXT: call i64 @strtoll(i8* nocapture %x, i8** null, i32 10)
H A Dstr-int-4.ll2 ; Verify that calls to strtol and strtoll are interpreted correctly even
8 declare i64 @strtoll(i8*, i8**, i32)
311 ; Exercise folding calls to the 64-bit strtoll.
330 %im123 = call i64 @strtoll(i8* %pwsm123, i8** @endptr, i32 10)
336 %ip234 = call i64 @strtoll(i8* %pwsp234, i8** @endptr, i32 10)
342 %min = call i64 @strtoll(i8* %psmin, i8** @endptr, i32 10)
348 %max = call i64 @strtoll(i8* %psmax, i8** @endptr, i32 10)
356 ; Exercise not folding calls to the 64-bit strtoll.
375 %minm1 = call i64 @strtoll(i8* %psminm1, i8** @endptr, i32 10)
387 %nws = call i64 @strtoll(i8* %psws, i8** @endptr, i32 10)
[all …]
H A Dstr-int.ll17 declare i32 @strtoll(i8*, i8**, i32)
142 ; CHECK-NEXT: [[CALL:%.*]] = call i32 @strtoll(i8* nocapture getelementptr inbounds ([11 x i8], …
146 …%call = call i32 @strtoll(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i32 0, i32 0)…
H A Dstr-int-2.ll17 declare i64 @strtoll(i8*, i8**, i32)
140 …%call = call i64 @strtoll(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i32 0, i32 0)…
H A Ddisable-simplify-libcalls.ll37 declare i64 @strtoll(i8*, i8**, i32)
222 %ret = call i64 @strtoll(i8* %x, i8** %y, i32 10)
224 ; CHECK: call i64 @strtoll
/llvm-project-15.0.7/compiler-rt/lib/memprof/
H A Dmemprof_interceptors.cpp311 INTERCEPTOR(long long, strtoll, const char *nptr, char **endptr, int base) { in INTERCEPTOR() argument
313 MEMPROF_INTERCEPTOR_ENTER(ctx, strtoll); in INTERCEPTOR()
316 long long result = REAL(strtoll)(nptr, &real_endptr, base); in INTERCEPTOR()
326 long long result = REAL(strtoll)(nptr, &real_endptr, 10); in INTERCEPTOR()
353 MEMPROF_INTERCEPT_FUNC(strtoll); in InitializeMemprofInterceptors()
/llvm-project-15.0.7/compiler-rt/lib/asan/
H A Dasan_interceptors.cpp542 INTERCEPTOR(long long, strtoll, const char *nptr, char **endptr, int base) { in INTERCEPTOR() argument
544 ASAN_INTERCEPTOR_ENTER(ctx, strtoll); in INTERCEPTOR()
547 return REAL(strtoll)(nptr, endptr, base); in INTERCEPTOR()
550 long long result = REAL(strtoll)(nptr, &real_endptr, base); in INTERCEPTOR()
563 long long result = REAL(strtoll)(nptr, &real_endptr, 10); in INTERCEPTOR()
655 ASAN_INTERCEPT_FUNC(strtoll); in InitializeAsanInterceptors()
/llvm-project-15.0.7/libc/src/stdlib/
H A DCMakeLists.txt92 strtoll
94 strtoll.cpp
96 strtoll.h
H A Dstrtoll.h14 long long strtoll(const char *__restrict str, char **__restrict str_end,
H A Dstrtoll.cpp15 LLVM_LIBC_FUNCTION(long long, strtoll,
/llvm-project-15.0.7/clang/test/CodeGen/
H A Dlibcalls-fno-builtin.c39 long long int strtoll(const char *nptr, char **endptr, int base);
137 long int t22(char **x) { return strtoll("1234", x, 10); } in t22()
/llvm-project-15.0.7/libcxx/include/__support/musl/
H A Dxlocale.h29 return ::strtoll(__nptr, __endptr, __base); in strtoll_l()
/llvm-project-15.0.7/lldb/tools/debugserver/source/
H A DStringConvert.cpp19 int64_t uval = ::strtoll(s, &end, base); in ToSInt64()
/llvm-project-15.0.7/libcxx/include/__support/xlocale/
H A D__strtonum_fallback.h39 return ::strtoll(__nptr, __endptr, __base); in strtoll_l()
/llvm-project-15.0.7/libcxx/include/__support/solaris/
H A Dxlocale.h37 return ::strtoll(__nptr, __endptr, __base); in strtoll_l()
/llvm-project-15.0.7/libcxx/include/
H A Dcstdlib42 long long strtoll (const char* restrict nptr, char** restrict endptr, int base); // C99
106 using ::strtoll _LIBCPP_USING_IF_EXISTS;
/llvm-project-15.0.7/libcxx/include/__support/ibm/
H A Dxlocale.h61 return ::strtoll(__nptr, __endptr, __base); in strtoll_l()
/llvm-project-15.0.7/libcxx/test/support/
H A Dcharconv_test_helpers.h138 auto r = strtoll(p, &last, base); in fromchars_impl()
156 __int128_t r = strtoll(p, &last, base); in fromchars128_impl()
/llvm-project-15.0.7/llvm/lib/TableGen/
H A DTGLexer.cpp473 CurIntVal = strtoll(NumStart, nullptr, 16); in LexNumber()
494 CurIntVal = strtoll(NumStart, nullptr, 2); in LexNumber()
509 CurIntVal = strtoll(TokStart, nullptr, 10); in LexNumber()
/llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/cert/
H A Derr33-c.rst111 * strtoll()
/llvm-project-15.0.7/libc/config/linux/arm/
H A Dentrypoints.txt74 libc.src.stdlib.strtoll

123