We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0589034 commit a75072eCopy full SHA for a75072e
Sources/LispKit/Resources/Libraries/srfi/143.sld
@@ -84,7 +84,8 @@
84
(fxmin lispkit:fxmin)
85
(fxsqrt lispkit:fxsqrt)
86
(fxbit-set? lispkit:fxbit-set?)
87
- (fxcopy-bit lispkit:fxcopy-bit)))
+ (fxcopy-bit lispkit:fxcopy-bit)
88
+ (fxbit-count lispkit:fxbit-count)))
89
90
;; Generic implementation of carry functions from the R6RS standard.
91
;; These implementations of fx+/carry, fx-/carry, and fx*/carry are very inefficient,
@@ -203,6 +204,9 @@
203
204
205
(define (fxbit-set? i j)
206
(bit-set? j i))
207
+
208
+ (define (fxbit-count i)
209
+ (bit-count i))
210
211
(define (fxcopy-bit index to bool)
212
(copy-bit to index (if (eq? bool #t) 1 (if (eq? bool #f) 0 bool))))
0 commit comments