mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-29 04:07:49 +02:00
[cpu] use short defines instead of long checks
Signed-off-by: r4sas <r4sas@i2pmail.org>
This commit is contained in:
parent
9c25a88707
commit
1857f14be8
4 changed files with 29 additions and 16 deletions
|
@ -13,7 +13,7 @@
|
|||
#define bit_AES (1 << 25)
|
||||
#endif
|
||||
|
||||
#if (defined(__GNUC__) && __GNUC__ < 5 && (defined(__x86_64__) || defined(__i386__)))
|
||||
#if defined(__GNUC__) && __GNUC__ < 5 && IS_X86
|
||||
#include <cpuid.h>
|
||||
#endif
|
||||
|
||||
|
@ -29,7 +29,7 @@ namespace cpu
|
|||
|
||||
inline bool cpu_support_aes()
|
||||
{
|
||||
#if (defined(_M_AMD64) || defined(__x86_64__)) || (defined(_M_IX86) || defined(__i386__))
|
||||
#if IS_X86
|
||||
#if defined(__clang__)
|
||||
# if (__clang_major__ >= 6)
|
||||
__builtin_cpu_init();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue