
13 Jul
2010
13 Jul
'10
11:48 a.m.
hi all,
i am aware, that boost provides a compile-time integer log2 function. but what is the best way to compile an integer log2 at run-time?
In the good'ol Bits Twiddling Hacks page:
i see, maybe it would be an interesting addition to boost.integer to provide a generic and efficient version, based on bsr/ffs or the like ... tim -- tim@klingt.org http://tim.klingt.org May music never just become another way of making money. Keith Tippett