Lines Matching refs:maxAlpha
266 float maxAlpha,
275 PR_ASSERT(0.5 <= maxAlpha && maxAlpha < 1 && 0 <= minAlpha);
276 if (maxAlpha < 0.5 || 1 <= maxAlpha || minAlpha < 0)
280 * Ensure that at least one entry will always be free. If maxAlpha at
281 * minimum size leaves no entries free, reduce maxAlpha based on minimum
284 PR_ASSERT(PL_DHASH_MIN_SIZE - (maxAlpha * PL_DHASH_MIN_SIZE) >= 1);
285 if (PL_DHASH_MIN_SIZE - (maxAlpha * PL_DHASH_MIN_SIZE) < 1) {
286 maxAlpha = (float)
292 * Ensure that minAlpha is strictly less than half maxAlpha. Take care
296 PR_ASSERT(minAlpha < maxAlpha / 2);
297 if (minAlpha >= maxAlpha / 2) {
299 minAlpha = (size * maxAlpha - PR_MAX(size / 256, 1)) / (2 * size);
302 table->maxAlphaFrac = (uint8)(maxAlpha * 256);