ngf4.c 520 B

123456789101112131415161718192021222324252627
  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. NEGATE A FLOATING POINT (NGF 4)
  8. */
  9. /********************************************************/
  10. #include "FP_types.h"
  11. #include "get_put.h"
  12. #define OFF ((FL_MSW_AT_LOW_ADDRESS ? 0 : 2) + (FL_MSB_AT_LOW_ADDRESS ? 0 : 1))
  13. void
  14. ngf4(f)
  15. SINGLE f;
  16. {
  17. unsigned char *p;
  18. if (f != (SINGLE) 0) {
  19. p = (unsigned char *) &f + OFF;
  20. *p ^= 0x80;
  21. }
  22. }