[vlc-devel] vlc_math.h ?

Rémi Denis-Courmont remi at remlab.net
Fri Dec 11 11:22:12 CET 2015


Le 2015-12-11 00:59, Francois Cartegnie a écrit :
> I need log2 and log2_ceil which are already duplicated in some 
> modules:

log2 is a standard function so you can use it, so I fail to see why you 
would need to wrap that.
log2_ceil is best implemented with clz family of functions, rather than 
floating point maths.

-- 
Rémi Denis-Courmont
http://www.remlab.net/


More information about the vlc-devel mailing list