aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/x86/constants.c
diff options
context:
space:
mode:
authorChristophe Gisquet <christophe.gisquet@gmail.com>2015-10-13 21:21:39 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2015-10-13 22:52:33 +0200
commit74c414202f0eda01571dc362a4b4cb342dc1fb64 (patch)
treee052422f8ec2eb345e4cb76b5430435685fda492 /libavcodec/x86/constants.c
parent147b12162da60da1ebfe38f626e9f82b2102f26b (diff)
downloadffmpeg-74c414202f0eda01571dc362a4b4cb342dc1fb64.tar.gz
x86: simple_idct10_template: use const
This avoid going through constants.c while still sharing them with proresdsp.asm Reviewed-by: "Ronald S. Bultje" <rsbultje@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/x86/constants.c')
-rw-r--r--libavcodec/x86/constants.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/libavcodec/x86/constants.c b/libavcodec/x86/constants.c
index 7e3d490ec1..0098e20544 100644
--- a/libavcodec/x86/constants.c
+++ b/libavcodec/x86/constants.c
@@ -89,31 +89,3 @@ DECLARE_ALIGNED(32, const ymm_reg, ff_pd_8192) = { 0x0000200000002000ULL, 0x000
0x0000200000002000ULL, 0x0000200000002000ULL };
DECLARE_ALIGNED(32, const ymm_reg, ff_pd_65535)= { 0x0000ffff0000ffffULL, 0x0000ffff0000ffffULL,
0x0000ffff0000ffffULL, 0x0000ffff0000ffffULL };
-
-/* simple idct 10 */
-#define W1sh2 22725 // W1 = 90901 = 22725<<2 + 1
-#define W2sh2 21407 // W2 = 85627 = 21407<<2 - 1
-#define W3sh2 19265 // W3 = 77062 = 19265<<2 + 2
-#define W4sh2 16384 // W4 = 65535 = 16384<<2 - 1
-#define W5sh2 12873 // W5 = 51491 = 12873<<2 - 1
-#define W6sh2 8867 // W6 = 35468 = 8867<<2
-#define W7sh2 4520 // W7 = 18081 = 4520<<2 + 1
-
-#define TIMES4(a, b) \
- (((b)&0xFFFFLL)<<48)+(((a)&0xFFFFLL)<<32)+(((b)&0xFFFFLL)<<16)+((a)&0xFFFFLL), \
- (((b)&0xFFFFLL)<<48)+(((a)&0xFFFFLL)<<32)+(((b)&0xFFFFLL)<<16)+((a)&0xFFFFLL)
-
-#if ARCH_X86_64
-DECLARE_ALIGNED(16, const xmm_reg, ff_w4_plus_w2) = { TIMES4(W4sh2, W2sh2) };
-DECLARE_ALIGNED(16, const xmm_reg, ff_w4_min_w2) = { TIMES4(W4sh2, -W2sh2) };
-DECLARE_ALIGNED(16, const xmm_reg, ff_w4_plus_w6) = { TIMES4(W4sh2, +W6sh2) };
-DECLARE_ALIGNED(16, const xmm_reg, ff_w4_min_w6) = { TIMES4(W4sh2, -W6sh2) };
-DECLARE_ALIGNED(16, const xmm_reg, ff_w1_plus_w3) = { TIMES4(W1sh2, +W3sh2) };
-DECLARE_ALIGNED(16, const xmm_reg, ff_w3_min_w1) = { TIMES4(W3sh2, -W1sh2) };
-DECLARE_ALIGNED(16, const xmm_reg, ff_w7_plus_w3) = { TIMES4(W7sh2, +W3sh2) };
-DECLARE_ALIGNED(16, const xmm_reg, ff_w3_min_w7) = { TIMES4(W3sh2, -W7sh2) };
-DECLARE_ALIGNED(16, const xmm_reg, ff_w1_plus_w5) = { TIMES4(W1sh2, +W5sh2) };
-DECLARE_ALIGNED(16, const xmm_reg, ff_w5_min_w1) = { TIMES4(W5sh2, -W1sh2) };
-DECLARE_ALIGNED(16, const xmm_reg, ff_w5_plus_w7) = { TIMES4(W5sh2, +W7sh2) };
-DECLARE_ALIGNED(16, const xmm_reg, ff_w7_min_w5) = { TIMES4(W7sh2, -W5sh2) };
-#endif