Mercurial > hg > CbC > CbC_xv6
view src/ln.h @ 246:7e4e7f864970
fix_util_regex
author | anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 04 Feb 2020 11:35:37 +0900 |
parents | f9169495d476 |
children |
line wrap: on
line source
static inline int ln(int sz) { int j = 1 << 6; for (int i = 6; i < 12; i++) { if (sz < j) return i; j <<= 1; } return 12; }