Issue #519 - Fix fxlength

This commit is contained in:
Justin Ethier 2024-01-08 19:00:39 -08:00
parent e4992492b3
commit e7725a2a36

View file

@ -158,10 +158,11 @@
return_closcall1(data, k, obj_int2obj(count));")
(define (fxlength i)
(ceiling (/ (log (if (fxnegative? i)
(fxneg i)
(fx+ 1 i)))
(log 2))))
(exact
(ceiling (/ (log (if (fxnegative? i)
(fxneg i)
(fx+ 1 i)))
(log 2)))))
(define (fxif mask n0 n1)
(fxior (fxand mask n0)