aboutsummaryrefslogtreecommitdiffstats
path: root/gen
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--gen/bits/intconf.c1
-rw-r--r--gen/bits/intconf.h1
2 files changed, 2 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");
diff --git a/gen/bits/intconf.h b/gen/bits/intconf.h
index 84989e9..2dca3b5 100644
--- a/gen/bits/intconf.h
+++ b/gen/bits/intconf.h
@@ -26,6 +26,7 @@
#define __INT_BIT //(bin/gen/bits/intconf | grep ^INT_BIT | sed "s/^[^ ]* //")
#define __LONG_BIT //(bin/gen/bits/intconf | grep ^LONG_BIT | sed "s/^[^ ]* //")
#define __LONG_LONG_BIT //(bin/gen/bits/intconf | grep ^LONG_LONG_BIT | sed "s/^[^ ]* //")
+#define __PTR_BIT //(bin/gen/bits/intconf | grep ^PTR_BIT | sed "s/^[^ ]* //")
#define __INT8 //(bin/gen/bits/intconf | grep ^INT8 | sed "s/^[^ ]* //" | sed 1q)
#define __INT16 //(bin/gen/bits/intconf | grep ^INT16 | sed "s/^[^ ]* //" | sed 1q)
#define __INT32 //(bin/gen/bits/intconf | grep ^INT32 | sed "s/^[^ ]* //" | sed 1q)