diff options
author | Steven Fuerst <svfuerst@gmail.com> | 2012-08-15 15:07:16 -0700 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2012-09-20 13:10:34 -0400 |
commit | 9e9eb7c60d57620bfe46b2a489e7f56a5925115a (patch) | |
tree | 8a22cea5cebee49a5e9bdbe205965270cc3414b4 /drivers/gpu/drm/radeon/r600_blit_shaders.h | |
parent | 747f49ba67b8895a5831ab539de551b916f3738c (diff) | |
download | lwn-9e9eb7c60d57620bfe46b2a489e7f56a5925115a.tar.gz lwn-9e9eb7c60d57620bfe46b2a489e7f56a5925115a.zip |
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>
Diffstat (limited to 'drivers/gpu/drm/radeon/r600_blit_shaders.h')
-rw-r--r-- | drivers/gpu/drm/radeon/r600_blit_shaders.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/r600_blit_shaders.h b/drivers/gpu/drm/radeon/r600_blit_shaders.h index e17c2cbc6627..2f3ce7a75976 100644 --- a/drivers/gpu/drm/radeon/r600_blit_shaders.h +++ b/drivers/gpu/drm/radeon/r600_blit_shaders.h @@ -35,5 +35,5 @@ extern const u32 r6xx_default_state[]; extern const u32 r6xx_ps_size, r6xx_vs_size; extern const u32 r6xx_default_size, r7xx_default_size; -uint32_t int2float(uint32_t x); +__pure uint32_t int2float(uint32_t x); #endif |