<p dir="ltr">Agreed, if you move the array all the way to the top, you will be better off.</p>
<div class="gmail_quote">On 28-Sep-2015 8:20 pm, "chen" <<a href="mailto:chenm003@163.com">chenm003@163.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial"><div>this is unsafe way to make alignment buffer , it depends on Compiler and its version<br></div><pre><br>At 2015-09-28 12:43:12,<a href="mailto:dnyaneshwar@multicorewareinc.com" target="_blank">dnyaneshwar@multicorewareinc.com</a> wrote:
># HG changeset patch
># User Dnyaneshwar G <<a href="mailto:dnyaneshwar@multicorewareinc.com" target="_blank">dnyaneshwar@multicorewareinc.com</a>>
># Date 1443415172 -19800
># Mon Sep 28 10:09:32 2015 +0530
># Node ID 247891a7dbea7ae2a0e89c290b5a35f38d5be658
># Parent 4f524673358748837d281abf28e4382f2ee845d2
>asm: rearrange buffer positions to align m_residualSumEmergency buffer for asm code
>
>diff -r 4f5246733587 -r 247891a7dbea source/encoder/encoder.h
>--- a/source/encoder/encoder.h Thu Sep 24 18:53:28 2015 -0500
>+++ b/source/encoder/encoder.h Mon Sep 28 10:09:32 2015 +0530
>@@ -131,8 +131,8 @@
> bool m_aborted; // fatal error detected
> bool m_reconfigured; // reconfigure of encoder detected
>
>+ uint16_t (*m_offsetEmergency)[MAX_NUM_TR_CATEGORIES][MAX_NUM_TR_COEFFS];
> uint32_t m_residualSumEmergency[MAX_NUM_TR_CATEGORIES][MAX_NUM_TR_COEFFS];
>- uint16_t (*m_offsetEmergency)[MAX_NUM_TR_CATEGORIES][MAX_NUM_TR_COEFFS];
> uint32_t m_countEmergency[MAX_NUM_TR_CATEGORIES];
>
> Encoder();
>_______________________________________________
>x265-devel mailing list
><a href="mailto:x265-devel@videolan.org" target="_blank">x265-devel@videolan.org</a>
><a href="https://mailman.videolan.org/listinfo/x265-devel" target="_blank">https://mailman.videolan.org/listinfo/x265-devel</a>
</pre></div><br>_______________________________________________<br>
x265-devel mailing list<br>
<a href="mailto:x265-devel@videolan.org">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></blockquote></div>