Skip to content

Commit

Permalink
Remove unnecessary noinline
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Hein committed Jul 1, 2019
1 parent 394a1d6 commit 25b75c3
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions global_stream.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ global_stream_deinit(global_stream_data * data)
emu_chunked_array_replicated_deinit(&data->array_c);
}

static noinline void
static void
global_stream_validate_worker(emu_chunked_array * array, long begin, long end, va_list args)
{
long * c = emu_chunked_array_index(array, begin);
Expand Down Expand Up @@ -102,7 +102,7 @@ global_stream_add_cilk_for(global_stream_data * data)
}
}

noinline void
void
recursive_spawn_add_worker(long begin, long end, global_stream_data *data)
{
long block_sz = data->n / NODELETS();
Expand All @@ -111,7 +111,7 @@ recursive_spawn_add_worker(long begin, long end, global_stream_data *data)
}
}

noinline void
void
recursive_spawn_add(long begin, long end, long grain, global_stream_data *data)
{
RECURSIVE_CILK_SPAWN(begin, end, grain, recursive_spawn_add, data);
Expand All @@ -137,15 +137,15 @@ global_stream_add_serial_spawn(global_stream_data * data)
cilk_sync;
}

noinline void
void
serial_remote_spawn_level2(long begin, long end, long * a, long * b, long * c)
{
for (long i = begin; i < end; ++i) {
c[i] = a[i] + b[i];
}
}

noinline void
void
serial_remote_spawn_level1(long * a, long * b, long * c, long n, long grain)
{
for (long i = 0; i < n; i += grain) {
Expand All @@ -171,21 +171,21 @@ global_stream_add_serial_remote_spawn(global_stream_data * data)
cilk_sync;
}

noinline void
void
recursive_remote_spawn_level2_worker(long begin, long end, long * a, long * b, long * c)
{
for (long i = begin; i < end; ++i) {
c[i] = a[i] + b[i];
}
}

noinline void
void
recursive_remote_spawn_level2(long begin, long end, long grain, long * a, long * b, long * c)
{
RECURSIVE_CILK_SPAWN(begin, end, grain, recursive_remote_spawn_level2, a, b, c);
}

noinline void
void
recursive_remote_spawn_level1(long low, long high, global_stream_data * data)
{
for (;;) {
Expand Down

0 comments on commit 25b75c3

Please sign in to comment.