MCPcopy Create free account
hub / github.com/bobranten/Ext4Fsd / is_power_of_2

Function is_power_of_2

Ext4Fsd/include/linux/log2.h:50–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48 */
49
50static inline __attribute__((const))
51bool is_power_of_2(unsigned long n)
52{
53 return (n != 0 && ((n & (n - 1)) == 0));
54}
55
56/*
57 * round up to nearest power of two

Callers 3

Ext2InitializeVcbFunction · 0.85
journal_init_revokeFunction · 0.85
jbd2_journal_init_revokeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected