diff options
author | Ken Brown <kbrown@cornell.edu> | 2022-05-24 14:26:33 -0400 |
---|---|---|
committer | Ken Brown <kbrown@cornell.edu> | 2022-05-29 17:54:32 -0400 |
commit | e1ce752a1dec6134d6a05d54fc7ba6d9177513c5 (patch) | |
tree | 8c505dee6d2f0b9382733bef59f5ebe7677c658a /winsup/cygwin/cpuid.h | |
parent | b1e304cbd310a6bf36356ccb87aba24f03881885 (diff) | |
download | newlib-e1ce752a1dec6134d6a05d54fc7ba6d9177513c5.zip newlib-e1ce752a1dec6134d6a05d54fc7ba6d9177513c5.tar.gz newlib-e1ce752a1dec6134d6a05d54fc7ba6d9177513c5.tar.bz2 |
Cygwin: remove miscellaneous 32-bit code
Diffstat (limited to 'winsup/cygwin/cpuid.h')
-rw-r--r-- | winsup/cygwin/cpuid.h | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/winsup/cygwin/cpuid.h b/winsup/cygwin/cpuid.h index 18d9209..bd90373 100644 --- a/winsup/cygwin/cpuid.h +++ b/winsup/cygwin/cpuid.h @@ -18,7 +18,6 @@ cpuid (uint32_t *a, uint32_t *b, uint32_t *c, uint32_t *d, uint32_t ain, : "a" (ain), "c" (cin)); } -#ifdef __x86_64__ static inline bool __attribute ((always_inline)) can_set_flag (uint32_t long flag) { @@ -39,27 +38,5 @@ can_set_flag (uint32_t long flag) ); return ((r1 ^ r2) & flag) != 0; } -#else -static inline bool __attribute ((always_inline)) -can_set_flag (uint32_t flag) -{ - uint32_t r1, r2; - - asm volatile ("pushfl\n" - "popl %0\n" - "movl %0, %1\n" - "xorl %2, %0\n" - "pushl %0\n" - "popfl\n" - "pushfl\n" - "popl %0\n" - "pushl %1\n" - "popfl\n" - : "=&r" (r1), "=&r" (r2) - : "ir" (flag) - ); - return ((r1 ^ r2) & flag) != 0; -} -#endif #endif // !CPUID_H |