home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
vol_200
/
250_01
/
fpneg.s
< prev
next >
Wrap
Text File
|
1987-10-29
|
512b
|
28 lines
.ttl "fabs.s"
* MC68020/MC68881 IEEE Format Single Precision Routines
*
* Written by: Edmund H. Ramm
*
* _fpneg entry point for single prec. negation, operand in 4(sp)
*
* sp 4
* ---------------
* | ret | x |
.text
.globl _fpneg,fpneg
_fpneg:
fpneg:
*
* on exit, d0 = -( 4(sp) )
*
move.l 4(sp),d0 * d0 <-- operand
bchg #31,d0 * invert mantissa's sign
rts * faster than MC68881's fneg
.end