3 libdemac - A Monkey's Audio decoder
7 Copyright (C) Dave Chapman 2007
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 2 of the License, or
12 (at your option) any later version.
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
19 You should have received a copy of the GNU General Public License
20 along with this program; if not, write to the Free Software
21 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA
25 #include "demac_config.h"
27 static inline void vector_add(filter_int
* v1
, filter_int
* v2
)
30 int order
= (ORDER
>> 5);
71 static inline void vector_sub(filter_int
* v1
, filter_int
* v2
)
74 int order
= (ORDER
>> 5);
115 static inline int32_t scalarproduct(filter_int
* v1
, filter_int
* v2
)
120 int order
= (ORDER
>> 5);
124 res
+= *v1
++ * *v2
++;
125 res
+= *v1
++ * *v2
++;
126 res
+= *v1
++ * *v2
++;
127 res
+= *v1
++ * *v2
++;
128 res
+= *v1
++ * *v2
++;
129 res
+= *v1
++ * *v2
++;
130 res
+= *v1
++ * *v2
++;
131 res
+= *v1
++ * *v2
++;
132 res
+= *v1
++ * *v2
++;
133 res
+= *v1
++ * *v2
++;
134 res
+= *v1
++ * *v2
++;
135 res
+= *v1
++ * *v2
++;
136 res
+= *v1
++ * *v2
++;
137 res
+= *v1
++ * *v2
++;
138 res
+= *v1
++ * *v2
++;
139 res
+= *v1
++ * *v2
++;
141 res
+= *v1
++ * *v2
++;
142 res
+= *v1
++ * *v2
++;
143 res
+= *v1
++ * *v2
++;
144 res
+= *v1
++ * *v2
++;
145 res
+= *v1
++ * *v2
++;
146 res
+= *v1
++ * *v2
++;
147 res
+= *v1
++ * *v2
++;
148 res
+= *v1
++ * *v2
++;
149 res
+= *v1
++ * *v2
++;
150 res
+= *v1
++ * *v2
++;
151 res
+= *v1
++ * *v2
++;
152 res
+= *v1
++ * *v2
++;
153 res
+= *v1
++ * *v2
++;
154 res
+= *v1
++ * *v2
++;
155 res
+= *v1
++ * *v2
++;
156 res
+= *v1
++ * *v2
++;