Merge with stable
common: improve logging string for lookahead configuration - conveys more info
common: white-space logging nit
cmake: use explicit file list for HM TLibEncoder files

This prevents issues when HM files are deleted; we simply remove them from this
list and then CMake automatically regenerates projects or Makefiles.  With
globs, you have to know to poke CMake to regenerate the files, but most do not
know this.
cmake: use explicit file list for HM TLibCommon files
cmake: fix auto-link issues with MSVC

If you tell MSVC to link with the static lib, the dependencies somehow fail and
x265.exe is not re-linked properly when the static lib is changed.
slicetype: fix shadow warning reported by GCC
Bug Fix - copy last Recq value to thread local rce object

Missed this out in previous patch.
common: add CHECKED_MALLOC macro that logs malloc failures and jumps to fail label

--HG--
extra : rebase_source : 03195b8c3267dee542fe12886617902b7333a202
encoder: Do not use X265_MALLOC use CHECKED_MALLOC

Currently X265_MALLOC did't validate the returned pointer, CHECKED_MALLOC Always
validate the returned pointer and print the Log message and jumps to fail lable
if returned pointer is not valid,

--HG--
extra : rebase_source : f0fd5047d04cacb1bf3cd9a8f30f554a2d24c164
encoder: style nits, no logic change

--HG--
extra : rebase_source : 3a44a88c3859db4d2f022326976d63c31019cedf
Merge with stable
cmake: force creation of ENABLE_PRIMITIVES_ASM option for all yasm versions
encoder: fix indentation of extract_naldata
encoder: remove NULL checks prior to X265_FREE, which does its own
encoder: white-space fixes
encoder: hoist declaration of offset var to fix GCC goto warnings, avoid casts
Adapting lowress frame dimensions to multiples of lowress CU size.

The full res frame is required to be extended accordingly to achieve a lowres frame with dimensions in multiples of lowres CU size.
Merge with stable
lowres: white-space nits and minor cleanup