mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-19 13:49:17 +02:00
They can be close()d explicitly with close-file-descriptor, and will close() on gc, but only explicitly closing the last port on them will close the fileno. Notably needed for network sockets where we open separate input and output ports on the same socket.
17 lines
566 B
Scheme
17 lines
566 B
Scheme
|
|
(define-library (srfi 33)
|
|
(export bitwise-not
|
|
bitwise-and bitwise-ior
|
|
bitwise-xor bitwise-eqv
|
|
bitwise-nand bitwise-nor
|
|
bitwise-andc1 bitwise-andc2
|
|
bitwise-orc1 bitwise-orc2
|
|
arithmetic-shift bit-count integer-length
|
|
bitwise-merge
|
|
bit-set? any-bits-set? all-bits-set?
|
|
first-set-bit
|
|
extract-bit-field test-bit-field? clear-bit-field
|
|
replace-bit-field copy-bit-field)
|
|
(import (chibi))
|
|
(include-shared "33/bit")
|
|
(include "33/bitwise.scm"))
|