aboutsummaryrefslogtreecommitdiffstats
path: root/gen/bits/intconf.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-10-16 19:11:31 +0200
committerMattias Andrée <maandree@operamail.com>2015-10-16 19:11:31 +0200
commit50e120e73e471aad313e11ea57733316e616aa88 (patch)
tree4c4d9362e3da928f04ec50d28eaaacfc23dddf9b /gen/bits/intconf.c
parentwhitespace (diff)
downloadslibc-50e120e73e471aad313e11ea57733316e616aa88.tar.gz
slibc-50e120e73e471aad313e11ea57733316e616aa88.tar.bz2
slibc-50e120e73e471aad313e11ea57733316e616aa88.tar.xz
do not assume that size(void*) == size(long)
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--gen/bits/intconf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gen/bits/intconf.c b/gen/bits/intconf.c
index b5d05be..5955d38 100644
--- a/gen/bits/intconf.c
+++ b/gen/bits/intconf.c
@@ -26,6 +26,7 @@ int main(void)
printf("INT_BIT %zu\n", 8 * sizeof(int));
printf("LONG_BIT %zu\n", 8 * sizeof(long int));
printf("LONG_LONG_BIT %zu\n", 8 * sizeof(long long int));
+ printf("PTR_BIT %zu\n", 8 * sizeof(void*));
printf("INT%zu %s\n", 8 * sizeof(char), "char");
printf("INT%zu %s\n", 8 * sizeof(short int), "short int");