1 /* 2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved. 3 * 4 * Use of this source code is governed by a BSD-style license 5 * that can be found in the LICENSE file in the root of the source 6 * tree. An additional intellectual property rights grant can be found 7 * in the file PATENTS. All contributing project authors may 8 * be found in the AUTHORS file in the root of the source tree. 9 */ 10 11 12 #ifndef DCT_X86_H 13 #define DCT_X86_H 14 15 16 /* Note: 17 * 18 * This platform is commonly built for runtime CPU detection. If you modify 19 * any of the function mappings present in this file, be sure to also update 20 * them in the function pointer initialization code 21 */ 22 #if HAVE_MMX 23 extern prototype_fdct(vp8_short_fdct4x4_mmx); 24 extern prototype_fdct(vp8_short_fdct8x4_mmx); 25 26 #if !CONFIG_RUNTIME_CPU_DETECT 27 28 #undef vp8_fdct_short4x4 29 #define vp8_fdct_short4x4 vp8_short_fdct4x4_mmx 30 31 #undef vp8_fdct_short8x4 32 #define vp8_fdct_short8x4 vp8_short_fdct8x4_mmx 33 34 #endif 35 36 #endif 37 38 39 #if HAVE_SSE2 40 extern prototype_fdct(vp8_short_fdct8x4_sse2); 41 extern prototype_fdct(vp8_short_walsh4x4_sse2); 42 43 extern prototype_fdct(vp8_short_fdct4x4_sse2); 44 45 #if !CONFIG_RUNTIME_CPU_DETECT 46 47 #undef vp8_fdct_short4x4 48 #define vp8_fdct_short4x4 vp8_short_fdct4x4_sse2 49 50 #undef vp8_fdct_short8x4 51 #define vp8_fdct_short8x4 vp8_short_fdct8x4_sse2 52 53 #undef vp8_fdct_fast4x4 54 #define vp8_fdct_fast4x4 vp8_short_fdct4x4_sse2 55 56 #undef vp8_fdct_fast8x4 57 #define vp8_fdct_fast8x4 vp8_short_fdct8x4_sse2 58 59 #undef vp8_fdct_walsh_short4x4 60 #define vp8_fdct_walsh_short4x4 vp8_short_walsh4x4_sse2 61 62 #endif 63 64 65 #endif 66 67 #endif 68