[Flake-enc-svnlog] SF.net SVN: flake-enc:[240] common.h
Status: Beta
Brought to you by:
jbr79
|
From: <jb...@us...> - 2009-01-01 17:07:54
|
Revision: 240
http://flake-enc.svn.sourceforge.net/flake-enc/?rev=240&view=rev
Author: jbr79
Date: 2009-01-01 17:07:41 +0000 (Thu, 01 Jan 2009)
Log Message:
-----------
use all 64 bits for START/STOP_TIMER
Modified Paths:
--------------
common.h
Modified: common.h
===================================================================
--- common.h 2009-01-01 16:35:00 UTC (rev 239)
+++ common.h 2009-01-01 17:07:41 UTC (rev 240)
@@ -83,10 +83,14 @@
#if 0 /* TIMER USED FOR TESTING */
static inline long long read_time(void)
{
- long long l;
- __asm__ __volatile__("rdtsc\n\t"
- : "=A" (l));
- return l;
+ union {
+ long x1[2];
+ long long x;
+ } l;
+ __asm__ __volatile__("rdtsc"
+ : "=a" (l.x1[0]),
+ "=d" (l.x1[1]));
+ return l.x;
}
#define START_TIMER \
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|