mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-18 21:29:18 +02:00
Removing all need for (scheme inexact)
This commit is contained in:
parent
a024126f7b
commit
1c8effbcd2
2 changed files with 3 additions and 3 deletions
|
@ -125,7 +125,7 @@
|
||||||
(define first-set-bit log2-binary-factors)
|
(define first-set-bit log2-binary-factors)
|
||||||
|
|
||||||
(define (logbit? index n)
|
(define (logbit? index n)
|
||||||
(logtest (exact (expt 2 index)) n))
|
(logtest (ash 1 index) n))
|
||||||
|
|
||||||
(define bit-set? logbit?)
|
(define bit-set? logbit?)
|
||||||
|
|
||||||
|
|
|
@ -10,8 +10,8 @@
|
||||||
;;;; doesn't have them yet. This will need to be modified accordingly once
|
;;;; doesn't have them yet. This will need to be modified accordingly once
|
||||||
;;;; this support is provided.
|
;;;; this support is provided.
|
||||||
(define-library (srfi 60)
|
(define-library (srfi 60)
|
||||||
(import (scheme base)
|
(import
|
||||||
(scheme inexact))
|
(scheme base))
|
||||||
(export
|
(export
|
||||||
any-bits-set? arithmetic-shift ash
|
any-bits-set? arithmetic-shift ash
|
||||||
bit-count bit-field bit-set? bitwise-and bitwise-if bitwise-ior
|
bit-count bit-field bit-set? bitwise-and bitwise-if bitwise-ior
|
||||||
|
|
Loading…
Add table
Reference in a new issue