Add cache flush logic

This commit is contained in:
Ahmed Kallala
2026-05-20 22:18:44 +02:00
committed by [Quy Anh] «Elliot» Nguyen
parent 18b2180322
commit 32c2b9440e
3 changed files with 63 additions and 1 deletions
+4 -1
View File
@@ -1,5 +1,6 @@
#pragma once
#include <cmath>
#include <new>
//
// $\frac{1}{\tau_{\alpha}}$; $\tau_{\alpha} = 0.5s$
@@ -93,4 +94,6 @@ const double cost_sqrt = 1;
const double EPS = 1e-9;
// Squared numerical tolerance
const double EPS_SQ = EPS * EPS;
const double EPS_SQ = EPS * EPS;
const size_t CACHE_BLOCK_SIZE = std::hardware_destructive_interference_size;