Blaze
3.9
Toggle main menu visibility
Loading...
Searching...
No Matches
blaze
system
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
>
44
#include <
blaze/util/StaticAssert.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
StaticAssert.h
Compile time assertion.
CacheSize.h
Configuration of the cache size of the target architecture.
BLAZE_CACHE_SIZE
#define BLAZE_CACHE_SIZE
Cache size of the target architecture.
Definition
CacheSize.h:59
BLAZE_STATIC_ASSERT
#define BLAZE_STATIC_ASSERT(expr)
Compile time assertion macro.
Definition
StaticAssert.h:112
Types.h
Header file for basic type definitions.
Generated by
1.18.0