Ejemplo n.º 1
0
/*
 * PROXY HF1
 */
void BubbleSort(int Array[]){
   static unsigned int __hfrun  = 0;
   unsigned long long s,e;

   // On first invocation
   ++__hfrun;
   s = current_time_in_nanos();


	hot_function1(Array);

   e = current_time_in_nanos();
   if(__hfrun==1){ 
      printf("Exec time: %llu\n", (e-s));
   }
}
Ejemplo n.º 2
0
/*
 * PROXY HF1
 */
void compdecomp(byte * data, size_t data_len){
   static unsigned int __hfrun  = 0;
   unsigned long long s,e;

   // On first invocation
   ++__hfrun;
   s = current_time_in_nanos();


	hot_function1(data, data_len);

   e = current_time_in_nanos();
   if(__hfrun==1){ 
      printf("Exec time: %llu\n", (e-s));
   }

}
Ejemplo n.º 3
0
/*
 * PROXY HF1
 */
void fir_filter_int(const long* in,long* out,long in_len,
		const long* coef,long coef_len,
		long scale){
	static unsigned int __hfrun  = 0;
	unsigned long long s,e;

	// On first invocation
	++__hfrun;
	s = current_time_in_nanos();

	hot_function1(in, out, in_len, coef, coef_len, scale);

	e = current_time_in_nanos();
	if(__hfrun==1){ 
		printf("Exec time: %llu\n", (e-s));
	}

}
Ejemplo n.º 4
0
/*
 * PROXY HF1
 */
int fft1(int n, int flag){
   static unsigned int __hfrun  = 0;
   unsigned long long s,e;

   // On first invocation
   ++__hfrun;
   s = current_time_in_nanos();

	int res = hot_function1(n, flag);

   e = current_time_in_nanos();
   if(__hfrun==1){ 
      printf("Exec time: %llu\n", (e-s));
   }


	return res;
}