Skip to content

Commit

Permalink
handle deprecation of rotator in volk 3.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandreRouma committed Apr 14, 2024
1 parent 632a4ee commit ea08fac
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/src/dsp/channel/frequency_xlator.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,11 @@ namespace dsp::channel {
}

inline int process(int count, const complex_t* in, complex_t* out) {
#if VOLK_VERSION >= 030100
volk_32fc_s32fc_x2_rotator2_32fc((lv_32fc_t*)out, (lv_32fc_t*)in, &phaseDelta, &phase, count);
#else
volk_32fc_s32fc_x2_rotator_32fc((lv_32fc_t*)out, (lv_32fc_t*)in, phaseDelta, &phase, count);
#endif
return count;
}

Expand Down

0 comments on commit ea08fac

Please sign in to comment.