[FFmpeg-devel] [PATCH] intmath.h: add an ff_log2_nz
Michael Niedermayer
michael at niedermayer.cc
Thu Dec 17 19:22:51 CET 2015
On Thu, Dec 17, 2015 at 05:29:58PM +0000, Rostislav Pehlivanov wrote:
> This commit adds a raw integer log2 function (which directly maps to a
> builtin). This was needed as the Daala entropy coding system requires a
> raw log2 and the existing ff_log2 OR'd the argument with 1.
__builtin_clz(0) is undefined as ganesh pointed out elsewhere
if i read the intend correctly though this function is added because
of different behavior for 0, but IIUC its not different in a good way
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
I know you won't believe me, but the highest form of Human Excellence is
to question oneself and others. -- Socrates
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20151217/2dd7afd9/attachment.sig>
More information about the ffmpeg-devel
mailing list