The code ends up as the exact same regardless of whether the define is set or not.
Showing the changes to codec/decoder/core/src/mem_align.cpp (1 of 2 files). Show all
Unified · Split
| @@ -45,18 +45,10 @@ int32_t iCountMalloc = 0; · 44 unmodified lines | ||
| 45 | 45 | #endif |
| 46 | 46 | // |
| 47 | 47 | |
| 48 | −///////////////////////////////////////////////////////////////////////////////// | |
| 49 | −#define ALIGNBYTES (16) | |
| 50 | −///////////////////////////////////////////////////////////////////////////////// | |
| 51 | − | |
| 52 | 48 | void_t* WelsMalloc (const uint32_t kuiSize, const str_t* kpTag) { |
| 53 | 49 | const int32_t kiSizeVoidPtr = sizeof (void_t**); |
| 54 | 50 | const int32_t kiSizeInt = sizeof (int32_t); |
| 55 | −#ifdef HAVE_CACHE_LINE_ALIGN | |
| 56 | − const int32_t kiAlignBytes = ALIGNBYTES - 1; | |
| 57 | −#else | |
| 58 | 51 | const int32_t kiAlignBytes = 15; |
| 59 | −#endif// HAVE_CACHE_LINE_ALIGN | |
| 60 | 52 | uint8_t* pBuf = (uint8_t*) malloc (kuiSize + kiAlignBytes + kiSizeVoidPtr + kiSizeInt); |
| 61 | 53 | uint8_t* pAlignBuf; |
| 62 | 54 | |