Moved implementation of get/set/clear flags functions to macros