HIBF 1.0.0-rc.1
All Classes Namespaces Files Functions Variables Typedefs Friends Macros Modules Pages Concepts
platform.hpp File Reference

Provides platform and dependency checks. More...

#include <version>
+ Include dependency graph for platform.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define HIBF_COMPILER_IS_GCC   0
 Whether the current compiler is GCC.
 
#define HIBF_CONSTEXPR_VECTOR
 std::vector constexpr support.
 
#define HIBF_HAS_AVX512   0
 Whether AVX512F and AVX512BW are available.
 
#define HIBF_WORKAROUND_GCC_BOGUS_MEMCPY   0
 Workaround bogus memcpy errors in GCC 12. (Wrestrict and Wstringop-overflow)
 

Detailed Description

Provides platform and dependency checks.

Author
Enrico Seiler <enrico.seiler AT fu-berlin.de>

Macro Definition Documentation

◆ HIBF_COMPILER_IS_GCC

#define HIBF_COMPILER_IS_GCC   0

Whether the current compiler is GCC.

GNUC is also used to indicate the support for GNU compiler extensions. To detect the presence of the GCC compiler, one has to rule out other compilers.

See also
https://sourceforge.net/p/predef/wiki/Compilers

◆ HIBF_WORKAROUND_GCC_BOGUS_MEMCPY

#define HIBF_WORKAROUND_GCC_BOGUS_MEMCPY   0

Workaround bogus memcpy errors in GCC 12. (Wrestrict and Wstringop-overflow)

See also
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105545