Remove const from variable

This commit is contained in:
Stan Moore 2017-11-20 10:21:19 -07:00
parent f3ed148828
commit 7d07f062b6
2 changed files with 6 additions and 6 deletions

View File

@ -287,9 +287,9 @@ int HostThreadTeamData::rendezvous( int64_t * const buffer
// ( rank % size_byte ) +
// ( ( rank / size_byte ) * size_byte * size_mem_cycle ) +
// ( sync_offset * size_byte )
const int offset = ( rank & mask_byte )
+ ( ( rank & ~mask_byte ) << shift_mem_cycle )
+ ( sync_offset << shift_byte );
int offset = ( rank & mask_byte )
+ ( ( rank & ~mask_byte ) << shift_mem_cycle )
+ ( sync_offset << shift_byte );
// Switch designated byte if running on big endian machine
volatile uint16_t value = 1;

View File

@ -133,9 +133,9 @@ int rendezvous( volatile int64_t * const buffer
// ( rank % size_byte ) +
// ( ( rank / size_byte ) * size_byte * size_mem_cycle ) +
// ( sync_offset * size_byte )
const int offset = ( rank & mask_byte )
+ ( ( rank & ~mask_byte ) << shift_mem_cycle )
+ ( sync_offset << shift_byte );
int offset = ( rank & mask_byte )
+ ( ( rank & ~mask_byte ) << shift_mem_cycle )
+ ( sync_offset << shift_byte );
// Switch designated byte if running on big endian machine
volatile uint16_t value = 1;