Skip to content

Commit

Permalink
bench: fix clang and analyzer
Browse files Browse the repository at this point in the history
  • Loading branch information
hcmh committed Sep 10, 2024
1 parent b5bed05 commit bf92567
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/bench.c
Original file line number Diff line number Diff line change
Expand Up @@ -545,6 +545,8 @@ static double bench_generic_expand(enum bench_typ typ, long scale)
{
long dims[DIMS] = { 1, 256 * scale, 256 * scale, 1, 1, 16, 1, 16 };

float linphase_pos[DIMS] = { 0.5, 0.1 };

complex float* x = md_alloc(DIMS, dims, CFL_SIZE);

double tic = timestamp();
Expand All @@ -561,8 +563,7 @@ static double bench_generic_expand(enum bench_typ typ, long scale)

case BENCH_LINPHASE:

float pos[DIMS] = { 0.5, 0.1 };
linear_phase(DIMS, dims, pos, x);
linear_phase(DIMS, dims, linphase_pos, x);
break;

default:
Expand Down

0 comments on commit bf92567

Please sign in to comment.