Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.


This topic is new for Visual Studio 2005 SP1.

Reads the program status and control (EFLAGS) register.

unsigned     int __readeflags(void);
unsigned __int64 __readeflags(void);

The value of the EFLAGS register. The return value is 32 bits long on a 32-bit platform and 64 bits long on a 64-bit platform.

These routines are available only as intrinsics.

Intrinsic Architecture


x86, x64

Header file <intrin.h>

END Microsoft Specific

Community Additions

© 2015 Microsoft