摘要:
int MathInt_sqrt(unsigned long n){ int root; int m; int left; root = 0; left = (int)n; m = 1 root) { root += m; left -= root; root += m; } root >>= 1; } while (m >>= 2); return root;} 阅读全文
摘要:
unsigned int nextPOT(unsigned int x){ x = x - 1; x = x | (x >> 1); x = x | (x >> 2); x = x | (x >> 4); x = x | (x >> 8); x = x | (x >>16); return x + 1;} 阅读全文