feat(tools): Add macro to instruct the compiler to always inline

This commit is contained in:
Dennis Klein
2022-08-31 12:26:14 +02:00
committed by Alexey Rybalchenko
parent 0e12c57ff0
commit 126475e7d2
3 changed files with 17 additions and 1 deletions

14
fairmq/tools/Compiler.h Normal file
View File

@@ -0,0 +1,14 @@
/********************************************************************************
* Copyright (C) 2022 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
* *
* This software is distributed under the terms of the *
* GNU Lesser General Public Licence (LGPL) version 3, *
* copied verbatim in the file "LICENSE" *
********************************************************************************/
#ifndef FAIR_MQ_TOOLS_COMPILER_H
#define FAIR_MQ_TOOLS_COMPILER_H
#define __FAIRMQ_ALWAYS_INLINE __attribute__((always_inline)) inline
#endif /* FAIR_MQ_TOOLS_COMPILER_H */