FP_bias.h 868 B

12345678910111213141516171819202122232425262728
  1. /*
  2. (c) copyright 1988 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. /*
  7. include file for floating point package
  8. */
  9. /* FLOAT FORMAT EXPONENT BIAS */
  10. #define SGL_BIAS 127 /* excess 128 notation used */
  11. #define DBL_BIAS 1023 /* excess 1024 notation used */
  12. #define EXT_BIAS 0 /* 2s-complement notation used */
  13. /* this is possible because the */
  14. /* sign is in a seperate word */
  15. /* VARIOUS MAX AND MIN VALUES */
  16. /* 1) FOR THE DIFFERENT FORMATS */
  17. #define SGL_MAX 254 /* standard definition */
  18. #define SGL_MIN 1 /* standard definition */
  19. #define DBL_MAX 2046 /* standard definition */
  20. #define DBL_MIN 1 /* standard definition */
  21. #define EXT_MAX 16383 /* standard minimum */
  22. #define EXT_MIN -16382 /* standard minimum */