Searched refs:requiredMem (Results 1 – 2 of 2) sorted by relevance
362 static size_t BMK_findMaxMem(U64 requiredMem) in BMK_findMaxMem() argument367 requiredMem = (((requiredMem >> 26) + 1) << 26); in BMK_findMaxMem()368 requiredMem += 2*step; in BMK_findMaxMem()369 if (requiredMem > maxMemory) requiredMem = maxMemory; in BMK_findMaxMem()372 if (requiredMem > step) requiredMem -= step; in BMK_findMaxMem()373 else requiredMem >>= 1; in BMK_findMaxMem()374 testmem = (BYTE*) malloc ((size_t)requiredMem); in BMK_findMaxMem()379 if (requiredMem > step) requiredMem -= step; in BMK_findMaxMem()380 else requiredMem >>= 1; in BMK_findMaxMem()382 return (size_t)requiredMem; in BMK_findMaxMem()
133 static size_t BMK_findMaxMem(U64 requiredMem) in BMK_findMaxMem() argument138 requiredMem = (((requiredMem >> 26) + 1) << 26); in BMK_findMaxMem()139 requiredMem += 2*step; in BMK_findMaxMem()140 if (requiredMem > MAX_MEM) requiredMem = MAX_MEM; in BMK_findMaxMem()143 if (requiredMem > step) requiredMem -= step; in BMK_findMaxMem()144 else requiredMem >>= 1; in BMK_findMaxMem()145 testmem = (BYTE*) malloc ((size_t)requiredMem); in BMK_findMaxMem()150 if (requiredMem > step) requiredMem -= step; in BMK_findMaxMem()151 else requiredMem >>= 1; in BMK_findMaxMem()153 return (size_t)requiredMem; in BMK_findMaxMem()