DescriptionAdd clz functions (Count number of Leading Zero bits), 32-and 64-bit variants
Using __builtin_clz on gcc/clang, and a fallback implementation
otherwise.
Also redefine WebRtcSpl_GetSizeInBits(x) as simply 32 - clz32(x).
BUG=chromium:601787
Committed: https://crrev.com/729b21f97f3d849b1ef2bd61114e4b39d073884d
Cr-Commit-Position: refs/heads/master@{#13014}
Patch Set 1 : #
Total comments: 2
Patch Set 2 : new algorithm #
Total comments: 2
Patch Set 3 : compile fix #Patch Set 4 : Reimplement WebRtcSpl_Norm* with WebRtcSpl_CountLeadingZeros32 #
Total comments: 6
Patch Set 5 : fix comments #
Messages
Total messages: 19 (5 generated)
|