Printing out a bunch more sizes for ex21.

This commit is contained in:
Dan Buch 2011-11-01 08:03:40 -04:00
parent 418a1264c6
commit 86d78ce333

77
ex21.c
View File

@ -43,5 +43,82 @@ int main(int argc, char *argv[])
printf("sizeof(uint_least64_t) = %d\n", sizeof(uint_least64_t)); printf("sizeof(uint_least64_t) = %d\n", sizeof(uint_least64_t));
#endif #endif
printf("INT_LEAST8_MAX = %d\n", INT_LEAST8_MAX);
printf("INT_LEAST16_MAX = %d\n", INT_LEAST16_MAX);
printf("INT_LEAST32_MAX = %d\n", INT_LEAST32_MAX);
#if defined(_M_X64) || defined(__amd64__)
printf("INT_LEAST64_MAX = %d\n", INT_LEAST64_MAX);
#endif
printf("INT_LEAST8_MIN = %d\n", INT_LEAST8_MIN);
printf("INT_LEAST16_MIN = %d\n", INT_LEAST16_MIN);
printf("INT_LEAST32_MIN = %d\n", INT_LEAST32_MIN);
#if defined(_M_X64) || defined(__amd64__)
printf("INT_LEAST64_MIN = %d\n", INT_LEAST64_MIN);
#endif
printf("UINT_LEAST8_MAX = %d\n", UINT_LEAST8_MAX);
printf("UINT_LEAST16_MAX = %d\n", UINT_LEAST16_MAX);
printf("UINT_LEAST32_MAX = %d\n", UINT_LEAST32_MAX);
#if defined(_M_X64) || defined(__amd64__)
printf("UINT_LEAST64_MAX = %d\n", UINT_LEAST64_MAX);
#endif
printf("sizeof(int_fast8_t) = %d\n", sizeof(int_fast8_t));
printf("sizeof(int_fast16_t) = %d\n", sizeof(int_fast16_t));
printf("sizeof(int_fast32_t) = %d\n", sizeof(int_fast32_t));
#if defined(_M_X64) || defined(__amd64__)
printf("sizeof(int_fast64_t) = %d\n", sizeof(int_fast64_t));
#endif
printf("sizeof(uint_fast8_t) = %d\n", sizeof(uint_fast8_t));
printf("sizeof(uint_fast16_t) = %d\n", sizeof(uint_fast16_t));
printf("sizeof(uint_fast32_t) = %d\n", sizeof(uint_fast32_t));
#if defined(_M_X64) || defined(__amd64__)
printf("sizeof(uint_fast64_t) = %d\n", sizeof(uint_fast64_t));
#endif
printf("INT_FAST8_MAX = %d\n", INT_FAST8_MAX);
printf("INT_FAST16_MAX = %d\n", INT_FAST16_MAX);
printf("INT_FAST32_MAX = %d\n", INT_FAST32_MAX);
#if defined(_M_X64) || defined(__amd64__)
printf("INT_FAST64_MAX = %d\n", INT_FAST64_MAX);
#endif
printf("INT_FAST8_MAX = %d\n", INT_FAST8_MAX);
printf("INT_FAST16_MAX = %d\n", INT_FAST16_MAX);
printf("INT_FAST32_MAX = %d\n", INT_FAST32_MAX);
#if defined(_M_X64) || defined(__amd64__)
printf("INT_FAST64_MAX = %d\n", INT_FAST64_MAX);
#endif
printf("INT_FAST8_MIN = %d\n", INT_FAST8_MIN);
printf("INT_FAST16_MIN = %d\n", INT_FAST16_MIN);
printf("INT_FAST32_MIN = %d\n", INT_FAST32_MIN);
#if defined(_M_X64) || defined(__amd64__)
printf("INT_FAST64_MIN = %d\n", INT_FAST64_MIN);
#endif
printf("UINT_FAST8_MAX = %d\n", UINT_FAST8_MAX);
printf("UINT_FAST16_MAX = %d\n", UINT_FAST16_MAX);
printf("UINT_FAST32_MAX = %d\n", UINT_FAST32_MAX);
#if defined(_M_X64) || defined(__amd64__)
printf("UINT_FAST64_MAX = %d\n", UINT_FAST64_MAX);
#endif
printf("sizeof(intptr_t) = %d\n", sizeof(intptr_t));
printf("sizeof(uintptr_t) = %d\n", sizeof(uintptr_t));
printf("INTPTR_MAX = %d\n", INTPTR_MAX);
printf("INTPTR_MIN = %d\n", INTPTR_MIN);
printf("UINTPTR_MAX = %d\n", UINTPTR_MAX);
printf("sizeof(intmax_t) = %d\n", sizeof(intmax_t));
printf("sizeof(uintmax_t) = %d\n", sizeof(uintmax_t));
printf("INTMAX_MAX = %d\n", INTMAX_MAX);
printf("INTMAX_MIN = %d\n", INTMAX_MIN);
printf("UINTMAX_MAX = %d\n", UINTMAX_MAX);
printf("PTRDIFF_MIN = %d\n", PTRDIFF_MIN);
printf("PTRDIFF_MAX = %d\n", PTRDIFF_MAX);
printf("SIZE_MAX = %d\n", SIZE_MAX);
return 0; return 0;
} }