Lines Matching refs:minsize
100 static int sh_init(size_t size, size_t minsize);
108 int CRYPTO_secure_malloc_init(size_t size, size_t minsize) in CRYPTO_secure_malloc_init() argument
117 if ((ret = sh_init(size, minsize)) != 0) { in CRYPTO_secure_malloc_init()
336 size_t minsize; member
347 size_t bit = (sh.arena_size + ptr - sh.arena) / sh.minsize; in sh_getlist()
430 static int sh_init(size_t size, size_t minsize) in sh_init() argument
449 if (minsize <= sizeof(SH_LIST)) { in sh_init()
456 minsize = sizeof(SH_LIST) - 1; in sh_init()
457 minsize |= minsize >> 1; in sh_init()
458 minsize |= minsize >> 2; in sh_init()
460 minsize |= minsize >> 4; in sh_init()
462 minsize |= minsize >> 8; in sh_init()
463 minsize++; in sh_init()
466 OPENSSL_assert((minsize & (minsize - 1)) == 0); in sh_init()
467 if ((minsize & (minsize - 1)) != 0) in sh_init()
472 sh.minsize = minsize; in sh_init()
473 sh.bittable_size = (sh.arena_size / sh.minsize) * 2; in sh_init()
642 for (i = sh.minsize; i < size; i <<= 1) in sh_malloc()