Dooez / packed

0 stars 0 forks source link

UB in `reverse_bit_order` #9

Closed Dooez closed 7 months ago

Dooez commented 7 months ago

For some fft lengths reverse_bit_order(num, depth) depth argument is 0 when calculating the twiddles, resulting in UB.

Dooez commented 7 months ago

Added check to reverse_bit_order(). reverse_bit_order() is used during initialization only, this should not affect the performance.