History

Provide a no-op WelsEmms macro if X86_ASM is disabled

This allows always calling this function, reducing the number of ifdefs in the calling code.

Martin Storsjö committed 12 years ago

Commit dd47d481 parent d767e213 files · +2 −12Browse files

Showing the changes to codec/encoder/core/src/slice_multi_threading.cpp (1 of 3 files). Show all

Unified · Split

codec/encoder/core/src/slice_multi_threading.cpp+0−8
@@ -59,9 +59,7 @@ · 58 unmodified lines
5959 #include "crt_util_safe_x.h" // for safe crt like calls
6060 #include "rc.h"
6161
62−#if defined(X86_ASM)
6362 #include "cpu.h"
64−#endif//X86_ASM
6563
6664 #include "measure_time.h"
6765 namespace WelsSVCEnc {
@@ -123,9 +121,7 @@ void CalcSliceComplexRatio (void* pRatio, SSliceCtx* pSliceCtx, uint32_t* pSlice · 55 unmodified lines
123121 const int32_t kiSliceCount = pSliceCtx->iSliceNumInFrame;
124122 int32_t iSliceIdx = 0;
125123
126−#if defined(X86_ASM)
127124 WelsEmms();
128−#endif //X86_ASM
129125
130126 while (iSliceIdx < kiSliceCount) {
131127 fAvI[iSliceIdx] = 1.0f * pCountMbInSlice[iSliceIdx] / pSliceTime[iSliceIdx];
@@ -149,9 +145,7 @@ int32_t NeedDynamicAdjust (void* pConsumeTime, const int32_t iSliceNum) { · 17 unmodified lines
149145 int32_t iSliceIdx = 0;
150146 int32_t iNeedAdj = false;
151147
152−#if defined(X86_ASM)
153148 WelsEmms();
154−#endif //X86_ASM
155149
156150 while (iSliceIdx < iSliceNum) {
157151 uiTotalConsume += pSliceConsume[iSliceIdx] + pSliceConsume[1 + iSliceIdx];
@@ -235,9 +229,7 @@ void DynamicAdjustSlicing (sWelsEncCtx* pCtx, · 77 unmodified lines
235229
236230 iMaximalMbNum = kiCountNumMb - (kiCountSliceNum - 1) * iMinimalMbNum;
237231
238−#if defined(X86_ASM)
239232 WelsEmms();
240−#endif //X86_ASM
241233
242234 #if defined(ENABLE_TRACE_MT)
243235 WelsLog (pCtx, WELS_LOG_DEBUG, "[MT] DynamicAdjustSlicing(), iDid= %d, iCountNumMb= %d\n", iCurDid, kiCountNumMb);

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