History

add option for enable/disable AVX2

Guangwei Wang committed 10 years ago

Commit 7d00e8b1 parent 898073114 files · +56 −1Browse files

Showing the changes to test/decoder/DecUT_IdctResAddPred.cpp (1 of 14 files). Show all

Unified · Split

test/decoder/DecUT_IdctResAddPred.cpp+4−0
@@ -53,6 +53,7 @@ void SetNonZeroCount_ref (int8_t* pNonZeroCount) { · 52 unmodified lines
5353 }
5454
5555 #if defined(X86_ASM)
56+#if defined(HAVE_AVX2)
5657 void IdctFourResAddPred_ref (uint8_t* pPred, int32_t iStride, int16_t* pRs) {
5758 IdctResAddPred_ref (pPred + 0 * iStride + 0, iStride, pRs + 0 * 16);
5859 IdctResAddPred_ref (pPred + 0 * iStride + 4, iStride, pRs + 1 * 16);
@@ -60,6 +61,7 @@ void IdctFourResAddPred_ref (uint8_t* pPred, int32_t iStride, int16_t* pRs) { · 1 unmodified line
6061 IdctResAddPred_ref (pPred + 4 * iStride + 4, iStride, pRs + 3 * 16);
6162 }
6263 #endif
64+#endif
6365
6466 } // anon ns
6567
@@ -138,9 +140,11 @@ GENERATE_IDCTRESADDPRED (IdctResAddPred_c, 0) · 72 unmodified lines
138140 #if defined(X86_ASM)
139141 GENERATE_IDCTRESADDPRED (IdctResAddPred_mmx, WELS_CPU_MMXEXT)
140142 GENERATE_IDCTRESADDPRED (IdctResAddPred_sse2, WELS_CPU_SSE2)
143+#if defined(HAVE_AVX2)
141144 GENERATE_IDCTRESADDPRED (IdctResAddPred_avx2, WELS_CPU_AVX2)
142145 GENERATE_IDCTFOURRESADDPRED (IdctFourResAddPred_avx2, WELS_CPU_AVX2)
143146 #endif
147+#endif
144148
145149 #if defined(HAVE_NEON)
146150 GENERATE_IDCTRESADDPRED (IdctResAddPred_neon, WELS_CPU_NEON)

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