view src/ln.h @ 280:21a5761e3e7a

mv_extraction_dg_compile_sources Context2Util
author anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
date Tue, 28 Jan 2020 15:20:34 +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;
}