Replace power-of-two calculation with more elegant solution from tidbits.c.
Replace power-of-two calculation with more elegant solution from tidbits.c.

Alexpux/Coin3D,Alexpux/Coin3D,Alexpux/Coin3D,Alexpux/Coin3D