X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=math.lisp;h=e9118443fdec24c716cf21898b42615ce5973692;hb=ffa469ca8554ae12f2a5e297e8a0880d784b1f12;hp=0197d52d5652a9fcdf28f117a309766fc7f9dc12;hpb=e48ac76f4b26ec24080dfaf524482a839cd84fff;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))))