Lines Matching +full:- +full:v
2 * SPDX-License-Identifier: BSD-3-Clause
168 #define ERROR_MAX 1e-6
177 # define ERROR_MAX 1e-6
179 # define ERROR_MAX 1e-14
184 #define ERROR_MAX 1e-5
202 { .str = L"foo\n", .fmt = L"foo\nbar", .expect = -1 },
203 { .str = L"foo\n", .fmt = L"foo bar", .expect = -1 },
204 { .str = L"foo\n", .fmt = L"foo %d", .expect = -1 },
205 { .str = L"foo\n", .fmt = L"foo\n%d", .expect = -1 },
206 { .str = L"foon", .fmt = L"foonbar", .expect = -1 },
207 { .str = L"foon", .fmt = L"foon%d", .expect = -1 },
208 { .str = L"foo ", .fmt = L"foo bar", .expect = -1 },
209 { .str = L"foo ", .fmt = L"foo %d", .expect = -1 },
210 { .str = L"foo\t", .fmt = L"foo\tbar", .expect = -1 },
211 { .str = L"foo\t", .fmt = L"foo bar", .expect = -1 },
212 { .str = L"foo\t", .fmt = L"foo %d", .expect = -1 },
213 { .str = L"foo\t", .fmt = L"foo\t%d", .expect = -1 },
243 n = -n; in int_exp10()
244 while (n--) in int_exp10()
285 int x = -35; in main()
291 if (!setlocale(LC_CTYPE, "C.UTF-8")) { in main()
292 printf("setlocale(LC_CTYPE, \"C.UTF-8\") failed\n"); in main()
304 for (a = 1e-10; a < 1e10; a *= 10.0) { in main()
308 for (a = 1e-10; a < 1e10; a *= 10.0) { in main()
312 for (a = 1e-10; a < 1e10; a *= 10.0) { in main()
389 if (y > 0 && l != y - 1) { in main()
390 printf("%s: returned buffer len want %d got %d\n", name, y - 1, l); in main()
393 if (y > 0 && strncmp(tbuf, "123", y - 1) != 0) { in main()
394 #pragma GCC diagnostic ignored "-Wpragmas" in main()
395 #pragma GCC diagnostic ignored "-Wunknown-warning-option" in main()
396 #pragma GCC diagnostic ignored "-Wstringop-truncation" in main()
397 strncpy(buf, "123", y - 1); in main()
398 buf[y-1] = '\0'; in main()
402 if (memcmp(tbuf + y, ref + y, sizeof(tbuf) - y) != 0) { in main()
413 sprintf(buf, FMT(prefix, oconv), v); \ in main()
415 if (v != r || __n != 1) { \ in main()
416 …t%3d: " prefix " " oconv " wanted " FMT(prefix, oconv) " got " FMT(prefix, oconv) "\n", x, v, r); \ in main()
427 #pragma GCC diagnostic ignored "-Wformat" in main()
428 #pragma GCC diagnostic ignored "-Wformat-extra-args" in main()
435 type v = (type) (0x123456789abcdef0LL >> (64 - sizeof(type) * 8)) >> x; \ in main()
436 type r = ~v; \ in main()
438 r = ~v; \ in main()
440 r = ~v; \ in main()
442 r = ~v; \ in main()
444 r = ~v; \ in main()
473 void *v = &i_addr; in main() local
474 void *r = (void *) -1; in main()
506 errors += check_float(">= 0.5", a, buf, "0.", x-1, "1"); in main()
540 errors += check_float("< 1", c, buf, "0.", x-1, "1"); in main()
544 for (x = -37; x <= 37; x++) in main()
550 float_type v = (float_type) test_vals[t] * int_exp10(x); in main() local
553 sprintf(buf, "%.55f", printf_float(v)); in main()
555 e = fabs(v-r) / v; in main()
558 printf_float(v), printf_float(v), in main()
567 sprintf(buf, "%.20e", printf_float(v)); in main()
569 e = fabs(v-r) / v; in main()
573 printf_float(v), printf_float(r), printf_float(e), buf); in main()
579 sprintf(buf, "%.20g", printf_float(v)); in main()
581 e = fabs(v-r) / v; in main()
585 printf_float(v), printf_float(r), printf_float(e), buf); in main()
591 sprintf(buf, "%.20a", printf_float(v)); in main()
593 e = fabs(v-r) / v; in main()
597 printf_float(v), printf_float(r), printf_float(e), buf); in main()