Implement __readeflags and __writeeflags intrinsics