[x265] [PATCH] remove redundant memset

chen chenm003 at 163.com
Wed Jul 2 03:18:39 CEST 2014


>> -    memset(m_bMergeFlags,     0, sizeInBool);
>> -    memset(m_lumaIntraDir,    DC_IDX, sizeInChar);
>> -    memset(m_chromaIntraDir,  0, sizeInChar);
>> -    memset(m_interDir,        0, sizeInChar);
>> -    memset(m_trIdx,           0, sizeInChar);
>> -    memset(m_transformSkip[0], 0, sizeInChar);
>> -    memset(m_transformSkip[1], 0, sizeInChar);
>> -    memset(m_transformSkip[2], 0, sizeInChar);
>> -    memset(m_cbf[0],          0, sizeInChar);
>> -    memset(m_cbf[1],          0, sizeInChar);
>> -    memset(m_cbf[2],          0, sizeInChar);
>> -    memset(m_depth, depth, sizeInChar);
>> +    memset(m_qp,                 qp,     sizeInChar);
>> +    memset(m_lumaIntraDir,       DC_IDX, sizeInChar);
>> +    memset(m_chromaIntraDir,     0,      sizeInChar);
>> +    memset(m_trIdx,              0,      sizeInChar);
>> +    memset(m_transformSkip[0],   0,      sizeInChar);
>> +    memset(m_transformSkip[1],   0,      sizeInChar);
>> +    memset(m_transformSkip[2],   0,      sizeInChar);
>> +    memset(m_cbf[0],             0,      sizeInChar);
>> +    memset(m_cbf[1],             0,      sizeInChar);
>> +    memset(m_cbf[2],             0,      sizeInChar);
>
>it seems like these six memsets should be able to be further combined
>into two, and perhaps more of the above if we knew they were
>contiguous
>
I working on merge these field, processing m_cbf[]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20140702/daea8cd9/attachment.html>


More information about the x265-devel mailing list