mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-20 11:40:18 +02:00
* tests/bit-operations.test (fixnum-bit): compute dynamically.
This commit is contained in:
parent
8b7838b558
commit
af297b33d8
1 changed files with 3 additions and 1 deletions
|
@ -57,7 +57,9 @@
|
|||
(define (documented? object)
|
||||
(not (not (object-documentation object))))
|
||||
|
||||
(define fixnum-bit 30)
|
||||
(define fixnum-bit
|
||||
(inexact->exact (+ (/ (log (+ most-positive-fixnum 1)) (log 2)) 1)))
|
||||
|
||||
(define fixnum-min most-negative-fixnum)
|
||||
(define fixnum-max most-positive-fixnum)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue