Remove the unused global variable g_uiCacheLineSize

This commit is contained in:
Martin Storsjö 2014-01-10 12:20:59 +02:00
parent eeb11578ca
commit 8bc5bf58a0
3 changed files with 0 additions and 13 deletions

View File

@ -49,9 +49,6 @@
namespace WelsDec {
// cache line size
extern uint32_t g_uiCacheLineSize;
/*
* Function pointer declaration for various tool sets
*/

View File

@ -166,16 +166,8 @@ void_t WelsDecoderDefaults (PWelsDecoderContext pCtx) {
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;

View File

@ -67,8 +67,6 @@
namespace WelsDec {
// cache line size
uint32_t g_uiCacheLineSize = 16;
// to fill default routines
PWelsLogCallbackFunc g_pLog = NULL;