shithub: openh264

Download patch

ref: 9ccae7b0d67997216ae804beaebcd15a6a6ffe06
parent: 8bc5bf58a0c6eee000c40e541dd16a696fabd5f3
author: Martin Storsjö <[email protected]>
date: Fri Jan 10 07:25:39 EST 2014

Remove useless use of the HAVE_CACHE_LINE_ALIGN define

The code ends up as the exact same regardless of whether the
define is set or not.

--- a/codec/decoder/core/inc/mem_align.h
+++ b/codec/decoder/core/inc/mem_align.h
@@ -42,8 +42,6 @@
 
 namespace WelsDec {
 
-//#define CACHE_LINE 64
-
 #ifdef __cplusplus
 extern "C" {
 #endif//__cplusplus
--- a/codec/decoder/core/src/mem_align.cpp
+++ b/codec/decoder/core/src/mem_align.cpp
@@ -45,18 +45,10 @@
 #endif
 //
 
-/////////////////////////////////////////////////////////////////////////////////
-#define ALIGNBYTES (16)
-/////////////////////////////////////////////////////////////////////////////////
-
 void_t* WelsMalloc (const uint32_t kuiSize, const str_t* kpTag) {
   const int32_t kiSizeVoidPtr	= sizeof (void_t**);
   const int32_t kiSizeInt		= sizeof (int32_t);
-#ifdef HAVE_CACHE_LINE_ALIGN
-  const int32_t kiAlignBytes	= ALIGNBYTES - 1;
-#else
   const int32_t kiAlignBytes	= 15;
-#endif// HAVE_CACHE_LINE_ALIGN
   uint8_t* pBuf		= (uint8_t*) malloc (kuiSize + kiAlignBytes + kiSizeVoidPtr + kiSizeInt);
   uint8_t* pAlignBuf;