MCPcopy Create free account
hub / github.com/awslabs/aws-lambda-cpp / GetBitOffset

Function GetBitOffset

tests/gtest/gtest-all.cc:4434–4443  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4432}
4433
4434static int GetBitOffset(WORD color_mask) {
4435 if (color_mask == 0) return 0;
4436
4437 int bitOffset = 0;
4438 while ((color_mask & 1) == 0) {
4439 color_mask >>= 1;
4440 ++bitOffset;
4441 }
4442 return bitOffset;
4443}
4444
4445static WORD GetNewColor(GTestColor color, WORD old_color_attrs) {
4446 // Let's reuse the BG

Callers 1

GetNewColorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected