MCPcopy Create free account
hub / github.com/AdvancedCompiler/AdvancedCompiler / rpcc

Function rpcc

code/Chapter2/2-1.c:6–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4#define m 10
5int x,i,j;
6unsigned long rpcc(){
7 unsigned long result;
8 unsigned hi,lo;
9 asm volatile("rdtsc":"=a"(lo),"=d"(hi));
10 result = ((unsigned long long)lo)|(((unsigned long long)hi)<<32);
11 return result;
12}
13void fun(int a){
14 for(i=0;i<n;i++)
15 x=(a/4)+i;

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected