Project

General

Profile

Feature #15631 » id_table.c.patch

ahorek (Pavel Rosický), 03/01/2019 01:22 PM

View differences:

id_table.c (working copy)
70 70
round_capa(int capa)
71 71
{
72 72
    /* minsize is 4 */
73
    capa >>= 2;
74
    capa |= capa >> 1;
75
    capa |= capa >> 2;
76
    capa |= capa >> 4;
77
    capa |= capa >> 8;
78
    capa |= capa >> 16;
79
    return (capa + 1) << 2;
73
    if(capa <= 4) {
74
        return 4;
75
    }
76
    return 1 << ((SIZEOF_INT * CHAR_BIT) - nlz_int(capa - 1));
80 77
}
81 78

  
82 79
static struct rb_id_table *