From 0f18b31d917cda2f30abe59255e75ab2ce30aa11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Fri, 24 Jan 2014 15:16:18 +0200 Subject: [PATCH] Remove unused defines of __FASTCALL --- codec/common/macros.h | 12 ------------ codec/decoder/core/src/deblocking.cpp | 4 ++-- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/codec/common/macros.h b/codec/common/macros.h index 40562375..6ec60183 100644 --- a/codec/common/macros.h +++ b/codec/common/macros.h @@ -72,16 +72,10 @@ #define inline __inline #endif -#define __FASTCALL __fastcall #define ALIGNED_DECLARE( type, var, n ) __declspec(align(n)) type var #define __align8(t,v) __declspec(align(8)) t v #define __align16(t,v) __declspec(align(16)) t v #elif defined(__GNUC__) -#if !defined(MAC_POWERPC) -#define __FASTCALL __attribute__ ((fastcall)) -#else -#define __FASTCALL // mean NULL for mac ppc -#endif//MAC_POWERPC #define ALIGNED_DECLARE( type, var, n ) type var __attribute__((aligned(n))) #define __align8(t,v) t v __attribute__ ((aligned (8))) #define __align16(t,v) t v __attribute__ ((aligned (16))) @@ -107,15 +101,9 @@ __declspec(align(alignment)) type name[(sizex)*(sizey)] #if _MSC_VER < 1700 #define inline __inline #endif -#define __FASTCALL __fastcall // #define __align8(t,v) __declspec(align(8)) t v #define __align16(t,v) __declspec(align(16)) t v #elif defined(__GNUC__) -#if !defined(MAC_POWERPC) && !defined(UNIX) && !defined(ANDROID_NDK) && !defined(APPLE_IOS) -#define __FASTCALL __attribute__ ((fastcall))// linux, centos, mac_x86 can be used -#else -#define __FASTCALL // mean NULL for mac_ppc, solaris(sparc/x86) -#endif//MAC_POWERPC // #define __align8(t,v) t v __attribute__ ((aligned (8))) #define __align16(t,v) t v __attribute__ ((aligned (16))) diff --git a/codec/decoder/core/src/deblocking.cpp b/codec/decoder/core/src/deblocking.cpp index 8017e988..4c997ed0 100644 --- a/codec/decoder/core/src/deblocking.cpp +++ b/codec/decoder/core/src/deblocking.cpp @@ -473,7 +473,7 @@ void_t DeblockingInterMb (PDqLayer pCurDqLayer, PDeblockingFilter pFilter, uint } } -void_t /*__FASTCALL*/ FilteringEdgeLumaHV (PDqLayer pCurDqLayer, PDeblockingFilter pFilter, int32_t iBoundryFlag) { +void_t FilteringEdgeLumaHV (PDqLayer pCurDqLayer, PDeblockingFilter pFilter, int32_t iBoundryFlag) { int32_t iMbXyIndex = pCurDqLayer->iMbXyIndex; int32_t iMbX = pCurDqLayer->iMbX; int32_t iMbY = pCurDqLayer->iMbY; @@ -521,7 +521,7 @@ void_t /*__FASTCALL*/ FilteringEdgeLumaHV (PDqLayer pCurDqLayer, PDeblockingFilt pFilter->pLoopf->pfLumaDeblockingLT4Ver (&pDestY[ (3 << 2)*iLineSize], iLineSize, iAlpha, iBeta, iTc); } } -void_t /*__FASTCALL*/ FilteringEdgeChromaHV (PDqLayer pCurDqLayer, PDeblockingFilter pFilter, int32_t iBoundryFlag) { +void_t FilteringEdgeChromaHV (PDqLayer pCurDqLayer, PDeblockingFilter pFilter, int32_t iBoundryFlag) { int32_t iMbXyIndex = pCurDqLayer->iMbXyIndex; int32_t iMbX = pCurDqLayer->iMbX; int32_t iMbY = pCurDqLayer->iMbY;