collection of code snippets that might be helpful
if((n&(n-1))!=0) { n |= n >> 1; n |= n >> 2; n |= n >> 4; n |= n >> 8; n |= n >> 16; n=n+1;}
No comments:
Post a Comment