ATLAS Offline Software
Control/CxxUtils/CxxUtils/vectorize.h
Go to the documentation of this file.
1 // This file's extension implies that it's C, but it's really -*- C++ -*-.
2 /*
3  * Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration.
4  */
25 #ifndef CXXUTILS_VECTORIZE_H
26 #define CXXUTILS_VECTORIZE_H
27 
28 #if defined(__GNUC__) && (__GNUC__ < 14) & !defined(__clang__) && \
29  !defined(__ICC) && !defined(__COVERITY__) && !defined(__CUDACC__)
30 # define ATH_ENABLE_VECTORIZATION \
31  _Pragma("GCC optimize (\"tree-vectorize\")") class ATH_ENABLE_VECTORIZATION_SWALLOW_SEMICOLON
32 #else
33 # define ATH_ENABLE_VECTORIZATION class ATH_ENABLE_VECTORIZATION_SWALLOW_SEMICOLON
34 #endif
35 
36 #endif // not CXXUTILS_VECTORIZE_H