projects
/
sbcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
1.0.45.10: tools-for-build/Makefile path fixes
[sbcl.git]
/
src
/
compiler
/
ppc
/
arith.lisp
diff --git
a/src/compiler/ppc/arith.lisp
b/src/compiler/ppc/arith.lisp
index
4cbfbb0
..
f8cb9aa
100644
(file)
--- a/
src/compiler/ppc/arith.lisp
+++ b/
src/compiler/ppc/arith.lisp
@@
-459,7
+459,7
@@
(:temporary (:scs (non-descriptor-reg)) temp)
(:translate *)
(:generator 2
(:temporary (:scs (non-descriptor-reg)) temp)
(:translate *)
(:generator 2
- (inst srawi temp y 2)
+ (inst srawi temp y n-fixnum-tag-bits)
(inst mullw r x temp)))
(define-vop (fast-*-c/fixnum=>fixnum fast-fixnum-binop-c)
(inst mullw r x temp)))
(define-vop (fast-*-c/fixnum=>fixnum fast-fixnum-binop-c)
@@
-1165,7
+1165,7
@@
(:results (digit :scs (unsigned-reg)))
(:result-types unsigned-num)
(:generator 1
(:results (digit :scs (unsigned-reg)))
(:result-types unsigned-num)
(:generator 1
- (inst srawi digit fixnum 2)))
+ (inst srawi digit fixnum n-fixnum-tag-bits)))
(define-vop (bignum-floor)
(define-vop (bignum-floor)
@@
-1232,7
+1232,7
@@
(:generator 1
(sc-case res
(any-reg
(:generator 1
(sc-case res
(any-reg
- (inst slwi res digit 2))
+ (inst slwi res digit n-fixnum-tag-bits))
(signed-reg
(move res digit)))))
(signed-reg
(move res digit)))))