On Thu, 27 May 2010 11:20:59 -0400
Alex Deucher <[email protected]> wrote:

> On Thu, May 27, 2010 at 10:55 AM, Matt Turner <[email protected]> wrote:
> >> +static inline GLint r600_log2(GLint n)
> >> +{
> >> +       GLint log2 = 0;
> >> +
> >> +       while (n >>= 1)
> >> +               ++log2;
> >> +       return log2;
> >> +}
> >
> > Does mesa not provide something like this?
> 
> The only one I could find was a gallium utility function.

include/linux/log2.h

The original is from Red Hat so if you need it non GPL maybe Red Hat can
help ?
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

Reply via email to