PATCH 2/3] Replace i2f() in r600_blit_kms.c with an optimized version.

2012-08-06 Thread Steven Fuerst
Replace i2f() in r600_blit_kms.c with an optimized version. We use __fls() to find the most significant bit. Using that, the loop can be avoided. A second trick is to use the mod(32) behaviour of the rotate instructions on x86 to expand the range of the unsigned int to float conversion to the fu

PATCH 2/3] Replace i2f() in r600_blit_kms.c with an optimized version.

2012-08-06 Thread Steven Fuerst
Replace i2f() in r600_blit_kms.c with an optimized version. We use __fls() to find the most significant bit. Using that, the loop can be avoided. A second trick is to use the mod(32) behaviour of the rotate instructions on x86 to expand the range of the unsigned int to float conversion to the fu