ATLAS Offline Software
Loading...
Searching...
No Matches
restrict.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-2019 CERN for the benefit of the ATLAS collaboration.
4 */
13
14
15#ifndef CXXUTILS_RESTRICT_H
16#define CXXUTILS_RESTRICT_H
17
18
19#ifndef ATH_HAS_RESTRICT
20# if defined(__GNUC__) || defined(__clang__)
21# define ATH_HAS_RESTRICT 1
22# else
23# define ATH_HAS_RESTRICT 0
24# endif
25#endif
26
27
28#if ATH_HAS_RESTRICT
29# define ATH_RESTRICT __restrict__
30#else
31# define ATH_RESTRICT
32#endif
33
34
35#endif // not CXXUTILS_RESTRICT_H