functional units stub

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2020-06-10 02:00:01 +00:00
parent 6a5b9673c7
commit 0a3ce2f41f
3 changed files with 127 additions and 4 deletions

View File

@@ -28,7 +28,7 @@ void threadMain(size_t niters) {
"incq %0;"
: "+g" (global),
"+g" (i) // to prevent loop unrolling, and make results more comparable across methods,
// see also: https://cirosantilli.com/linux-kernel-module-cheat#infinite-busy-loop
// see also: https://cirosantilli.com/linux-kernel-module-cheat#c-busy-loop
:
:
);

View File

@@ -1,5 +1,5 @@
/* https://cirosantilli.com/linux-kernel-module-cheat#micro-benchmarks
* https://cirosantilli.com/linux-kernel-module-cheat#infinite-busy-loop
* https://cirosantilli.com/linux-kernel-module-cheat#c-busy-loop
* https://cirosantilli.com/linux-kernel-module-cheat#benchmark-emulators-on-userland-executables */
#include <stdlib.h>