restrict.h
Go to the documentation of this file.
1 /* Some preprocessor magic for having fast inline functions. */
2 #include <gsl/gsl_matrix.h>
3 
4 #ifndef INLINE
5 #define INLINE static inline
6 #endif
7 #ifndef INLINE_DECL
8 #define INLINE_DECL static inline
9 #endif
10 
11 /* Some preprocessor magic for the "restrict" keyword:
12  http://www.cellperformance.com/mike_acton/2006/05/demystifying_the_restrict_keyw.html */
13 #if __STDC_VERSION__ >= 199901
14 #elif defined (__GNUC__) && __GNUC__ >= 2 && __GNUC_MINOR__ >= 91
15  #define restrict __restrict__
16 #else
17  #define restrict
18 #endif
19 
20 /* Some preprocessor magic for calling this library from C++ */
21 
22 #ifdef __cplusplus
23  #define restrict /* nothing */
24 #endif
25 


csm
Author(s): Andrea Censi
autogenerated on Tue May 11 2021 02:18:23