Skip to content
Snippets Groups Projects
Commit f74eb0b5 authored by Chichi Lalescu's avatar Chichi Lalescu
Browse files

make MOD inline

now linker doesn't complain about multiple definitions
parent 052ae194
No related branches found
No related tags found
No related merge requests found
......@@ -31,7 +31,7 @@ static const int message_buffer_length = 1024;
static char debug_message_buffer[message_buffer_length];
extern int myrank, nprocs;
int MOD(int a, int n)
inline int MOD(int a, int n)
{
return ((a%n) + n) % n;
}
......
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