From 210fe9d5b901c4b9ad6857264daba591b578e730 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Mon, 13 Feb 2012 13:16:05 +1100 Subject: [PATCH] Constify nonce in poclbm. --- poclbm120210.cl | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/poclbm120210.cl b/poclbm120210.cl index 2d8331f0..a21c2d79 100644 --- a/poclbm120210.cl +++ b/poclbm120210.cl @@ -77,14 +77,13 @@ __kernel void search(const uint state0, const uint state1, const uint state2, co { u W[24]; //u Vals[8]; Now put at W[16] to be in same array - u nonce; #ifdef VECTORS4 - nonce = base + (uint)(get_local_id(0)) * 4u + (uint)(get_group_id(0)) * (WORKSIZE * 4u); + const u nonce = base + (uint)(get_local_id(0)) * 4u + (uint)(get_group_id(0)) * (WORKSIZE * 4u); #elif defined VECTORS2 - nonce = base + (uint)(get_local_id(0)) * 2u + (uint)(get_group_id(0)) * (WORKSIZE * 2u); + const u nonce = base + (uint)(get_local_id(0)) * 2u + (uint)(get_group_id(0)) * (WORKSIZE * 2u); #else - nonce = base + get_local_id(0) + get_group_id(0) * (WORKSIZE); + const u nonce = base + get_local_id(0) + get_group_id(0) * (WORKSIZE); #endif W[20] = fcty_e + nonce;