Skip to content

Commit

Permalink
Replaced uint with unsigned.
Browse files Browse the repository at this point in the history
  • Loading branch information
seanbaxter committed Jul 7, 2016
1 parent 9ac571c commit 64e5a7e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/moderngpu/intrinsics.hxx
Expand Up @@ -59,7 +59,7 @@ MGPU_HOST_DEVICE int ffs(int x) {
}

MGPU_HOST_DEVICE unsigned bfe(unsigned x, unsigned bit, unsigned num_bits) {
uint result;
unsigned result;
#if defined(__CUDA_ARCH__) && __CUDA_ARCH__ >= 200
asm("bfe.u32 %0, %1, %2, %3;" :
"=r"(result) : "r"(x), "r"(bit), "r"(num_bits));
Expand Down
2 changes: 1 addition & 1 deletion src/moderngpu/launch_params.hxx
Expand Up @@ -67,7 +67,7 @@ void launch_box_cta_k(func_t f, int num_ctas, args_t... args) {
// Masking threadIdx.x by (nt - 1) may help strength reduction because the
// compiler now knows the range of tid: (0, nt).
typedef typename launch_box::sm_ptx params_t;
int tid = (int)(threadIdx.x % (uint)params_t::nt);
int tid = (int)(threadIdx.x % (unsigned)params_t::nt);
int cta = blockIdx.x;

#if defined(__CUDA_ARCH__) && __CUDA_ARCH__ < 300
Expand Down

0 comments on commit 64e5a7e

Please sign in to comment.