r202784 - Fix for r202778 - Implement __readeflags and __writeeflags intrinsics (renamed res to __res)
Alexey Bataev
a.bataev at hotmail.com
Mon Mar 3 19:42:58 PST 2014
Author: abataev
Date: Mon Mar 3 21:42:58 2014
New Revision: 202784
URL: http://llvm.org/viewvc/llvm-project?rev=202784&view=rev
Log:
Fix for r202778 - Implement __readeflags and __writeeflags intrinsics (renamed res to __res)
Modified:
cfe/trunk/lib/Headers/ia32intrin.h
Modified: cfe/trunk/lib/Headers/ia32intrin.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Headers/ia32intrin.h?rev=202784&r1=202783&r2=202784&view=diff
==============================================================================
--- cfe/trunk/lib/Headers/ia32intrin.h (original)
+++ cfe/trunk/lib/Headers/ia32intrin.h Mon Mar 3 21:42:58 2014
@@ -32,14 +32,14 @@
static __inline__ unsigned long long __attribute__((__always_inline__, __nodebug__))
__readeflags(void)
{
- unsigned long long res = 0;
+ unsigned long long __res = 0;
__asm__ __volatile__ ("pushf\n\t"
"popq %0\n"
- :"=r"(res)
+ :"=r"(__res)
:
:
);
- return res;
+ return __res;
}
static __inline__ void __attribute__((__always_inline__, __nodebug__))
@@ -57,14 +57,14 @@ __writeeflags(unsigned long long __f)
static __inline__ unsigned int __attribute__((__always_inline__, __nodebug__))
__readeflags(void)
{
- unsigned int res = 0;
+ unsigned int __res = 0;
__asm__ __volatile__ ("pushf\n\t"
"popl %0\n"
- :"=r"(res)
+ :"=r"(__res)
:
:
);
- return res;
+ return __res;
}
static __inline__ void __attribute__((__always_inline__, __nodebug__))
More information about the cfe-commits
mailing list