Skip to content

Instantly share code, notes, and snippets.

@mfleming
Last active May 31, 2017 11:23
Show Gist options
  • Select an option

  • Save mfleming/1582c252477364bca0ea121615f26131 to your computer and use it in GitHub Desktop.

Select an option

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