Created
May 3, 2019 03:31
-
-
Save travisdowns/eb1287406ddd6fb30073c339838537fc to your computer and use it in GitHub Desktop.
Revisions
-
travisdowns created this gist
May 3, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ // if NOPCOUNT is not defined, use 0 which makes NOPS a no-op #ifndef NOPCOUNT #define NOPCOUNT 0 #endif #define NOPS_HELPER2(N) asm(".rept " #N ";nop;.endr"); #define NOPS_HELPER1(N) NOPS_HELPER2(N) #define NOPS NOPS_HELPER1(NOPCOUNT)