Skip to content

Commit d04fc5d

Browse files
committed
Update documentation of SRFI 151.
1 parent caa11e7 commit d04fc5d

File tree

1 file changed

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

1 file changed

+8
-1
lines changed

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@
1515
;;; They have been incorporated into this SRFI. R6RS is a subset of SRFI 60, except that all
1616
;;; procedure names begin with a bitwise- prefix. A few procedures have been added from the
1717
;;; general vector SRFI 133.
18+
;;;
19+
;;; This SRFI differs from SRFI 142 in only three ways:
20+
;;; 1. The bitwise-if function has the argument ordering of SLIB, SRFI 60, and R6RS rather
21+
;;; than the ordering of SRFI 33.
22+
;;; 2. The order in which bits are processed by the procedures listed in the "Bits conversion"
23+
;;; section has been clarified and some of the procedures' names have been changed.
24+
;;; 3. The LispKit port for SRFI 151 is using native bitwise operations for fixnums and
25+
;;; bignums. Its performance is significantly better than the one of SRFI 142.
1826
;;;
1927
;;; Specification:
2028
;;; Copyright © 2016 John Cowan. All Rights Reserved.
@@ -216,7 +224,6 @@
216224
(define (bit-field-replace-same to from start end)
217225
(bitwise-if (arithmetic-shift (mask start end) start) from to))
218226

219-
;;; Clever definition, assuming you have a fast BIT-COUNT.
220227
(define first-set-bit first-bit-set)
221228
)
222229

0 commit comments

Comments
 (0)