X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=math.lisp;fp=math.lisp;h=e9118443fdec24c716cf21898b42615ce5973692;hb=e2b92d341da89f35b96f8ea5437bab0ec1d590f7;hp=0197d52d5652a9fcdf28f117a309766fc7f9dc12;hpb=c2974df32b94d3bd25c32fa2e181b1980da59631;p=kmrcl.git diff --git a/math.lisp b/math.lisp index 0197d52..e911844 100644 --- a/math.lisp +++ b/math.lisp @@ -70,3 +70,6 @@ (incf (aref bins bin)))))) (values bins min max))) + +(defun fixnum-width () + (nth-value 0 (truncate (+ (/ (log (1+ most-positive-fixnum)) (log 2)) .5))))