typo s!fx+*/carry!fx*/carry!g (issue #908)

This commit is contained in:
Alex Shinn 2023-04-02 22:39:25 +09:00
parent 5826023de1
commit 7e511ef8e4
2 changed files with 2 additions and 2 deletions

View file

@ -23,7 +23,7 @@
fxzero? fxpositive? fxnegative? fxodd? fxeven? fxmax fxmin
fx+ fx- fxneg fx* fxabs fxsquare fxsqrt
fxquotient fxremainder
fx+/carry fx-/carry fx+*/carry
fx+/carry fx-/carry fx*/carry
fxnot fxand fxior fxxor
fxarithmetic-shift fxarithmetic-shift-left
fxarithmetic-shift-right

View file

@ -41,7 +41,7 @@
(call-with-values (lambda () (balanced/ d (expt 2 fx-width)))
(lambda (q r) (values r q)))))
(define (fx+*/carry i j k)
(define (fx*/carry i j k)
(let ((s (+ (* i j) k)))
(call-with-values (lambda () (balanced/ s (expt 2 fx-width)))
(lambda (q r) (values r q)))))