projects
/
unix-history
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
redo include files for kernel reorg
[unix-history]
/
usr
/
src
/
sys
/
tahoe
/
math
/
Knegf.s
/* Knegf.s 1.4 90/12/04 */
#include "../math/fp.h"
#include "../math/Kfp.h"
#include "../tahoe/SYS.h"
.text
ENTRY(Knegf, 0)
clrl r1
andl3 $EXPMASK,4(fp),r0 /* check for reserved operand,zero. */
beql retzero
movl 4(fp),r0 /* fetch operand. */
bbc $31,r0,seton
andl2 $(0!SIGNBIT),r0 /* turn it off. */
ret
seton: orl2 $SIGNBIT,r0 /* turn it on. */
ret
retzero:
clrl r0
ret