Skip to content

Commit a75072e

Browse files
committed
Fix bug in SRFI 143.
1 parent 0589034 commit a75072e

File tree

1 file changed

+5
-1
lines changed
  • Sources/LispKit/Resources/Libraries/srfi

1 file changed

+5
-1
lines changed

Sources/LispKit/Resources/Libraries/srfi/143.sld

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@
8484
(fxmin lispkit:fxmin)
8585
(fxsqrt lispkit:fxsqrt)
8686
(fxbit-set? lispkit:fxbit-set?)
87-
(fxcopy-bit lispkit:fxcopy-bit)))
87+
(fxcopy-bit lispkit:fxcopy-bit)
88+
(fxbit-count lispkit:fxbit-count)))
8889

8990
;; Generic implementation of carry functions from the R6RS standard.
9091
;; These implementations of fx+/carry, fx-/carry, and fx*/carry are very inefficient,
@@ -203,6 +204,9 @@
203204

204205
(define (fxbit-set? i j)
205206
(bit-set? j i))
207+
208+
(define (fxbit-count i)
209+
(bit-count i))
206210

207211
(define (fxcopy-bit index to bool)
208212
(copy-bit to index (if (eq? bool #t) 1 (if (eq? bool #f) 0 bool))))

0 commit comments

Comments
 (0)