Vulpes
0.1.0
Versatile and parallel compUtational Library for high-order discontinuous Polytopal Element Simulations
Loading...
Searching...
No Matches
macros.hpp
Go to the documentation of this file.
1
// ----------------------------------------------------------------------
2
//
3
// Copyright (C) 2024 - 2026 by the Vulpes authors.
4
// This file is part of Vulpes.
5
//
6
// Vulpes is free software; you can redistribute it and/or modify
7
// it under the terms of the GNU General Public License as published by
8
// the Free Software Foundation, either version 3 of the License, or
9
// (at your option) any later version.
10
//
11
// Vulpes is distributed in the hope that it will be useful,
12
// but WITHOUT ANY WARRANTY; without even the implied warranty of
13
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
// General Public License for more details.
15
//
16
// You should have received a copy of the GNU General Public License
17
// along with Vulpes. If not, see <http://www.gnu.org/licenses/>.
18
//
19
// ----------------------------------------------------------------------
20
21
// Author: Matteo Caldana <matteo.caldana@polimi.it>
22
23
#ifndef VULPES_UTILS_MACROS_HPP_
24
#define VULPES_UTILS_MACROS_HPP_
25
30
#define VULPES_ALWAYS_INLINE __attribute__((always_inline))
31
36
#define VULPES_LIKELY(x) (__builtin_expect(!!(x), 1))
41
#define VULPES_UNLIKELY(x) (__builtin_expect(!!(x), 0))
42
43
#endif
// VULPES_UTILS_MACROS_HPP_
vulpes
utils
macros.hpp
Generated on
for Vulpes by
1.15.0