Logo Search packages:      
Sourcecode: virtualbox-ose version File versions

DECLINLINE ( RTCCUINTREG   ) 

Get the [RE]FLAGS register.

Returns:
[RE]FLAGS.

Definition at line 464 of file asm.h.

{
    RTCCUINTREG uFlags;
# if RT_INLINE_ASM_GNU_STYLE
#  ifdef RT_ARCH_AMD64
    __asm__ __volatile__("pushfq\n\t"
                         "popq  %0\n\t"
                         : "=g" (uFlags));
#  else
    __asm__ __volatile__("pushfl\n\t"
                         "popl  %0\n\t"
                         : "=g" (uFlags));
#  endif
# else
    __asm
    {
#  ifdef RT_ARCH_AMD64
        pushfq
        pop  [uFlags]
#  else
        pushfd
        pop  [uFlags]
#  endif
    }
# endif
    return uFlags;
}


Generated by  Doxygen 1.6.0   Back to index