#| -*-Scheme-*-
-$Id: earlyrew.scm,v 1.13 1995/08/19 01:33:51 adams Exp $
+$Id: earlyrew.scm,v 1.14 1995/08/31 15:23:51 adams Exp $
Copyright (c) 1994-1995 Massachusetts Institute of Technology
(right-sided? (if (default-object? right-sided?)
false
right-sided?))
- (%test (if (zero? n-bits)
- (lambda (name)
- `(CALL (QUOTE ,%machine-fixnum?)
- (QUOTE #F)
- (LOOKUP ,name)))
- (lambda (name)
- `(CALL (QUOTE ,%small-fixnum?)
- (QUOTE #F)
- (LOOKUP ,name)
- (QUOTE ,n-bits)))))
- (test (if (zero? n-bits)
- machine-fixnum?
- (lambda (value)
- (small-fixnum? value n-bits)))))
+ (%test (lambda (name)
+ `(CALL (QUOTE ,%small-fixnum?)
+ (QUOTE #F)
+ (LOOKUP ,name)
+ (QUOTE ,n-bits))))
+ (test (lambda (value)
+ (small-fixnum? value n-bits))))
(lambda (form x y)
(cond ((form/number? x)
=> (lambda (x-value)
#| -*-Scheme-*-
-$Id: laterew.scm,v 1.14 1995/08/23 14:07:19 adams Exp $
+$Id: laterew.scm,v 1.15 1995/08/31 15:25:13 adams Exp $
Copyright (c) 1994-1995 Massachusetts Institute of Technology
(LOOKUP ,name)
(QUOTE ,(n-bits constant-rand)))
`(QUOTE #F))))
- #| ;
- ;; Always open code as %small-fixnum?
- ;; So that generic arithmetic can be
- ;; recognized=>optimized at the RTL level
- ((zero? n-bits)
- (lambda (name constant-rand)
- constant-rand ; ignored
- `(CALL (QUOTE ,%machine-fixnum?)
- (QUOTE #F)
- (LOOKUP ,name))))
- |#
(else
(lambda (name constant-rand)
constant-rand ; ignored
#| -*-Scheme-*-
-$Id: rtlgen.scm,v 1.38 1995/08/19 15:33:00 adams Exp $
+$Id: rtlgen.scm,v 1.39 1995/08/31 15:25:40 adams Exp $
Copyright (c) 1994-1995 Massachusetts Institute of Technology
(define-simple-value-test/inverted 'NOT 'FALSE? not)
(define-simple-value-test/inverted 'FALSE? 'FALSE? false?)
(define-simple-value-test 'FIXNUM? 'FIXNUM? fixnum?)
- (define-simple-value-test %machine-fixnum? 'FIXNUM? fixnum?)
(define-simple-value-test 'INDEX-FIXNUM? 'INDEX-FIXNUM? index-fixnum?))
(let ((define-simple-tag-test
#| -*-Scheme-*-
-$Id: triveval.scm,v 1.5 1995/06/22 15:09:07 adams Exp $
+$Id: triveval.scm,v 1.6 1995/08/31 15:26:05 adams Exp $
Copyright (c) 1994 Massachusetts Institute of Technology
; (declare-operator %invoke-continuation identity-procedure)
(declare-operator %vector-index vector-index)
\f
- (declare-operator %machine-fixnum? machine-fixnum?)
(declare-operator %small-fixnum? small-fixnum?)
(declare-operator %+ +)
(declare-operator %- -)