FIO_highbit64() : * gives position of highest bit. * note : only works for v > 0 ! */
| 815 | * note : only works for v > 0 ! |
| 816 | */ |
| 817 | static unsigned FIO_highbit64(unsigned long long v) |
| 818 | { |
| 819 | unsigned count = 0; |
| 820 | assert(v != 0); |
| 821 | v >>= 1; |
| 822 | while (v) { v >>= 1; count++; } |
| 823 | return count; |
| 824 | } |
| 825 | |
| 826 | static void FIO_adjustMemLimitForPatchFromMode(FIO_prefs_t* const prefs, |
| 827 | unsigned long long const dictSize, |
no outgoing calls
no test coverage detected