c - Name for a bitmask with 1-bit set -


In C and embedded, often uses math constants often where each value is exactly a bit mask with 1-bit set (Like 0x0001, 0x0002, 0x0004, etc.) Is there a standard name for this type of bitmask? I have referred them as flags, but more than passing a standard definition. I know that it seems messy, but "flags" do not really look technically enough? Do anybody have a good name for them? I can not imagine that no one has come along with it.

"flag" is an accepted word " Play a flag down "," set this flag ", etc.


Comments