mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-18 01:12:24 +02:00
* tests/numbers.test (fixnum-bit): compute dynamically.
This commit is contained in:
parent
5ed969329c
commit
10f24c2903
1 changed files with 3 additions and 1 deletions
|
@ -50,7 +50,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