Skip to content
Snippets Groups Projects
Commit 7d07f062 authored by Stan Moore's avatar Stan Moore
Browse files

Remove const from variable

parent f3ed1488
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment