Lines Matching +full:0 +full:- +full:127
6 for (i = 0; i < ARRAY_SIZE(test); i++)
35 tmp = 0; \
36 rv = fn(t->str, t->base, &tmp); \
37 if (rv >= 0) { \
38 WARN(1, "str '%s', base %u, expected -E, got %d/" fmt "\n", \
39 t->str, t->base, rv, tmp); \
50 const typeof(test[0]) *t = &test[i]; \
54 rv = fn(t->str, t->base, &res); \
55 if (rv != 0) { \
56 WARN(1, "str '%s', base %u, expected 0/" fmt ", got %d\n", \
57 t->str, t->base, t->expected_res, rv); \
60 if (res != t->expected_res) { \
62 t->str, t->base, t->expected_res, res); \
72 {"0", 10, 0ULL}, in test_kstrtoull_ok()
74 {"127", 10, 127ULL}, in test_kstrtoull_ok()
124 {"0x0", 16, 0x0ULL}, in test_kstrtoull_ok()
125 {"0x1", 16, 0x1ULL}, in test_kstrtoull_ok()
126 {"0x7f", 16, 0x7fULL}, in test_kstrtoull_ok()
127 {"0x80", 16, 0x80ULL}, in test_kstrtoull_ok()
128 {"0x81", 16, 0x81ULL}, in test_kstrtoull_ok()
129 {"0xff", 16, 0xffULL}, in test_kstrtoull_ok()
130 {"0x100", 16, 0x100ULL}, in test_kstrtoull_ok()
131 {"0x101", 16, 0x101ULL}, in test_kstrtoull_ok()
132 {"0x7fff", 16, 0x7fffULL}, in test_kstrtoull_ok()
133 {"0x8000", 16, 0x8000ULL}, in test_kstrtoull_ok()
134 {"0x8001", 16, 0x8001ULL}, in test_kstrtoull_ok()
135 {"0xffff", 16, 0xffffULL}, in test_kstrtoull_ok()
136 {"0x10000", 16, 0x10000ULL}, in test_kstrtoull_ok()
137 {"0x10001", 16, 0x10001ULL}, in test_kstrtoull_ok()
138 {"0x7fffffff", 16, 0x7fffffffULL}, in test_kstrtoull_ok()
139 {"0x80000000", 16, 0x80000000ULL}, in test_kstrtoull_ok()
140 {"0x80000001", 16, 0x80000001ULL}, in test_kstrtoull_ok()
141 {"0xffffffff", 16, 0xffffffffULL}, in test_kstrtoull_ok()
142 {"0x100000000", 16, 0x100000000ULL}, in test_kstrtoull_ok()
143 {"0x100000001", 16, 0x100000001ULL}, in test_kstrtoull_ok()
144 {"0x7fffffffffffffff", 16, 0x7fffffffffffffffULL}, in test_kstrtoull_ok()
145 {"0x8000000000000000", 16, 0x8000000000000000ULL}, in test_kstrtoull_ok()
146 {"0x8000000000000001", 16, 0x8000000000000001ULL}, in test_kstrtoull_ok()
147 {"0xfffffffffffffffe", 16, 0xfffffffffffffffeULL}, in test_kstrtoull_ok()
148 {"0xffffffffffffffff", 16, 0xffffffffffffffffULL}, in test_kstrtoull_ok()
150 {"0\n", 0, 0ULL}, in test_kstrtoull_ok()
158 {"", 0}, in test_kstrtoull_fail()
162 {"\n", 0}, in test_kstrtoull_fail()
166 {"\n0", 0}, in test_kstrtoull_fail()
170 {"+", 0}, in test_kstrtoull_fail()
174 {"-", 0}, in test_kstrtoull_fail()
175 {"-", 8}, in test_kstrtoull_fail()
176 {"-", 10}, in test_kstrtoull_fail()
177 {"-", 16}, in test_kstrtoull_fail()
178 {"0x", 0}, in test_kstrtoull_fail()
179 {"0x", 16}, in test_kstrtoull_fail()
180 {"0X", 0}, in test_kstrtoull_fail()
181 {"0X", 16}, in test_kstrtoull_fail()
182 {"0 ", 0}, in test_kstrtoull_fail()
183 {"1+", 0}, in test_kstrtoull_fail()
184 {"1-", 0}, in test_kstrtoull_fail()
185 {" 2", 0}, in test_kstrtoull_fail()
187 {"0x0z", 0}, in test_kstrtoull_fail()
188 {"0z", 0}, in test_kstrtoull_fail()
189 {"a", 0}, in test_kstrtoull_fail()
203 {"-0", 0}, in test_kstrtoull_fail()
204 {"-0", 8}, in test_kstrtoull_fail()
205 {"-0", 10}, in test_kstrtoull_fail()
206 {"-0", 16}, in test_kstrtoull_fail()
207 {"-1", 0}, in test_kstrtoull_fail()
208 {"-1", 8}, in test_kstrtoull_fail()
209 {"-1", 10}, in test_kstrtoull_fail()
210 {"-1", 16}, in test_kstrtoull_fail()
212 {"-+1", 0}, in test_kstrtoull_fail()
213 {"-+1", 8}, in test_kstrtoull_fail()
214 {"-+1", 10}, in test_kstrtoull_fail()
215 {"-+1", 16}, in test_kstrtoull_fail()
217 {"0\n0", 0}, in test_kstrtoull_fail()
218 {"0\n0", 8}, in test_kstrtoull_fail()
219 {"0\n0", 10}, in test_kstrtoull_fail()
220 {"0\n0", 16}, in test_kstrtoull_fail()
221 {"0\n+", 0}, in test_kstrtoull_fail()
222 {"0\n+", 8}, in test_kstrtoull_fail()
223 {"0\n+", 10}, in test_kstrtoull_fail()
224 {"0\n+", 16}, in test_kstrtoull_fail()
225 {"0\n-", 0}, in test_kstrtoull_fail()
226 {"0\n-", 8}, in test_kstrtoull_fail()
227 {"0\n-", 10}, in test_kstrtoull_fail()
228 {"0\n-", 16}, in test_kstrtoull_fail()
229 {"0\n ", 0}, in test_kstrtoull_fail()
230 {"0\n ", 8}, in test_kstrtoull_fail()
231 {"0\n ", 10}, in test_kstrtoull_fail()
232 {"0\n ", 16}, in test_kstrtoull_fail()
241 {"0", 10, 0LL}, in test_kstrtoll_ok()
243 {"127", 10, 127LL}, in test_kstrtoll_ok()
263 {"-0", 10, 0LL}, in test_kstrtoll_ok()
264 {"-1", 10, -1LL}, in test_kstrtoll_ok()
265 {"-2", 10, -2LL}, in test_kstrtoll_ok()
266 {"-9223372036854775808", 10, LLONG_MIN}, in test_kstrtoll_ok()
278 {"-9223372036854775809", 10}, in test_kstrtoll_fail()
279 {"-18446744073709551614", 10}, in test_kstrtoll_fail()
280 {"-18446744073709551615", 10}, in test_kstrtoll_fail()
282 {"-+1", 0}, in test_kstrtoll_fail()
283 {"-+1", 8}, in test_kstrtoll_fail()
284 {"-+1", 10}, in test_kstrtoll_fail()
285 {"-+1", 16}, in test_kstrtoll_fail()
294 {"0", 10, 0}, in test_kstrtou64_ok()
297 {"127", 10, 127}, in test_kstrtou64_ok()
333 {"-2", 10}, in test_kstrtou64_fail()
334 {"-1", 10}, in test_kstrtou64_fail()
345 {"-128", 10, -128}, in test_kstrtos64_ok()
346 {"-127", 10, -127}, in test_kstrtos64_ok()
347 {"-1", 10, -1}, in test_kstrtos64_ok()
348 {"0", 10, 0}, in test_kstrtos64_ok()
351 {"127", 10, 127}, in test_kstrtos64_ok()
397 {"0", 10, 0}, in test_kstrtou32_ok()
400 {"127", 10, 127}, in test_kstrtou32_ok()
428 {"-2", 10}, in test_kstrtou32_fail()
429 {"-1", 10}, in test_kstrtou32_fail()
448 {"-128", 10, -128}, in test_kstrtos32_ok()
449 {"-127", 10, -127}, in test_kstrtos32_ok()
450 {"-1", 10, -1}, in test_kstrtos32_ok()
451 {"0", 10, 0}, in test_kstrtos32_ok()
454 {"127", 10, 127}, in test_kstrtos32_ok()
500 {"0", 10, 0}, in test_kstrtou16_ok()
503 {"127", 10, 127}, in test_kstrtou16_ok()
523 {"-2", 10}, in test_kstrtou16_fail()
524 {"-1", 10}, in test_kstrtou16_fail()
551 {"-130", 10, -130}, in test_kstrtos16_ok()
552 {"-129", 10, -129}, in test_kstrtos16_ok()
553 {"-128", 10, -128}, in test_kstrtos16_ok()
554 {"-127", 10, -127}, in test_kstrtos16_ok()
555 {"-1", 10, -1}, in test_kstrtos16_ok()
556 {"0", 10, 0}, in test_kstrtos16_ok()
559 {"127", 10, 127}, in test_kstrtos16_ok()
605 {"0", 10, 0}, in test_kstrtou8_ok()
608 {"127", 10, 127}, in test_kstrtou8_ok()
620 {"-2", 10}, in test_kstrtou8_fail()
621 {"-1", 10}, in test_kstrtou8_fail()
656 {"-128", 10, -128}, in test_kstrtos8_ok()
657 {"-127", 10, -127}, in test_kstrtos8_ok()
658 {"-1", 10, -1}, in test_kstrtos8_ok()
659 {"0", 10, 0}, in test_kstrtos8_ok()
662 {"127", 10, 127}, in test_kstrtos8_ok()
670 {"-130", 10}, in test_kstrtos8_fail()
671 {"-129", 10}, in test_kstrtos8_fail()
732 return -EINVAL; in test_kstrtox_init()