瀏覽代碼

Rename DPstreamWrite to DPstreamAlloc and remove unneeded params

Ian Goldberg 14 年之前
父節點
當前提交
cddf419eb7
共有 2 個文件被更改,包括 2 次插入3 次删除
  1. 1 2
      dpstream.cu
  2. 1 1
      parrhoasm.cu

+ 1 - 2
dpstream.cu

@@ -66,8 +66,7 @@ void DPstreamEnd(void)
 //   x (WORDS words)
 //   a (2 words)
 //   b (2 words)
-__device__ inline unsigned int *DPstreamWrite(unsigned int a_0, unsigned int a_1,
-    unsigned int a_2, unsigned int b_0, unsigned int b_1, unsigned int b_2)
+__device__ inline unsigned int *DPstreamAlloc()
 {
     if (!DPbuffer) return NULL;
 

+ 1 - 1
parrhoasm.cu

@@ -283,7 +283,7 @@ __global__ void cudaMulmod(GlobalThreadState *global_ts,
 	// Check for a distinguished point
 	asm("mov.u32 %0, $xr0;" : "=r" (xlow));
 	if ((xlow & 0x000003ff) == 0 || !(order_2|order_1) && order_0 < (1<<20)) {
-	    unsigned int *ourbuffer = DPstreamWrite(a_0,a_1,a_2,b_0,b_1,b_2);
+	    unsigned int *ourbuffer = DPstreamAlloc();
 	    if (ourbuffer) {
 		CIOS_WRITE_DP(ourbuffer, a_0, a_1, a_2, b_0, b_1, b_2);
 	    }