Browse Source

MT#56471 convert s16_mix_in to ifunc

Use an ifunc so that SIMD implementations can be used in a later commit.

Change-Id: I42d6c58b7561d72f0431c7dad3f4bc6acf70e627
pull/1692/head
Richard Fuchs 2 years ago
parent
commit
7247ef4027
1 changed files with 7 additions and 1 deletions
  1. +7
    -1
      lib/mix_buffer.c

+ 7
- 1
lib/mix_buffer.c View File

@ -39,9 +39,15 @@ static void s16_mix_in_c(void *restrict dst, const void *restrict src, unsigned
}
static mix_in_fn_t *resolve_s16_mix_in(void) {
return s16_mix_in_c;
}
static mix_in_fn_t s16_mix_in __attribute__ ((ifunc ("resolve_s16_mix_in")));
const struct mix_buffer_impl impl_s16_c = {
.sample_size = sizeof(int16_t),
.mix_in = s16_mix_in_c,
.mix_in = s16_mix_in,
};
// TODO: SIMD-accelerated implementations


Loading…
Cancel
Save