Blaze 3.9
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
45#include <blaze/util/Types.h>
46
47
48namespace blaze {
49
50//=================================================================================================
51//
52// CACHE SIZE
53//
54//=================================================================================================
55
56//*************************************************************************************************
58constexpr 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//*************************************************************************************************
75namespace {
76
77BLAZE_STATIC_ASSERT( blaze::cacheSize > 100000UL && blaze::cacheSize < 100000000UL );
78
79}
81//*************************************************************************************************
82
83#endif
Compile time assertion.
Configuration of the cache size of the target architecture.
#define BLAZE_CACHE_SIZE
Cache size of the target architecture.
Definition: CacheSize.h:59
#define BLAZE_STATIC_ASSERT(expr)
Compile time assertion macro.
Definition: StaticAssert.h:112
Header file for basic type definitions.