Skip to content

Instantly share code, notes, and snippets.

@mfleming
Last active May 31, 2017 11:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mfleming/1582c252477364bca0ea121615f26131 to your computer and use it in GitHub Desktop.
Save mfleming/1582c252477364bca0ea121615f26131 to your computer and use it in GitHub Desktop.
LMBench nop
void
do_int64_mul(unsigned int iterations, unsigned int N)
{
int64_t r = (int64_t)N + 37420;
r += (int64_t)(N + 6)<<32;
while (iterations-- > 0)
;
use_int((int)r);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment