浏览代码

src/common/timing.c: fix variable name

Nathalie Furmento 13 年之前
父节点
当前提交
9280e96d5a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/common/timing.c

+ 1 - 1
src/common/timing.c

@@ -100,7 +100,7 @@ union starpu_u_tick
 
 
 #define STARPU_GET_TICK(t) __asm__ volatile("rdtsc" : "=a" ((t).sub.low), "=d" ((t).sub.high))
 #define STARPU_GET_TICK(t) __asm__ volatile("rdtsc" : "=a" ((t).sub.low), "=d" ((t).sub.high))
 #define STARPU_TICK_RAW_DIFF(t1, t2) ((t2).tick - (t1).tick)
 #define STARPU_TICK_RAW_DIFF(t1, t2) ((t2).tick - (t1).tick)
-#define STARPU_TICK_DIFF(t1, t2) (STARPU_TICK_RAW_DIFF(t1, t2) - residual)
+#define STARPU_TICK_DIFF(t1, t2) (STARPU_TICK_RAW_DIFF(t1, t2) - _starpu_residual)
 
 
 static union starpu_u_tick _starpu_reference_start_tick;
 static union starpu_u_tick _starpu_reference_start_tick;
 static double _starpu_scale = 0.0;
 static double _starpu_scale = 0.0;