I am trying to check the validity of a enum set from an untrusted source. Basically I want to either mask the input with the high(set[enum]) or check their intersection. What is the best way to obtain that value with all bits set, given that enums can be holey? I was considering a macro that includes every value. Has anyone already done this?