Commit 15fc7e12 authored by Freddie Akeroyd's avatar Freddie Akeroyd
Browse files

Add comment on logic use

parent e3a9db51
......@@ -24,6 +24,7 @@ struct GenericEvent {
uint64_t reserved1 : 56; // Reserved for non-generics
uint64_t id : 8; // Event ID
bool check() const {
// as id is 8 bit, we can do a simple AND to check
return (id & EVENT_ID_MASK) != 0 && contin == CONTIN_ID_VALUE;
}
};
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment