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

Function bitCeil

lib/symboldatabase.cpp:8510–8522  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8508
8509
8510static size_t bitCeil(size_t x)
8511{
8512 if (x <= 1)
8513 return 1;
8514 --x;
8515 x |= x >> 1;
8516 x |= x >> 2;
8517 x |= x >> 4;
8518 x |= x >> 8;
8519 x |= x >> 16;
8520 x |= x >> 32;
8521 return x + 1;
8522}
8523
8524static size_t getAlignOf(const ValueType& vt, const Settings& settings, ValueType::Accuracy accuracy, ValueType::SizeOf sizeOf, int maxRecursion = 0)
8525{

Callers 1

getAlignOfFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected