mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-18 21:29:18 +02:00
Issue #519 - Fix fxlength
This commit is contained in:
parent
e4992492b3
commit
e7725a2a36
1 changed files with 5 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue