All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Restrict.h
Go to the documentation of this file.
1 //=================================================================================================
20 //=================================================================================================
21 
22 #ifndef _BLAZE_SYSTEM_RESTRICT_H_
23 #define _BLAZE_SYSTEM_RESTRICT_H_
24 
25 
26 //=================================================================================================
27 //
28 // RESTRICT SETTINGS
29 //
30 //=================================================================================================
31 
32 #include <blaze/config/Restrict.h>
33 
34 
35 
36 
37 //=================================================================================================
38 //
39 // RESTRICT KEYWORD
40 //
41 //=================================================================================================
42 
43 //*************************************************************************************************
48 #if BLAZE_USE_RESTRICT
49 
50 // Intel compiler
51 # if defined(__INTEL_COMPILER) || defined(__ICL) || defined(__ICC) || defined(__ECC)
52 # define BLAZE_RESTRICT __restrict
53 
54 // GNU compiler
55 # elif defined(__GNUC__)
56 # define BLAZE_RESTRICT __restrict
57 
58 // Microsoft visual studio
59 # elif defined(_MSC_VER)
60 # define BLAZE_RESTRICT
61 
62 // All other compilers
63 # else
64 # define BLAZE_RESTRICT
65 
66 # endif
67 #else
68 # define BLAZE_RESTRICT
69 #endif
70 //*************************************************************************************************
71 
72 #endif