/external/compiler-rt/test/asan/TestCases/ |
D | strtoll_strict.c | 33 void test1(char *array, char *endptr) { in test1() argument 35 long long r = strtoll(array, &endptr, 3); in test1() 36 assert(array + 2 == endptr); in test1() 40 void test2(char *array, char *endptr) { in test2() argument 43 long long r = strtoll(array, &endptr, 35); in test2() 44 assert(array + 2 == endptr); in test2() 48 void test3(char *array, char *endptr) { in test3() argument 57 void test4(char *array, char *endptr) { in test4() argument 63 void test5(char *array, char *endptr) { in test5() argument 72 void test6(char *array, char *endptr) { in test6() argument [all …]
|
D | strtol_strict.c | 31 void test1(char *array, char *endptr) { in test1() argument 33 long r = strtol(array, &endptr, 3); in test1() 34 assert(array + 2 == endptr); in test1() 38 void test2(char *array, char *endptr) { in test2() argument 41 long r = strtol(array, &endptr, 35); in test2() 42 assert(array + 2 == endptr); in test2() 46 void test3(char *array, char *endptr) { in test3() argument 64 void test4(char *array, char *endptr) { in test4() argument 79 void test5(char *array, char *endptr) { in test5() argument 88 void test6(char *array, char *endptr) { in test6() argument [all …]
|
/external/llvm-project/compiler-rt/test/asan/TestCases/ |
D | strtoll_strict.c | 34 void test1(char *array, char *endptr) { in test1() argument 36 long long r = strtoll(array, &endptr, 3); in test1() 37 assert(array + 2 == endptr); in test1() 41 void test2(char *array, char *endptr) { in test2() argument 44 long long r = strtoll(array, &endptr, 35); in test2() 45 assert(array + 2 == endptr); in test2() 49 void test3(char *array, char *endptr) { in test3() argument 58 void test4(char *array, char *endptr) { in test4() argument 64 void test5(char *array, char *endptr) { in test5() argument 73 void test6(char *array, char *endptr) { in test6() argument [all …]
|
D | strtol_strict.c | 32 void test1(char *array, char *endptr) { in test1() argument 34 long r = strtol(array, &endptr, 3); in test1() 35 assert(array + 2 == endptr); in test1() 39 void test2(char *array, char *endptr) { in test2() argument 42 long r = strtol(array, &endptr, 35); in test2() 43 assert(array + 2 == endptr); in test2() 47 void test3(char *array, char *endptr) { in test3() argument 65 void test4(char *array, char *endptr) { in test4() argument 80 void test5(char *array, char *endptr) { in test5() argument 89 void test6(char *array, char *endptr) { in test6() argument [all …]
|
/external/libcxx/include/support/xlocale/ |
D | __strtonum_fallback.h | 24 char **endptr, locale_t) { in strtof_l() argument 25 return ::strtof(nptr, endptr); in strtof_l() 29 char **endptr, locale_t) { in strtod_l() argument 30 return ::strtod(nptr, endptr); in strtod_l() 34 char **endptr, locale_t) { in strtold_l() argument 35 return ::strtold(nptr, endptr); in strtold_l() 39 strtoll_l(const char *nptr, char **endptr, int base, locale_t) { in strtoll_l() argument 40 return ::strtoll(nptr, endptr, base); in strtoll_l() 44 strtoull_l(const char *nptr, char **endptr, int base, locale_t) { in strtoull_l() argument 45 return ::strtoull(nptr, endptr, base); in strtoull_l() [all …]
|
/external/llvm-project/libcxx/include/support/xlocale/ |
D | __strtonum_fallback.h | 23 char **endptr, locale_t) { in strtof_l() argument 24 return ::strtof(nptr, endptr); in strtof_l() 28 char **endptr, locale_t) { in strtod_l() argument 29 return ::strtod(nptr, endptr); in strtod_l() 33 char **endptr, locale_t) { in strtold_l() argument 34 return ::strtold(nptr, endptr); in strtold_l() 38 strtoll_l(const char *nptr, char **endptr, int base, locale_t) { in strtoll_l() argument 39 return ::strtoll(nptr, endptr, base); in strtoll_l() 43 strtoull_l(const char *nptr, char **endptr, int base, locale_t) { in strtoull_l() argument 44 return ::strtoull(nptr, endptr, base); in strtoull_l() [all …]
|
/external/mtools/ |
D | strtonum.c | 21 static long strtol_with_range(const char *nptr, char **endptr, int base, in strtol_with_range() argument 23 long l = strtol(nptr, endptr, base); in strtol_with_range() 35 static long strtoul_with_range(const char *nptr, char **endptr, int base, in strtoul_with_range() argument 37 unsigned long l = strtoul(nptr, endptr, base); in strtoul_with_range() 46 unsigned int strtoui(const char *nptr, char **endptr, int base) { in strtoui() argument 47 return (unsigned int) strtoul_with_range(nptr, endptr, base, UINT_MAX); in strtoui() 56 int strtoi(const char *nptr, char **endptr, int base) { in strtoi() argument 57 return (int) strtol_with_range(nptr, endptr, base, INT_MIN, INT_MAX); in strtoi() 65 uint8_t strtou8(const char *nptr, char **endptr, int base) { in strtou8() argument 66 return (uint8_t) strtoul_with_range(nptr, endptr, base, UINT8_MAX); in strtou8() [all …]
|
/external/libcxx/include/support/musl/ |
D | xlocale.h | 28 static inline long long strtoll_l(const char *nptr, char **endptr, int base, in strtoll_l() argument 30 return strtoll(nptr, endptr, base); in strtoll_l() 33 static inline unsigned long long strtoull_l(const char *nptr, char **endptr, in strtoull_l() argument 35 return strtoull(nptr, endptr, base); in strtoull_l() 38 static inline long long wcstoll_l(const wchar_t *nptr, wchar_t **endptr, in wcstoll_l() argument 40 return wcstoll(nptr, endptr, base); in wcstoll_l() 44 wchar_t **endptr, int base, in wcstoull_l() argument 46 return wcstoull(nptr, endptr, base); in wcstoull_l() 49 static inline long double wcstold_l(const wchar_t *nptr, wchar_t **endptr, in wcstold_l() argument 51 return wcstold(nptr, endptr); in wcstold_l()
|
/external/llvm-project/libcxx/include/support/musl/ |
D | xlocale.h | 27 static inline long long strtoll_l(const char *nptr, char **endptr, int base, in strtoll_l() argument 29 return strtoll(nptr, endptr, base); in strtoll_l() 32 static inline unsigned long long strtoull_l(const char *nptr, char **endptr, in strtoull_l() argument 34 return strtoull(nptr, endptr, base); in strtoull_l() 37 static inline long long wcstoll_l(const wchar_t *nptr, wchar_t **endptr, in wcstoll_l() argument 39 return wcstoll(nptr, endptr, base); in wcstoll_l() 43 wchar_t **endptr, int base, in wcstoull_l() argument 45 return wcstoull(nptr, endptr, base); in wcstoull_l() 48 static inline long double wcstold_l(const wchar_t *nptr, wchar_t **endptr, in wcstold_l() argument 50 return wcstold(nptr, endptr); in wcstold_l()
|
/external/libvpx/libvpx/ |
D | args.c | 123 char *endptr; in arg_parse_uint() local 125 rawval = (uint32_t)strtoul(arg->val, &endptr, 10); in arg_parse_uint() 127 if (arg->val[0] != '\0' && endptr[0] == '\0') { in arg_parse_uint() 134 die("Option %s: Invalid character '%c'\n", arg->name, *endptr); in arg_parse_uint() 140 char *endptr; in arg_parse_int() local 142 rawval = (int32_t)strtol(arg->val, &endptr, 10); in arg_parse_int() 144 if (arg->val[0] != '\0' && endptr[0] == '\0') { in arg_parse_int() 151 die("Option %s: Invalid character '%c'\n", arg->name, *endptr); in arg_parse_int() 161 char *endptr; in arg_parse_rational() local 165 rawval = strtol(arg->val, &endptr, 10); in arg_parse_rational() [all …]
|
/external/libaom/libaom/common/ |
D | args.c | 233 char *endptr; in arg_parse_uint() local 234 const unsigned long rawval = strtoul(arg->val, &endptr, 10); // NOLINT in arg_parse_uint() 236 if (arg->val[0] != '\0' && endptr[0] == '\0') { in arg_parse_uint() 243 die("Option %s: Invalid character '%c'\n", arg->name, *endptr); in arg_parse_uint() 248 char *endptr; in arg_parse_int() local 249 const long rawval = strtol(arg->val, &endptr, 10); // NOLINT in arg_parse_int() 251 if (arg->val[0] != '\0' && endptr[0] == '\0') { in arg_parse_int() 258 die("Option %s: Invalid character '%c'\n", arg->name, *endptr); in arg_parse_int() 264 char *endptr; in arg_parse_rational() local 268 rawval = strtol(arg->val, &endptr, 10); in arg_parse_rational() [all …]
|
/external/perfetto/include/perfetto/ext/base/ |
D | string_utils.h | 43 char* endptr = nullptr; variable 44 auto value = static_cast<uint32_t>(strtoul(s, &endptr, base)); 45 return (*s && !*endptr) ? base::make_optional(value) : base::nullopt; 49 char* endptr = nullptr; variable 50 auto value = static_cast<int32_t>(strtol(s, &endptr, base)); 51 return (*s && !*endptr) ? base::make_optional(value) : base::nullopt; 56 char* endptr = nullptr; variable 57 auto value = static_cast<int64_t>(strtoll(s, &endptr, base)); 58 return (*s && !*endptr) ? base::make_optional(value) : base::nullopt; 62 char* endptr = nullptr; variable [all …]
|
/external/llvm/test/Transforms/InstCombine/ |
D | strto-1.ll | 7 declare i64 @strtol(i8* %s, i8** %endptr, i32 %base) 10 declare double @strtod(i8* %s, i8** %endptr, i32 %base) 13 declare float @strtof(i8* %s, i8** %endptr, i32 %base) 16 declare i64 @strtoul(i8* %s, i8** %endptr, i32 %base) 19 declare i64 @strtoll(i8* %s, i8** %endptr, i32 %base) 22 declare double @strtold(i8* %s, i8** %endptr) 25 declare i64 @strtoull(i8* %s, i8** %endptr, i32 %base) 28 define void @test_simplify1(i8* %x, i8** %endptr) { 35 define void @test_simplify2(i8* %x, i8** %endptr) { 42 define void @test_simplify3(i8* %x, i8** %endptr) { [all …]
|
/external/llvm-project/llvm/test/Transforms/InstCombine/ |
D | strto-1.ll | 7 declare i64 @strtol(i8* %s, i8** %endptr, i32 %base) 10 declare double @strtod(i8* %s, i8** %endptr, i32 %base) 13 declare float @strtof(i8* %s, i8** %endptr, i32 %base) 16 declare i64 @strtoul(i8* %s, i8** %endptr, i32 %base) 19 declare i64 @strtoll(i8* %s, i8** %endptr, i32 %base) 22 declare double @strtold(i8* %s, i8** %endptr) 25 declare i64 @strtoull(i8* %s, i8** %endptr, i32 %base) 28 define void @test_simplify1(i8* %x, i8** %endptr) { 35 define void @test_simplify2(i8* %x, i8** %endptr) { 42 define void @test_simplify3(i8* %x, i8** %endptr) { [all …]
|
/external/libnl/src/lib/ |
D | route.c | 115 char *arg, *endptr; in nl_cli_route_parse_metric() local 128 lval = strtoul(arg, &endptr, 0); in nl_cli_route_parse_metric() 129 if (endptr == arg) in nl_cli_route_parse_metric() 158 char *arg, *endptr; in nl_cli_route_parse_nexthop() local 199 lval = strtoul(arg, &endptr, 0); in nl_cli_route_parse_nexthop() 200 if (endptr == arg) in nl_cli_route_parse_nexthop() 215 char *endptr; in nl_cli_route_parse_table() local 218 lval = strtoul(arg, &endptr, 0); in nl_cli_route_parse_table() 219 if (endptr == arg) { in nl_cli_route_parse_table() 233 char *endptr; in nl_cli_route_parse_prio() local [all …]
|
/external/perfetto/src/profiling/common/ |
D | proc_utils.cc | 203 char* endptr; in GetUids() local 205 uids.real = strtoull(str, &endptr, 10); in GetUids() 206 if (*endptr != ' ' && *endptr != '\t') in GetUids() 209 str = endptr; in GetUids() 210 uids.effective = strtoull(str, &endptr, 10); in GetUids() 211 if (*endptr != ' ' && *endptr != '\t') in GetUids() 214 str = endptr; in GetUids() 215 uids.saved_set = strtoull(str, &endptr, 10); in GetUids() 216 if (*endptr != ' ' && *endptr != '\t') in GetUids() 219 str = endptr; in GetUids() [all …]
|
/external/elfutils/tests/ |
D | dwfl-report-elf-align.c | 52 char *endptr; in main() local 53 uintptr_t base = strtoull (argv[2], &endptr, 0); in main() 54 assert (endptr && !*endptr); in main() 59 uintptr_t funcaddr = strtoull (argv[3], &endptr, 0); in main() 60 assert (endptr && !*endptr); in main()
|
/external/tensorflow/tensorflow/stream_executor/lib/ |
D | numbers.cc | 24 char* endptr; in safe_strto32() local 25 *value = strtol(str, &endptr, 10); // NOLINT in safe_strto32() 26 if (endptr != str) { in safe_strto32() 27 while (isspace(*endptr)) ++endptr; in safe_strto32() 29 return *str != '\0' && *endptr == '\0'; in safe_strto32()
|
/external/igt-gpu-tools/tools/ |
D | dpcd_reg.c | 103 static inline bool strtol_err_util(char *endptr, long *val) in strtol_err_util() argument 105 if (*endptr != '\0' || *val < 0 || in strtol_err_util() 116 char *endptr; in parse_opts() local 130 temp = strtol(optarg, &endptr, 10); in parse_opts() 131 if (strtol_err_util(endptr, &temp)) { in parse_opts() 140 temp = strtol(optarg, &endptr, 10); in parse_opts() 141 if (strtol_err_util(endptr, &temp) || in parse_opts() 157 temp = strtol(optarg, &endptr, 16); in parse_opts() 158 if (strtol_err_util(endptr, &temp) || in parse_opts() 169 temp = strtol(optarg, &endptr, 16); in parse_opts() [all …]
|
/external/e2fsprogs/resize/ |
D | online.c | 28 char *endptr; in parse_version_number() local 33 major = strtol(cp, &endptr, 10); in parse_version_number() 34 if (cp == endptr || *endptr != '.') in parse_version_number() 36 cp = endptr + 1; in parse_version_number() 37 minor = strtol(cp, &endptr, 10); in parse_version_number() 38 if (cp == endptr || *endptr != '.') in parse_version_number() 40 cp = endptr + 1; in parse_version_number() 41 rev = strtol(cp, &endptr, 10); in parse_version_number() 42 if (cp == endptr) in parse_version_number()
|
/external/clang/test/CodeGen/ |
D | libcalls-fno-builtin.c | 30 double strtod(const char *nptr, char **endptr); 31 float strtof(const char *nptr, char **endptr); 32 long double strtold(const char *nptr, char **endptr); 33 long int strtol(const char *nptr, char **endptr, int base); 34 long long int strtoll(const char *nptr, char **endptr, int base); 35 unsigned long int strtoul(const char *nptr, char **endptr, int base); 36 unsigned long long int strtoull(const char *nptr, char **endptr, int base);
|
/external/lua/src/ |
D | lobject.c | 165 static lua_Number lua_strx2number (const char *s, char **endptr) { in lua_strx2number() argument 173 *endptr = cast_charp(s); /* nothing is valid yet */ in lua_strx2number() 195 *endptr = cast_charp(s); /* valid up to here */ in lua_strx2number() 208 *endptr = cast_charp(s); /* valid up to here */ in lua_strx2number() 229 char *endptr; in l_str2dloc() local 230 *result = (mode == 'x') ? lua_strx2number(s, &endptr) /* try to convert */ in l_str2dloc() 231 : lua_str2number(s, &endptr); in l_str2dloc() 232 if (endptr == s) return NULL; /* nothing recognized? */ in l_str2dloc() 233 while (lisspace(cast_uchar(*endptr))) endptr++; /* skip trailing spaces */ in l_str2dloc() 234 return (*endptr == '\0') ? endptr : NULL; /* OK iff no trailing chars */ in l_str2dloc() [all …]
|
/external/curl/src/ |
D | tool_paramhlp.c | 136 char *endptr = NULL; in str2num() local 139 num = strtol(str, &endptr, 10); in str2num() 142 if((endptr != str) && (endptr == str + strlen(str))) { in str2num() 207 char *endptr; in str2double() local 210 num = strtod(str, &endptr); in str2double() 217 if((endptr != str) && (endptr == str + strlen(str))) { in str2double() 391 char *endptr; in str2offset() local 398 CURLofft offt = curlx_strtoofft(str, &endptr, 0, val); in str2offset() 406 *val = strtol(str, &endptr, 0); in str2offset() 410 if((endptr != str) && (endptr == str + strlen(str))) in str2offset()
|
/external/strace/tests-mx32/ |
D | overflowuid.c | 53 char *endptr = 0; in read_int_from_file() local 55 lval = strtol(buf, &endptr, 10); in read_int_from_file() 56 if (!endptr || (*endptr && '\n' != *endptr) in read_int_from_file()
|
/external/strace/tests-m32/ |
D | overflowuid.c | 53 char *endptr = 0; in read_int_from_file() local 55 lval = strtol(buf, &endptr, 10); in read_int_from_file() 56 if (!endptr || (*endptr && '\n' != *endptr) in read_int_from_file()
|