Skip to content

Commit

Permalink
Fix incorrect math in 128-bit generic SIMD
Browse files Browse the repository at this point in the history
It looks like simd-generic128.h:VTW1 was copied&pasted from
the equivalent SSE code, but the consumer of that structure
(BYTW1) was assuming a different format.
  • Loading branch information
matteo-frigo committed Jun 13, 2020
1 parent ecba407 commit d832ca0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion simd-support/simd-generic128.h
Expand Up @@ -214,7 +214,7 @@ static inline V VZMULIJ(V tx, V sr)
/* twiddle storage #1: compact, slower */
#ifdef FFTW_SINGLE
# define VTW1(v,x) \
{TW_COS, v, x}, {TW_COS, v+1, x}, {TW_SIN, v, x}, {TW_SIN, v+1, x}
{TW_CEXP, v, x}, {TW_CEXP, v+1, x}
static inline V BYTW1(const R *t, V sr)
{
return VZMUL(LDA(t, 2, t), sr);
Expand Down

0 comments on commit d832ca0

Please sign in to comment.