MCPcopy Create free account
hub / github.com/KhronosGroup/SPIRV-Tools / Empty

Method Empty

source/util/bit_vector.h:93–100  ·  view source on GitHub ↗

Returns true if every bit is 0.

Source from the content-addressed store, hash-verified

91
92 // Returns true if every bit is 0.
93 bool Empty() const {
94 for (BitContainer b : bits_) {
95 if (b != 0) {
96 return false;
97 }
98 }
99 return true;
100 }
101
102 // Print a report on the densicy of the bit vector, number of 1 bits, number
103 // of bytes, and average bytes for 1 bit, to |out|.

Callers 2

RewriteInstructionsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected