History

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.

Martin Storsjö committed 12 years ago

Commit 9ccae7b1 parent 8bc5bf52 files · +0 −10Browse files

Showing the changes to codec/decoder/core/src/mem_align.cpp (1 of 2 files). Show all

Unified · Split

codec/decoder/core/src/mem_align.cpp+0−8
@@ -45,18 +45,10 @@ int32_t iCountMalloc = 0; · 44 unmodified lines
4545 #endif
4646 //
4747
48−/////////////////////////////////////////////////////////////////////////////////
49−#define ALIGNBYTES (16)
50−/////////////////////////////////////////////////////////////////////////////////
51−
5248 void_t* WelsMalloc (const uint32_t kuiSize, const str_t* kpTag) {
5349 const int32_t kiSizeVoidPtr = sizeof (void_t**);
5450 const int32_t kiSizeInt = sizeof (int32_t);
55−#ifdef HAVE_CACHE_LINE_ALIGN
56− const int32_t kiAlignBytes = ALIGNBYTES - 1;
57−#else
5851 const int32_t kiAlignBytes = 15;
59−#endif// HAVE_CACHE_LINE_ALIGN
6052 uint8_t* pBuf = (uint8_t*) malloc (kuiSize + kiAlignBytes + kiSizeVoidPtr + kiSizeInt);
6153 uint8_t* pAlignBuf;
6254

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t