1 /* SPDX-License-Identifier: LGPL-2.1+ */
3 Copyright 2016 Zbigniew Jędrzejewski-Szmek
11 /* Print information about various types. Useful when diagnosing
12 * gcc diagnostics on an unfamiliar architecture. */
14 #pragma GCC diagnostic ignored "-Wtype-limits"
17 printf("%s → %zu bits%s\n", STRINGIFY(t), \
19 strstr(STRINGIFY(t), "signed") ? "" : \
20 ((t)-1 < (t)0 ? ", signed" : ", unsigned"));
27 big_enum_value = UINT64_C(1),
31 big_enum2_pos = UINT64_C(1),
32 big_enum2_neg = UINT64_C(-1),
42 info(long long unsigned);
44 info(__syscall_ulong_t);
45 info(__syscall_slong_t);
46 #endif // ifdef __GLIBC__
52 #ifdef __HAVE_DISTINCT_FLOAT128X
66 #endif // ifdef __GLIBC__
74 assert_cc(sizeof(enum BigEnum2) == 8);
75 printf("big_enum2_pos → %zu\n", sizeof(big_enum2_pos));
76 printf("big_enum2_neg → %zu\n", sizeof(big_enum2_neg));