diff options
Diffstat (limited to 'dotprod.h')
-rw-r--r-- | dotprod.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/dotprod.h b/dotprod.h new file mode 100644 index 0000000..6b62b70 --- /dev/null +++ b/dotprod.h @@ -0,0 +1,15 @@ +/* Internal definitions for dotproduct function */ + +struct dotprod { + int len; /* Number of coefficients */ + + /* On a MMX or SSE machine, these hold 4 copies of the coefficients, + * preshifted by 0,1,2,3 words to meet all possible input data + * alignments (see Intel ap559 on MMX dot products). + * + * SSE2 is similar, but with 8 words at a time + * + * On a non-MMX machine, only one copy is present + */ + signed short *coeffs[8]; +}; |