Commit 33459797a80c91fc18cf658c61214bb5e4f739c5
Fix restrict for GCC.
Christopher Snowhill authored on 1/2/2016, 8:26:07 AMChristopher Snowhill committed on 6/13/2018, 12:10:58 AM
Parent: 04d43dec7d76a8df1f162e2c44da218bc9362210
Files changed
src/syntrax/resampler.c | changed |
src/syntrax/resampler.c | ||
---|---|---|
@@ -236,19 +236,19 @@ | ||
236 | 236 | r->infilled += stereo; |
237 | 237 | } |
238 | 238 | } |
239 | 239 | |
240 | - | |
241 | - | |
240 | + | |
241 | + | |
242 | 242 | |
243 | 243 | |
244 | 244 | static const sample_t * resampler_inner_loop( resampler *r, sample_t** out_, |
245 | 245 | sample_t const* out_end, sample_t const in [], int in_size ) |
246 | 246 | { |
247 | 247 | in_size -= write_offset; |
248 | 248 | if ( in_size > 0 ) |
249 | 249 | { |
250 | - sample_t* RESTRICT out = *out_; | |
250 | + sample_t* restrict out = *out_; | |
251 | 251 | sample_t const* const in_end = in + in_size; |
252 | 252 | imp_t const* imp = r->imp; |
253 | 253 | |
254 | 254 | do |
@@ -292,9 +292,9 @@ | ||
292 | 292 | } |
293 | 293 | return in; |
294 | 294 | } |
295 | 295 | |
296 | - | |
296 | + | |
297 | 297 | |
298 | 298 | static int resampler_wrapper( resampler *r, sample_t out [], int* out_size, |
299 | 299 | sample_t const in [], int in_size ) |
300 | 300 | { |
Built with git-ssb-web