Lines Matching defs:size
87 static int sh_init(size_t size, size_t minsize);
88 static void *sh_malloc(size_t size);
95 int CRYPTO_secure_malloc_init(size_t size, size_t minsize)
104 if ((ret = sh_init(size, minsize)) != 0) {
313 size_t bittable_size; /* size in bits */
404 static int sh_init(size_t size, size_t minsize)
417 /* make sure size is a powers of 2 */
418 OPENSSL_assert(size > 0);
419 OPENSSL_assert((size & (size - 1)) == 0);
420 if (size == 0 || (size & (size - 1)) != 0)
426 * Compute the minimum possible allocation size.
445 sh.arena_size = size;
449 /* Prevent allocations of size 0 later on */
606 static void *sh_malloc(size_t size)
612 if (size > sh.arena_size)
616 for (i = sh.minsize; i < size; i <<= 1)