Add x86 64bit asm code for downsample
Align C version to asm function.
Merge pull request #1140 from zhilwang/x86_64-downsample

Add X86 64bit asm code for downsample
Merge remote-tracking branch 'upstream/master' into travis.osx