Atlas Runtime
cache_flush_configs.hpp
Go to the documentation of this file.
1 /*
2  * (c) Copyright 2016 Hewlett Packard Enterprise Development LP
3  *
4  * This program is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU Lesser General Public License as
6  * published by the Free Software Foundation, either version 3 of the
7  * License, or (at your option) any later version. This program is
8  * distributed in the hope that it will be useful, but WITHOUT ANY
9  * WARRANTY; without even the implied warranty of MERCHANTABILITY or
10  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
11  * for more details. You should have received a copy of the GNU Lesser
12  * General Public License along with this program. If not, see
13  * <http://www.gnu.org/licenses/>.
14  */
15 
16 
17 #ifndef CACHE_FLUSH_CONFIGS_HPP
18 #define CACHE_FLUSH_CONFIGS_HPP
19 
20 namespace Atlas {
21 
22 const int32_t kFlushTableSize = 8;
23 const int32_t kFlushTableMask = kFlushTableSize - 1;
24 // TODO the following should be derived from cache line size
25 const uint32_t kFlushShift = 6; // log(cache line size)
26 
27 } // namespace Atlas
28 
29 #endif
const uint32_t kFlushShift
Definition: cache_flush_configs.hpp:25
const int32_t kFlushTableMask
Definition: cache_flush_configs.hpp:23
const int32_t kFlushTableSize
Definition: cache_flush_configs.hpp:22
Definition: atlas_alloc_cpp.hpp:21