Update comments and move commented asm into common function.
This commit is contained in:
1 parent
e27c06c227
commit
b199fef674
2 files changed
+2
-1
No files matched your search
@@ -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;
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
Reference in new issue
Block a user