25 #define PROTO(pre, in, out, cap) void ff ## pre ## in## _to_ ##out## _a_ ##cap(uint8_t **dst, const uint8_t **src, int len);
26 #define PROTO2(pre, out, cap) PROTO(pre, int16, out, cap) PROTO(pre, int32, out, cap) PROTO(pre, float, out, cap)
27 #define PROTO3(pre, cap) PROTO2(pre, int16, cap) PROTO2(pre, int32, cap) PROTO2(pre, float, cap)
28 #define PROTO4(pre) PROTO3(pre, mmx) PROTO3(pre, sse) PROTO3(pre, sse2) PROTO3(pre, ssse3) PROTO3(pre, sse4) PROTO3(pre, avx) PROTO3(pre, avx2)
44 #define MULTI_CAPS_FUNC(flag, cap) \
45 if (EXTERNAL_##flag(mm_flags)) {\
46 if( out_fmt == AV_SAMPLE_FMT_S32 && in_fmt == AV_SAMPLE_FMT_S16 || out_fmt == AV_SAMPLE_FMT_S32P && in_fmt == AV_SAMPLE_FMT_S16P)\
47 ac->simd_f = ff_int16_to_int32_a_ ## cap;\
48 if( out_fmt == AV_SAMPLE_FMT_S16 && in_fmt == AV_SAMPLE_FMT_S32 || out_fmt == AV_SAMPLE_FMT_S16P && in_fmt == AV_SAMPLE_FMT_S32P)\
49 ac->simd_f = ff_int32_to_int16_a_ ## cap;\
58 ac->simd_f = ff_pack_6ch_float_to_float_a_mmx;
64 ac->simd_f = ff_pack_6ch_float_to_float_a_sse;
69 ac->simd_f = ff_int32_to_float_a_sse2;
71 ac->simd_f = ff_int16_to_float_a_sse2;
73 ac->simd_f = ff_float_to_int32_a_sse2;
75 ac->simd_f = ff_float_to_int16_a_sse2;
79 ac->simd_f = ff_pack_2ch_int32_to_int32_a_sse2;
81 ac->simd_f = ff_pack_2ch_int16_to_int16_a_sse2;
83 ac->simd_f = ff_pack_2ch_int16_to_int32_a_sse2;
85 ac->simd_f = ff_pack_2ch_int32_to_int16_a_sse2;
88 ac->simd_f = ff_unpack_2ch_int32_to_int32_a_sse2;
90 ac->simd_f = ff_unpack_2ch_int16_to_int16_a_sse2;
92 ac->simd_f = ff_unpack_2ch_int16_to_int32_a_sse2;
94 ac->simd_f = ff_unpack_2ch_int32_to_int16_a_sse2;
97 ac->simd_f = ff_pack_2ch_int32_to_float_a_sse2;
99 ac->simd_f = ff_pack_2ch_float_to_int32_a_sse2;
101 ac->simd_f = ff_pack_2ch_int16_to_float_a_sse2;
103 ac->simd_f = ff_pack_2ch_float_to_int16_a_sse2;
105 ac->simd_f = ff_unpack_2ch_int32_to_float_a_sse2;
107 ac->simd_f = ff_unpack_2ch_float_to_int32_a_sse2;
109 ac->simd_f = ff_unpack_2ch_int16_to_float_a_sse2;
111 ac->simd_f = ff_unpack_2ch_float_to_int16_a_sse2;
115 ac->simd_f = ff_pack_6ch_int32_to_float_a_sse2;
117 ac->simd_f = ff_pack_6ch_float_to_int32_a_sse2;
123 ac->simd_f = ff_unpack_2ch_int16_to_int16_a_ssse3;
125 ac->simd_f = ff_unpack_2ch_int16_to_int32_a_ssse3;
127 ac->simd_f = ff_unpack_2ch_int16_to_float_a_ssse3;
132 ac->simd_f = ff_int32_to_float_a_avx;
135 ac->simd_f = ff_pack_6ch_float_to_float_a_avx;
137 ac->simd_f = ff_pack_6ch_int32_to_float_a_avx;
139 ac->simd_f = ff_pack_6ch_float_to_int32_a_avx;
144 ac->simd_f = ff_float_to_int32_a_avx2;