Blaze  3.6
CacheSize.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_SYSTEM_CACHESIZE_H_
36 #define _BLAZE_SYSTEM_CACHESIZE_H_
37 
38 
39 //*************************************************************************************************
40 // Includes
41 //*************************************************************************************************
42 
43 #include <blaze/config/CacheSize.h>
45 #include <blaze/util/Types.h>
46 
47 
48 namespace blaze {
49 
50 //=================================================================================================
51 //
52 // CACHE SIZE
53 //
54 //=================================================================================================
55 
56 //*************************************************************************************************
58 constexpr size_t cacheSize = BLAZE_CACHE_SIZE;
60 //*************************************************************************************************
61 
62 } // namespace blaze
63 
64 
65 
66 
67 //=================================================================================================
68 //
69 // COMPILE TIME CONSTRAINT
70 //
71 //=================================================================================================
72 
73 //*************************************************************************************************
75 namespace {
76 
77 BLAZE_STATIC_ASSERT( blaze::cacheSize > 100000UL && blaze::cacheSize < 100000000UL );
78 
79 }
81 //*************************************************************************************************
82 
83 #endif
Header file for basic type definitions.
#define BLAZE_CACHE_SIZE
Cache size of the target architecture.This setting specifies the available cache size in Byte of the ...
Definition: CacheSize.h:55
Namespace of the Blaze C++ math library.
Definition: Blaze.h:58
Compile time assertion.
Configuration of the cache size of the target architecture.
#define BLAZE_STATIC_ASSERT(expr)
Compile time assertion macro.In case of an invalid compile time expression, a compilation error is cr...
Definition: StaticAssert.h:112