Commit 0217fb5a authored by Davis King's avatar Davis King

A minor change to avoid compiler warnings in visual studio.

parent 97770d38
...@@ -142,13 +142,13 @@ ...@@ -142,13 +142,13 @@
#endif #endif
inline bool cpu_has_sse2_instructions() { return cpuid(1)[3]&(1<<26); } inline bool cpu_has_sse2_instructions() { return 0!=(cpuid(1)[3]&(1<<26)); }
inline bool cpu_has_sse3_instructions() { return cpuid(1)[2]&(1<<0); } inline bool cpu_has_sse3_instructions() { return 0!=(cpuid(1)[2]&(1<<0)); }
inline bool cpu_has_sse41_instructions() { return cpuid(1)[2]&(1<<19); } inline bool cpu_has_sse41_instructions() { return 0!=(cpuid(1)[2]&(1<<19)); }
inline bool cpu_has_sse42_instructions() { return cpuid(1)[2]&(1<<20); } inline bool cpu_has_sse42_instructions() { return 0!=(cpuid(1)[2]&(1<<20)); }
inline bool cpu_has_avx_instructions() { return cpuid(1)[2]&(1<<28); } inline bool cpu_has_avx_instructions() { return 0!=(cpuid(1)[2]&(1<<28)); }
inline bool cpu_has_avx2_instructions() { return cpuid(7)[1]&(1<<5); } inline bool cpu_has_avx2_instructions() { return 0!=(cpuid(7)[1]&(1<<5)); }
inline bool cpu_has_avx512_instructions() { return cpuid(7)[1]&(1<<16); } inline bool cpu_has_avx512_instructions() { return 0!=(cpuid(7)[1]&(1<<16)); }
inline void warn_about_unavailable_but_used_cpu_instructions() inline void warn_about_unavailable_but_used_cpu_instructions()
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment