11#define RADAUDIO_NAME(name) RR_STRING_JOIN(RADAUDIO_WRAP, name##_)
13#define RADAUDIO_NAME(name) ( name )
17#define RRX86_CPU_INITIALIZED (1U<<0)
18#define RRX86_CPU_SSE2 (1U<<1)
19#define RRX86_CPU_SSSE3 (1U<<2)
20#define RRX86_CPU_SSE41 (1U<<3)
21#define RRX86_CPU_SSE42 (1U<<4)
22#define RRX86_CPU_AVX (1U<<5)
23#define RRX86_CPU_BMI1 (1U<<6)
24#define RRX86_CPU_BMI2 (1U<<7)
25#define RRX86_CPU_AVX2 (1U<<8)
26#define RRX86_CPU_AMD_ZEN (1U<<9)
27#define RRX86_CPU_F16C (1U<<10)
28#define RRX86_CPU_AVX512 (1U<<11)
29#define RRX86_CPU_PREFER512 (1U<<12)
30#define RRX86_CPU_POPCNT (1U<<13)
39 #if defined(__RADJAGUAR__)
41 #define g_rrCPUx86_feature_flags (RRX86_CPU_INITIALIZED | RRX86_CPU_SSE2 | RRX86_CPU_SSSE3 | RRX86_CPU_SSE41 | RRX86_CPU_SSE42 | RRX86_CPU_AVX | RRX86_CPU_BMI1 | RRX86_CPU_F16C)
42 #define rrCPUx86_detect()
44 #elif defined(__RADZEN2__)
46 #define g_rrCPUx86_feature_flags (RRX86_CPU_INITIALIZED | RRX86_CPU_SSE2 | RRX86_CPU_SSSE3 | RRX86_CPU_SSE41 | RRX86_CPU_SSE42 | RRX86_CPU_AVX | RRX86_CPU_BMI1 | RRX86_CPU_BMI2 | RRX86_CPU_AVX2 | RRX86_CPU_AMD_ZEN | RRX86_CPU_F16C)
47 #define rrCPUx86_detect()
53 #define RRX86_CPU_DYNAMIC_DETECT
55 #define g_rrCPUx86_feature_flags RADAUDIO_NAME(g_rrCPUx86_feature_flags)
56 #define rrCPUx86_detect RADAUDIO_NAME(rrCPUx86_detect)
75 return (flags &
bit) ? 1 : 0;
83 return (flags & bits) == bits;
88 #define rrCPUx86_detect()
89 #define rrCPUx86_feature_present(bit) (false)
90 #define rrCPUx86_all_features_present(bits) (false)
RAD_U32 U32
Definition egttypes.h:501
RAD_U8 U8
Definition egttypes.h:481
#define RADINLINE
Definition egttypes.h:387
#define RR_ASSERT(exp)
Definition rrCore.h:341
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
int bit(int a, int b)
Definition DebugDraw.cpp:33
#define rrCPUx86_all_features_present(bits)
Definition cpux86.h:90
#define rrCPUx86_feature_present(bit)
Definition cpux86.h:89
#define RRX86_CPU_INITIALIZED
Definition cpux86.h:17
#define rrCPUx86_detect()
Definition cpux86.h:88