Update comments and move commented asm into common function.

This commit is contained in:
Patrick Pelissier committed 2019-02-18 11:02:13 +01:00
1 parent e27c06c227
commit b199fef674
2 files changed
+2 -1

No files matched your search

-1
View File
@@ -90,7 +90,6 @@ extern "C" {
* optimizing too much the inline functions and literraly breaking
* the benchmark by doing nothing.
*/
//#define BARRIER(addr) ({ volatile void *p = (void*) &addr ; asm volatile("": "+r" (p) : :"memory"); })
#define BARRIER(addr) compiler_barrier((void*) addr)
bool print_csv = false;
+2
View File
@@ -29,4 +29,6 @@ void compiler_barrier(void *p)
{
// Do nothing, but let the compiler thinks that we did.
(void) p;
// Can be used for FLTO building
// asm volatile("": "+r" (p) : :"memory");
}