Guarded Alloc: use UNLIKELY for debug memset
Move LIKELY/UNLIKELY into header
Fix T39479: Transform mouse constraint fails in some situations.

Some more float precision issue...
Install_deps.sh: tweaks to support new LLVM-3.4.

Issue is, looks like Debian testing's graphic backend now uses LLVM-3.4,
which conflicts with 3.3 in Blender and makes it crash.

So add support to handle 3.4, by both allowing to force a specific version for some libs,
and switching back to head of official repo for OSL.
Better code for (bone axis + roll) to mat

See T39470 and D436. Code by @tippisum, with some minor edits by @mont29.

Tested with various rigs, including Rigify, CGcookie flex rig, and gooseberry/pataz caterpillar.

Riggers, please test it, no change expected in behaviour.

Reviewers: aligorith

CC: tippisum

Differential Revision: https://developer.blender.org/D436
blenderplayer - Reviewed some command line options and the respective help

Doubts: are written as comments in the code
Current Problems:
 - stereo modes sometimes have different names and are ordered differently everywhere (blender properties panel names and tooltips, blenderplayer cmndline)
 - dome mode as several options, but can only take one at a time, like -D mode bla -D tilt X -D ...
 - gameoptions are also given one at a time, like above, but with an assignment -g option = X  . This is inconsistent.
 - gameoptions need to be reviewed and docummented
 - parent to window (-i) is useful for what? (there is no wiki on this either)
 - there is no support for verbose options like --help (blender itself supports it)

Reviewers: dfelinto, moguri

CC:

Differential Revision: https://developer.blender.org/D312
Todo T36849: support XDG thumbnail management standard
BGE: Multi-threading animation updates and skinning.

This required BL_ArmatureObject to have tighter control over armatures and poses.
Also, (Blender) armature objects are now copied instead of shared between
BL_ArmatureObjects to avoid race conditions. Also, due to the armature copy,
shape key drivers need a bit of extra fiddling to get the correct armature copy.

Initially OpenMP was used for threading, but then BLI_task was used due to being
less compiler dependent.

This commit also places time spent on skinning updates in the Animation
profiler category (was previously under the Rasterizer category).
Fix building for Windows.
Mempool: fix own error in recent commit

chunks must be added in order for iteration.
Mempool: minor optimization to building free pointer list
Mempool: use define for used freeword and correct define
Dyntopo: avoid mask layer lookups while adding/removing verts
Dyntopo: minor speedups with bmesh use.
Merge remote-tracking branch 'hm-blender/master'

* hm-blender/master:
  Dyntopo: minor speedups with bmesh use.
  Dyntopo: avoid mask layer lookups while adding/removing verts
  Mempool: use define for used freeword and correct define
  Mempool: minor optimization to building free pointer list
  Mempool: fix own error in recent commit
  Fix building for Windows.
  BGE: Multi-threading animation updates and skinning.
  Todo T36849: support XDG thumbnail management standard
  blenderplayer - Reviewed some command line options and the respective help
  Better code for (bone axis + roll) to mat
  Install_deps.sh: tweaks to support new LLVM-3.4.
  Fix T39479: Transform mouse constraint fails in some situations.
  Move LIKELY/UNLIKELY into header
  Guarded Alloc: use UNLIKELY for debug memset
update addon scripts
Merge branch 'master' into mymods

* master:
  update addon scripts
  Dyntopo: minor speedups with bmesh use.
  Dyntopo: avoid mask layer lookups while adding/removing verts
  Mempool: use define for used freeword and correct define
  Mempool: minor optimization to building free pointer list
  Mempool: fix own error in recent commit
  Fix building for Windows.
  BGE: Multi-threading animation updates and skinning.
  Todo T36849: support XDG thumbnail management standard
  blenderplayer - Reviewed some command line options and the respective help
  Better code for (bone axis + roll) to mat
  Install_deps.sh: tweaks to support new LLVM-3.4.
  Fix T39479: Transform mouse constraint fails in some situations.
  Move LIKELY/UNLIKELY into header
  Guarded Alloc: use UNLIKELY for debug memset
Code cleanup: project gpencil in float coords & delete outdated comments
Code cleanup: remove unused functions and convert int -> bool
Correct assert for RNA IDProps