sizes.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
  3. * See the copyright notice in the ACK home directory, in the file "Copyright".
  4. */
  5. /* $Id$ */
  6. /* VARIOUS TARGET MACHINE SIZE DESCRIPTORS */
  7. #include "nocross.h"
  8. #include "trgt_sizes.h"
  9. #ifndef NOCROSS
  10. extern arith
  11. short_size, word_size, dword_size, int_size, long_size,
  12. float_size, double_size, lngdbl_size,
  13. pointer_size;
  14. extern arith max_int, max_unsigned; /* cstoper.c */
  15. #else /* NOCROSS */
  16. #define short_size ((arith)SZ_SHORT)
  17. #define word_size ((arith)SZ_WORD)
  18. #define dword_size ((arith)2*SZ_WORD)
  19. #define int_size ((arith)SZ_INT)
  20. #define long_size ((arith)SZ_LONG)
  21. #define float_size ((arith)SZ_FLOAT)
  22. #define double_size ((arith)SZ_DOUBLE)
  23. #define lngdbl_size ((arith)SZ_LNGDBL)
  24. #define pointer_size ((arith)SZ_POINTER)
  25. #if SZ_INT == 2
  26. #define max_int ((arith)32767)
  27. #define max_unsigned ((arith)65535)
  28. #else /* SZ_INT == 4 */
  29. #define max_int ((arith)2147483647)
  30. #define max_unsigned ((arith)4294967295)
  31. #endif
  32. #endif /* NOCROSS */