File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Sources/LispKit/Resources/Libraries/srfi Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 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.
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
You can’t perform that action at this time.
0 commit comments