mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-19 05:39:18 +02:00
typo s!fx+*/carry!fx*/carry!g (issue #908)
This commit is contained in:
parent
5826023de1
commit
7e511ef8e4
2 changed files with 2 additions and 2 deletions
|
@ -23,7 +23,7 @@
|
||||||
fxzero? fxpositive? fxnegative? fxodd? fxeven? fxmax fxmin
|
fxzero? fxpositive? fxnegative? fxodd? fxeven? fxmax fxmin
|
||||||
fx+ fx- fxneg fx* fxabs fxsquare fxsqrt
|
fx+ fx- fxneg fx* fxabs fxsquare fxsqrt
|
||||||
fxquotient fxremainder
|
fxquotient fxremainder
|
||||||
fx+/carry fx-/carry fx+*/carry
|
fx+/carry fx-/carry fx*/carry
|
||||||
fxnot fxand fxior fxxor
|
fxnot fxand fxior fxxor
|
||||||
fxarithmetic-shift fxarithmetic-shift-left
|
fxarithmetic-shift fxarithmetic-shift-left
|
||||||
fxarithmetic-shift-right
|
fxarithmetic-shift-right
|
||||||
|
|
|
@ -41,7 +41,7 @@
|
||||||
(call-with-values (lambda () (balanced/ d (expt 2 fx-width)))
|
(call-with-values (lambda () (balanced/ d (expt 2 fx-width)))
|
||||||
(lambda (q r) (values r q)))))
|
(lambda (q r) (values r q)))))
|
||||||
|
|
||||||
(define (fx+*/carry i j k)
|
(define (fx*/carry i j k)
|
||||||
(let ((s (+ (* i j) k)))
|
(let ((s (+ (* i j) k)))
|
||||||
(call-with-values (lambda () (balanced/ s (expt 2 fx-width)))
|
(call-with-values (lambda () (balanced/ s (expt 2 fx-width)))
|
||||||
(lambda (q r) (values r q)))))
|
(lambda (q r) (values r q)))))
|
||||||
|
|
Loading…
Add table
Reference in a new issue