opengl: use ctz() instead of ffsll()
authorRémi Denis-Courmont <remi@remlab.net>
Sun, 25 Feb 2018 19:30:40 +0000 (21:30 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Sun, 25 Feb 2018 19:30:40 +0000 (21:30 +0200)
commit1d95200c2fc7481852c913708c17f1a9bb7e68c1
tree42bc462e7d544d2aa5cdb3bfc415d36fa049b39d
parentf8e00adcdc96457cb4b1bf36f9378db773736224
opengl: use ctz() instead of ffsll()

When manipulating bit fields, zero-based ctz() is generally simpler
than one-based ffs().

By definition: ffs(x) = x ? (ctz(x) + 1) : 0
modules/video_output/opengl/converter_sw.c