<div dir="ltr"><div class="gmail_default" style="font-family:georgia,serif;color:#000000">Thanks! I messed up the syntax. <br></div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Oct 31, 2018 at 5:45 PM Andrey Semashev <<a href="mailto:andrey.semashev@gmail.com">andrey.semashev@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 10/31/18 2:33 PM, <a href="mailto:praveen@multicorewareinc.com" target="_blank">praveen@multicorewareinc.com</a> wrote:<br>
> # HG changeset patch<br>
> # User Praveen Tiwari <<a href="mailto:praveen@multicorewareinc.com" target="_blank">praveen@multicorewareinc.com</a>><br>
> # Date 1540983948 -19800<br>
> # Wed Oct 31 16:35:48 2018 +0530<br>
> # Node ID 1c878790edea64186edabcd40fb3df121f536311<br>
> # Parent fd517ae68f93dbfdd1bff45a9dd8e626523542b6<br>
> fix Issue #442: linking issue on non x86 platform<br>
> <br>
> diff -r fd517ae68f93 -r 1c878790edea source/common/cpu.cpp<br>
> --- a/source/common/cpu.cpp Tue Sep 25 16:02:31 2018 +0530<br>
> +++ b/source/common/cpu.cpp Wed Oct 31 16:35:48 2018 +0530<br>
> @@ -127,6 +127,7 @@<br>
> {<br>
> return(enable512);<br>
> }<br>
> +<br>
> uint32_t cpu_detect(bool benableavx512 )<br>
> {<br>
> <br>
> diff -r fd517ae68f93 -r 1c878790edea source/common/quant.cpp<br>
> --- a/source/common/quant.cpp Tue Sep 25 16:02:31 2018 +0530<br>
> +++ b/source/common/quant.cpp Wed Oct 31 16:35:48 2018 +0530<br>
> @@ -723,6 +723,7 @@<br>
> X265_CHECK(coeffNum[cgScanPos] == 0, "count of coeff failure\n");<br>
> uint32_t scanPosBase = (cgScanPos << MLS_CG_SIZE);<br>
> uint32_t blkPos = codeParams.scan[scanPosBase];<br>
> +#if X265_ARCH_X86<br>
> bool enable512 = detect512();<br>
> if (enable512)<br>
> <a href="http://primitives.cu" rel="noreferrer" target="_blank">primitives.cu</a>[log2TrSize - 2].psyRdoQuant(m_resiDctCoeff, m_fencDctCoeff, costUncoded, &totalUncodedCost, &totalRdCost, &psyScale, blkPos);<br>
> @@ -731,6 +732,10 @@<br>
> <a href="http://primitives.cu" rel="noreferrer" target="_blank">primitives.cu</a>[log2TrSize - 2].psyRdoQuant_1p(m_resiDctCoeff, costUncoded, &totalUncodedCost, &totalRdCost,blkPos);<br>
> <a href="http://primitives.cu" rel="noreferrer" target="_blank">primitives.cu</a>[log2TrSize - 2].psyRdoQuant_2p(m_resiDctCoeff, m_fencDctCoeff, costUncoded, &totalUncodedCost, &totalRdCost, &psyScale, blkPos);<br>
> }<br>
> +#elif<br>
<br>
#else? Everywhere else, too.<br>
<br>
> + <a href="http://primitives.cu" rel="noreferrer" target="_blank">primitives.cu</a>[log2TrSize - 2].psyRdoQuant_1p(m_resiDctCoeff, costUncoded, &totalUncodedCost, &totalRdCost, blkPos);<br>
> + <a href="http://primitives.cu" rel="noreferrer" target="_blank">primitives.cu</a>[log2TrSize - 2].psyRdoQuant_2p(m_resiDctCoeff, m_fencDctCoeff, costUncoded, &totalUncodedCost, &totalRdCost, &psyScale, blkPos);<br>
> +#endif<br>
> }<br>
> }<br>
> else<br>
> @@ -805,8 +810,8 @@<br>
> uint32_t blkPos = codeParams.scan[scanPosBase];<br>
> if (usePsyMask)<br>
> {<br>
> +#if X265_ARCH_X86<br>
> bool enable512 = detect512();<br>
> -<br>
> if (enable512)<br>
> <a href="http://primitives.cu" rel="noreferrer" target="_blank">primitives.cu</a>[log2TrSize - 2].psyRdoQuant(m_resiDctCoeff, m_fencDctCoeff, costUncoded, &totalUncodedCost, &totalRdCost, &psyScale, blkPos);<br>
> else<br>
> @@ -814,6 +819,10 @@<br>
> <a href="http://primitives.cu" rel="noreferrer" target="_blank">primitives.cu</a>[log2TrSize - 2].psyRdoQuant_1p(m_resiDctCoeff, costUncoded, &totalUncodedCost, &totalRdCost, blkPos);<br>
> <a href="http://primitives.cu" rel="noreferrer" target="_blank">primitives.cu</a>[log2TrSize - 2].psyRdoQuant_2p(m_resiDctCoeff, m_fencDctCoeff, costUncoded, &totalUncodedCost, &totalRdCost, &psyScale, blkPos);<br>
> }<br>
> +#elif<br>
> + <a href="http://primitives.cu" rel="noreferrer" target="_blank">primitives.cu</a>[log2TrSize - 2].psyRdoQuant_1p(m_resiDctCoeff, costUncoded, &totalUncodedCost, &totalRdCost, blkPos);<br>
> + <a href="http://primitives.cu" rel="noreferrer" target="_blank">primitives.cu</a>[log2TrSize - 2].psyRdoQuant_2p(m_resiDctCoeff, m_fencDctCoeff, costUncoded, &totalUncodedCost, &totalRdCost, &psyScale, blkPos);<br>
> +#endif<br>
> blkPos = codeParams.scan[scanPosBase];<br>
> for (int y = 0; y < MLS_CG_SIZE; y++)<br>
> {<br>
> <br>
> <br>
> _______________________________________________<br>
> x265-devel mailing list<br>
> <a href="mailto:x265-devel@videolan.org" target="_blank">x265-devel@videolan.org</a><br>
> <a href="https://mailman.videolan.org/listinfo/x265-devel" rel="noreferrer" target="_blank">https://mailman.videolan.org/listinfo/x265-devel</a><br>
> <br>
<br>
_______________________________________________<br>
x265-devel mailing list<br>
<a href="mailto:x265-devel@videolan.org" target="_blank">x265-devel@videolan.org</a><br>
<a href="https://mailman.videolan.org/listinfo/x265-devel" rel="noreferrer" target="_blank">https://mailman.videolan.org/listinfo/x265-devel</a><br>
</blockquote></div>