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.
This commit is contained in:
Martin Storsjö 2014-01-10 12:25:39 +02:00
parent 8bc5bf58a0
commit 9ccae7b0d6
2 changed files with 0 additions and 10 deletions

View File

@ -42,8 +42,6 @@
namespace WelsDec {
//#define CACHE_LINE 64
#ifdef __cplusplus
extern "C" {
#endif//__cplusplus

View File

@ -45,18 +45,10 @@ int32_t iCountMalloc = 0;
#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;