Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
emper
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lehrstuhl für Informatik 4 (Systemsoftware)
manycore
emper
Merge requests
!299
[Common] introduce a CACHE_LINE_SIZE define
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
[Common] introduce a CACHE_LINE_SIZE define
aj46ezos/emper:define-cacheline-size
into
master
Overview
0
Commits
1
Pipelines
1
Changes
1
Merged
Florian Fischer
requested to merge
aj46ezos/emper:define-cacheline-size
into
master
3 years ago
Overview
0
Commits
1
Pipelines
1
Changes
1
Expand
This define will be used in future patches.
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
e45bfb79
1 commit,
3 years ago
1 file
+
4
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
emper/Common.hpp
+
4
−
3
Options
@@ -30,9 +30,10 @@ using func_t = std::function<void()>;
#define likely(x) __builtin_expect(!!(x), 1)
#define unlikely(x) __builtin_expect(!!(x), 0)
#define ALIGN_TO_CACHE_LINE alignas(64)
#define CACHE_LINE_EXCLUSIVE(T, symbol) \
std::aligned_storage<64, 64>::type __##symbol##_mem; \
#define CACHE_LINE_SIZE 64
#define ALIGN_TO_CACHE_LINE alignas(CACHE_LINE_SIZE)
#define CACHE_LINE_EXCLUSIVE(T, symbol) \
std::aligned_storage<CACHE_LINE_SIZE, CACHE_LINE_SIZE>::type __##symbol##_mem; \
T& symbol = *new (&__##symbol##_mem) T()
[[
noreturn
]]
void
die
(
const
char
*
message
,
bool
usePerror
);
Loading