Expression Templates Library (ETL)
restrict.hpp
Go to the documentation of this file.
1 //=======================================================================
2 // Copyright (c) 2014-2023 Baptiste Wicht
3 // Distributed under the terms of the MIT License.
4 // (See accompanying file LICENSE or copy at
5 // http://opensource.org/licenses/MIT)
6 //=======================================================================
7 
13 #pragma once
14 
15 #ifdef __GNUC__
16 
17 #define ETL_RESTRICT __restrict
18 
19 #elif defined(__clang__)
20 
21 #define ETL_RESTRICT __restrict__
22 
23 #else
24 
25 #define ETL_RESTRICT
26 
27 #endif