home *** CD-ROM | disk | FTP | other *** search
/ Atari FTP / ATARI_FTP_0693.zip / ATARI_FTP_0693 / Mint / mntlib32.zoo / _negsf2.s < prev    next >
Text File  |  1993-01-14  |  659b  |  26 lines

  1. | double floating point negation routine
  2. |
  3. | written by Kai-Uwe Bloem (I5110401@dbstu1.bitnet).
  4. | Based on a 80x86 floating point packet from comp.os.minix, written by P.Housel
  5. | patched by Olaf Flebbe (flebbe@tat.physik.uni-tuebingen.de)
  6. |
  7. | revision 1.1.1, olaf 12-92
  8. |  + Since sign of NaN is ignored, we can flip it.
  9. |  + -0. is different from 0., but compares equal!
  10. |
  11. | Revision 1.1, kub 12-89 :
  12. | Created single float version for 68000
  13. |
  14. | Revision 1.0:
  15. | original 8088 code from P.S.Housel for double floats
  16.  
  17.     .text
  18.     .even
  19.     .globl    __negsf2, ___negsf2
  20.  
  21. __negsf2:            | floating point negate
  22. ___negsf2:
  23.     movel    sp@(4),d0
  24.     bchg    #31,d0        | flip sign bit
  25.     rts
  26.