Searched refs:bitdiff (Results 1 – 2 of 2) sorted by relevance
299 int i, j, best_bitdiff = -1, bitdiff; in SDL_EGL_ChooseConfig() local388 bitdiff = 0; in SDL_EGL_ChooseConfig()402 bitdiff += value - attribs[j + 1]; /* value is always >= attrib */ in SDL_EGL_ChooseConfig()406 if (bitdiff < best_bitdiff || best_bitdiff == -1) { in SDL_EGL_ChooseConfig()409 best_bitdiff = bitdiff; in SDL_EGL_ChooseConfig()412 if (bitdiff == 0) { in SDL_EGL_ChooseConfig()
2473 int bitdiff; in compare() local2497 bitdiff = std::min(std::min(bit1, bit2), bit3); in compare()2500 bitdiff = std::min(bitdiff, copyFormatBitTable[j]); in compare()2503 if (bitdiff > 0) in compare()2565 epsilon = 1.0f / ((float)((1 << (bitdiff - 1))) - 1); in compare()2570 epsilon = 1.0f / ((float)((1 << (bitdiff - 1))) - 1); in compare()2573 epsilon = 1.0f / ((float)((1 << bitdiff) - 1)); in compare()