MCPcopy Create free account
hub / github.com/F-Stack/f-stack / FIO_highbit64

Function FIO_highbit64

freebsd/contrib/zstd/programs/fileio.c:817–824  ·  view source on GitHub ↗

FIO_highbit64() : * gives position of highest bit. * note : only works for v > 0 ! */

Source from the content-addressed store, hash-verified

815 * note : only works for v > 0 !
816 */
817static 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
826static void FIO_adjustMemLimitForPatchFromMode(FIO_prefs_t* const prefs,
827 unsigned long long const dictSize,

Callers 2

FIO_zstdErrorHelpFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected