Re: [Mesa-dev] Optimize logbase2() function

2011-06-03 Thread Matt Turner
On Fri, Jun 3, 2011 at 10:44 AM, Roland Scheidegger wrote: > Am 02.06.2011 14:43, schrieb Benjamin Bellec: >> Hello, >> >> I performed several tests of the logbase2() function. >> This function is defined and used in these files: > > btw you could probably make it faster if you'd just use the x86

Re: [Mesa-dev] Optimize logbase2() function

2011-06-03 Thread Roland Scheidegger
Am 02.06.2011 14:43, schrieb Benjamin Bellec: > Hello, > > I performed several tests of the logbase2() function. > This function is defined and used in these files: btw you could probably make it faster if you'd just use the x86 BSR instruction - at least newer intel cpus handle that with a throu

Re: [Mesa-dev] Optimize logbase2() function

2011-06-02 Thread Brian Paul
On 06/02/2011 06:43 AM, Benjamin Bellec wrote: Hello, I performed several tests of the logbase2() function. This function is defined and used in these files: src/mesa/main/teximage.c src/mesa/drivers/dri/intel/intel_tex_image.c src/mesa/drivers/dri/unichrome/via_tex.c src/mesa/drivers/dri/i965/

[Mesa-dev] Optimize logbase2() function

2011-06-02 Thread Benjamin Bellec
Hello, I performed several tests of the logbase2() function. This function is defined and used in these files: src/mesa/main/teximage.c src/mesa/drivers/dri/intel/intel_tex_image.c src/mesa/drivers/dri/unichrome/via_tex.c src/mesa/drivers/dri/i965/intel_tex_image.c src/mesa/drivers/dri/tdfx/tdfx_