A colleague of mine found this very clever algoritm to
calculate the
next power of two for a given number. It comes from the Prophecy SDK for
3d game development
very clever. how appropriate that it arrives just as we decided to
drop the power-of-two zoom restriction in ardour :)
seriously, thanks a lot for sharing that.