How are ENUMs and SETs represented internally?

ENUMs and SETs are used to represent powers of two because of storage optimizations.