ref: 8bc5bf58a0c6eee000c40e541dd16a696fabd5f3
parent: eeb11578cad1f284eefd90ab203fac4b5b8c2f69
author: Martin Storsjö <[email protected]>
date: Fri Jan 10 07:20:59 EST 2014
Remove the unused global variable g_uiCacheLineSize
--- a/codec/decoder/core/inc/utils.h
+++ b/codec/decoder/core/inc/utils.h
@@ -49,9 +49,6 @@
namespace WelsDec {
-// cache line size
-extern uint32_t g_uiCacheLineSize;
-
/*
* Function pointer declaration for various tool sets
*/
--- a/codec/decoder/core/src/decoder.cpp
+++ b/codec/decoder/core/src/decoder.cpp
@@ -166,16 +166,8 @@
pCtx->bAuReadyFlag = 0; // au data is not ready
- g_uiCacheLineSize = 16;
#if defined(X86_ASM)
pCtx->uiCpuFlag = WelsCPUFeatureDetect (&iCpuCores);
-#ifdef HAVE_CACHE_LINE_ALIGN
- if (pCtx->uiCpuFlag & WELS_CPU_CACHELINE_64) {
- g_uiCacheLineSize = 64;
- } else if (pCtx->uiCpuFlag & WELS_CPU_CACHELINE_32) {
- g_uiCacheLineSize = 32;
- }
-#endif//HAVE_CACHE_LINE_ALIGN
#endif//X86_ASM
pCtx->iImgWidthInPixel = 0;
--- a/codec/decoder/core/src/utils.cpp
+++ b/codec/decoder/core/src/utils.cpp
@@ -67,8 +67,6 @@
namespace WelsDec {
-// cache line size
-uint32_t g_uiCacheLineSize = 16;
// to fill default routines
PWelsLogCallbackFunc g_pLog = NULL;