In C and inline, the listed constants are often used, where each value is a bitmask with exactly 1-bit set. (e.g. 0x0001, 0x0002, 0x0004, etc.) Is there a standard name for this type of bitmask? I saw that they are called flags, but more incidentally than the standard definition. I know this sounds snobbish, but the βflagsβ don't really seem technically sufficient? Does anyone else have a good name for them? I can not imagine that no one came up with this.
c design embedded naming
ktrimbach
source share