/src/aom/aom_dsp/x86/txfm_common_sse2.h
Line | Count | Source (jump to first uncovered line) |
1 | | /* |
2 | | * Copyright (c) 2016, Alliance for Open Media. All rights reserved. |
3 | | * |
4 | | * This source code is subject to the terms of the BSD 2 Clause License and |
5 | | * the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License |
6 | | * was not distributed with this source code in the LICENSE file, you can |
7 | | * obtain it at www.aomedia.org/license/software. If the Alliance for Open |
8 | | * Media Patent License 1.0 was not distributed with this source code in the |
9 | | * PATENTS file, you can obtain it at www.aomedia.org/license/patent. |
10 | | */ |
11 | | |
12 | | #ifndef AOM_AOM_DSP_X86_TXFM_COMMON_SSE2_H_ |
13 | | #define AOM_AOM_DSP_X86_TXFM_COMMON_SSE2_H_ |
14 | | |
15 | | #include <emmintrin.h> |
16 | | #include "aom/aom_integer.h" |
17 | | #include "aom_dsp/x86/synonyms.h" |
18 | | |
19 | | #define pair_set_epi16(a, b) \ |
20 | 80.4M | _mm_set1_epi32((int32_t)(((uint16_t)(a)) | (((uint32_t)(uint16_t)(b)) << 16))) |
21 | | |
22 | | // Reverse the 8 16 bit words in __m128i |
23 | 0 | static inline __m128i mm_reverse_epi16(const __m128i x) { |
24 | 0 | const __m128i a = _mm_shufflelo_epi16(x, 0x1b); |
25 | 0 | const __m128i b = _mm_shufflehi_epi16(a, 0x1b); |
26 | 0 | return _mm_shuffle_epi32(b, 0x4e); |
27 | 0 | } Unexecuted instantiation: av1_inv_txfm_ssse3.c:mm_reverse_epi16 Unexecuted instantiation: highbd_inv_txfm_sse4.c:mm_reverse_epi16 Unexecuted instantiation: av1_inv_txfm_avx2.c:mm_reverse_epi16 |
28 | | |
29 | | #define octa_set_epi16(a, b, c, d, e, f, g, h) \ |
30 | | _mm_setr_epi16((int16_t)(a), (int16_t)(b), (int16_t)(c), (int16_t)(d), \ |
31 | | (int16_t)(e), (int16_t)(f), (int16_t)(g), (int16_t)(h)) |
32 | | |
33 | | #endif // AOM_AOM_DSP_X86_TXFM_COMMON_SSE2_H_ |