13#ifndef CPL_CPU_FEATURES_H
14#define CPL_CPU_FEATURES_H
21#ifdef HAVE_SSE_AT_COMPILE_TIME
22#if (defined(_M_X64) || defined(__x86_64))
23#define HAVE_INLINE_SSE
25static bool inline CPLHaveRuntimeSSE()
30bool CPLHaveRuntimeSSE();
34#ifdef HAVE_SSSE3_AT_COMPILE_TIME
36#define HAVE_INLINE_SSSE3
38static bool inline CPLHaveRuntimeSSSE3()
47#if defined(__GNUC__) && !defined(DEBUG)
48extern bool bCPLHasSSSE3;
50static bool inline CPLHaveRuntimeSSSE3()
55bool CPLHaveRuntimeSSSE3();
60#ifdef HAVE_AVX_AT_COMPILE_TIME
62#define HAVE_INLINE_AVX
64static bool inline CPLHaveRuntimeAVX()
68#elif defined(__GNUC__)
69extern bool bCPLHasAVX;
71static bool inline CPLHaveRuntimeAVX()
76bool CPLHaveRuntimeAVX();
const char * CPLGetConfigOption(const char *, const char *)
Get the value of a configuration option.
Definition: cpl_conv.cpp:1680
Core portability definitions for CPL.
Various convenience functions for working with strings and string lists.
bool CPLTestBool(const char *pszValue)
Test what boolean value contained in the string.
Definition: cpl_string.cpp:1542