initial commit

This commit is contained in:
Carl Pearson
2019-09-19 10:59:28 -05:00
parent a8a014e706
commit f51ef904fb
18 changed files with 572 additions and 0 deletions

11
examples/cpu_cache.cpp Normal file
View File

@@ -0,0 +1,11 @@
#include "perfect/cpu_cache.hpp"
int main(void) {
int *a = new int[1024];
flush_all(a, 1024 * sizeof(int));
// do things with `a` flushed from cache into main memory
// furthermore, all loads and stores before this function call are guaranteed to be complete
delete[] a;
}