From: Johann Date: Fri, 26 Apr 2013 06:26:20 +0000 (-0700) Subject: Normalize more intrinsic filenames X-Git-Tag: v1.3.0~1136^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=863601c58968a5816ff17722432b5eedc6e13eae;p=platform%2Fupstream%2Flibvpx.git Normalize more intrinsic filenames vp9_dequantize_x86 has only sse2 functions. vp9_dct_sse2_intrinsics has no namespace collision and can drop _intrinsics. vp9_idct_mmx.h is unused. Change-Id: Ic16e31fb372a1d1e841a62ecb4189fe8f95808ec --- diff --git a/vp9/decoder/x86/vp9_dequantize_x86.c b/vp9/decoder/x86/vp9_dequantize_sse2.c similarity index 99% rename from vp9/decoder/x86/vp9_dequantize_x86.c rename to vp9/decoder/x86/vp9_dequantize_sse2.c index acfae2a..1dfb8e0 100644 --- a/vp9/decoder/x86/vp9_dequantize_x86.c +++ b/vp9/decoder/x86/vp9_dequantize_sse2.c @@ -15,8 +15,6 @@ #include "vp9/common/vp9_common.h" #include "vp9/common/vp9_idct.h" -#if HAVE_SSE2 - void vp9_add_residual_4x4_sse2(const int16_t *diff, const uint8_t *pred, int pitch, uint8_t *dest, int stride) { const int width = 4; @@ -452,4 +450,3 @@ void vp9_add_constant_residual_32x32_sse2(const int16_t diff, dest += 4 * stride; } while (--i); } -#endif diff --git a/vp9/decoder/x86/vp9_idct_mmx.h b/vp9/decoder/x86/vp9_idct_mmx.h deleted file mode 100644 index 7d98291..0000000 --- a/vp9/decoder/x86/vp9_idct_mmx.h +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Copyright (c) 2010 The WebM project authors. All Rights Reserved. - * - * Use of this source code is governed by a BSD-style license - * that can be found in the LICENSE file in the root of the source - * tree. An additional intellectual property rights grant can be found - * in the file PATENTS. All contributing project authors may - * be found in the AUTHORS file in the root of the source tree. - */ - -#ifndef VP9_DECODER_X86_VP9_IDCT_MMX_H_ -#define VP9_DECODER_X86_VP9_IDCT_MMX_H_ - - -void vp9_dequant_dc_idct_add_mmx(short *input, const short *dq, - unsigned char *pred, unsigned char *dest, - int pitch, int stride, int Dc); - -void vp9_dequant_idct_add_mmx(short *input, const short *dq, unsigned char *pred, - unsigned char *dest, int pitch, int stride); - -#endif /* VP9_DECODER_X86_VP9_IDCT_MMX_H_ */ diff --git a/vp9/encoder/x86/vp9_dct_sse2_intrinsics.c b/vp9/encoder/x86/vp9_dct_sse2.c similarity index 100% rename from vp9/encoder/x86/vp9_dct_sse2_intrinsics.c rename to vp9/encoder/x86/vp9_dct_sse2.c diff --git a/vp9/vp9cx.mk b/vp9/vp9cx.mk index 13785f7..51e24b8 100644 --- a/vp9/vp9cx.mk +++ b/vp9/vp9cx.mk @@ -109,10 +109,10 @@ VP9_CX_SRCS-$(ARCH_X86)$(ARCH_X86_64) += encoder/x86/vp9_quantize_mmx.asm VP9_CX_SRCS-$(ARCH_X86)$(ARCH_X86_64) += encoder/x86/vp9_encodeopt.asm VP9_CX_SRCS-$(ARCH_X86_64) += encoder/x86/vp9_ssim_opt.asm -VP9_CX_SRCS-$(HAVE_SSE2) += encoder/x86/vp9_dct_sse2_intrinsics.c +VP9_CX_SRCS-$(HAVE_SSE2) += encoder/x86/vp9_dct_sse2.c ifeq ($(HAVE_SSE2),yes) -vp9/encoder/x86/vp9_dct_sse2_intrinsics.c.d: CFLAGS += -msse2 -vp9/encoder/x86/vp9_dct_sse2_intrinsics.c.o: CFLAGS += -msse2 +vp9/encoder/x86/vp9_dct_sse2.c.d: CFLAGS += -msse2 +vp9/encoder/x86/vp9_dct_sse2.c.o: CFLAGS += -msse2 endif diff --git a/vp9/vp9dx.mk b/vp9/vp9dx.mk index 239ae30..5cab6fc 100644 --- a/vp9/vp9dx.mk +++ b/vp9/vp9dx.mk @@ -38,10 +38,10 @@ VP9_DX_SRCS-yes := $(filter-out $(VP9_DX_SRCS_REMOVE-yes),$(VP9_DX_SRCS-yes)) VP9_DX_SRCS-$(HAVE_SSE2) += decoder/x86/vp9_idct_blk_sse2.c -VP9_DX_SRCS-$(ARCH_X86)$(ARCH_X86_64) += decoder/x86/vp9_dequantize_x86.c +VP9_DX_SRCS-$(HAVE_SSE2) += decoder/x86/vp9_dequantize_sse2.c ifeq ($(HAVE_SSE2),yes) -vp9/decoder/x86/vp9_dequantize_x86.c.o: CFLAGS += -msse2 -vp9/decoder/x86/vp9_dequantize_x86.c.d: CFLAGS += -msse2 +vp9/decoder/x86/vp9_dequantize_sse2.c.o: CFLAGS += -msse2 +vp9/decoder/x86/vp9_dequantize_sse2.c.d: CFLAGS += -msse2 endif $(eval $(call asm_offsets_template,\