All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Restrict.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_SYSTEM_RESTRICT_H_
36 #define _BLAZE_SYSTEM_RESTRICT_H_
37 
38 
39 //=================================================================================================
40 //
41 // RESTRICT SETTINGS
42 //
43 //=================================================================================================
44 
45 #include <blaze/config/Restrict.h>
46 
47 
48 
49 
50 //=================================================================================================
51 //
52 // RESTRICT KEYWORD
53 //
54 //=================================================================================================
55 
56 //*************************************************************************************************
61 #if BLAZE_USE_RESTRICT
62 
63 // Intel compiler
64 # if defined(__INTEL_COMPILER) || defined(__ICL) || defined(__ICC) || defined(__ECC)
65 # define BLAZE_RESTRICT __restrict
66 
67 // GNU compiler
68 # elif defined(__GNUC__)
69 # define BLAZE_RESTRICT __restrict
70 
71 // Microsoft visual studio
72 # elif defined(_MSC_VER)
73 # define BLAZE_RESTRICT
74 
75 // All other compilers
76 # else
77 # define BLAZE_RESTRICT
78 
79 # endif
80 #else
81 # define BLAZE_RESTRICT
82 #endif
83 //*************************************************************************************************
84 
85 #endif
Configuration of the restrict policy of the Blaze library.