Annotate int2float() as being a pure function.
authorSteven Fuerst <svfuerst@gmail.com>
Wed, 15 Aug 2012 22:07:16 +0000 (15:07 -0700)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 20 Sep 2012 17:10:34 +0000 (13:10 -0400)
commit9e9eb7c60d57620bfe46b2a489e7f56a5925115a
tree8a22cea5cebee49a5e9bdbe205965270cc3414b4
parent747f49ba67b8895a5831ab539de551b916f3738c
Annotate int2float() as being a pure function.

This allows gcc to fold duplicate calls into a single call.  Since
the current users do actually call it multiple times with the
same arguments, this is an obvious win.

Signed-off-by: Steven Fuerst <svfuerst@gmail.com>
drivers/gpu/drm/radeon/r600_blit.c
drivers/gpu/drm/radeon/r600_blit_shaders.h