MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / max_value_unsigned

Function max_value_unsigned

lib/platform.h:62–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60 }
61
62 static unsigned long long max_value_unsigned(std::uint8_t bit) {
63 assert(bit > 0);
64 if (bit >= 64)
65 return ~0ULL;
66 return (1ULL << bit) - 1ULL;
67 }
68
69 void calculateBitMembers() {
70 short_bit = char_bit * sizeof_short;

Callers 1

getLimitsDefinesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected