home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / vol_200 / 250_01 / cosh.s < prev    next >
Text File  |  1987-10-29  |  512b  |  29 lines

  1.     .ttl    "cosh.s"
  2.  
  3. * MC68020/MC68881 IEEE Format Single Precision Routines
  4. *
  5. * Written by: Edmund H. Ramm
  6. *
  7. * _cosh entry point for single prec. hyperbolic cosine, operand in 4(sp)
  8. *
  9. *     sp     4
  10. *    ---------------
  11. *    | ret  |  x   |
  12.  
  13.  
  14.     .text
  15.     .globl    _cosh
  16.  
  17.  
  18. _cosh:
  19. *
  20. * on exit, d0 = cosh( 4(sp) )
  21. *
  22. *    fcosh.s    4(sp),fp0        * fp0 <-- cosh( 4(sp) )
  23.     dc.w    $f22f,$4419,$0004
  24. *    fmove.s    fp0,d0            * d0 <-- hyp. cosine
  25.     dc.w    $f200,$6400
  26.     rts
  27.  
  28.     .end
  29.