Re: [PATCH 1/3] Replace i2f() in r600_blit.c with an optimized version.

2012-08-07 Thread Steven Fuerst
> Unfortunately you sent your message not just as plain text [1] and the > Google Mail mailer automatically wrapped the lines and there mangled the > patch. Oops, sorry about that. New patches incoming via git-send-email. No changes other than the unwanted line-wrapping is hopefully avoided. St

[PATCH 1/3] Replace i2f() in r600_blit.c with an optimized version.

2012-08-06 Thread Paul Menzel
Dear Steven, thank you for your patches. Am Montag, den 06.08.2012, 11:14 -0700 schrieb Steven Fuerst: > Replace i2f() in r600_blit.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) > b

[PATCH 1/3] Replace i2f() in r600_blit.c with an optimized version.

2012-08-06 Thread Steven Fuerst
> Unfortunately you sent your message not just as plain text [1] and the > Google Mail mailer automatically wrapped the lines and there mangled the > patch. Oops, sorry about that. New patches incoming via git-send-email. No changes other than the unwanted line-wrapping is hopefully avoided. St

Re: [PATCH 1/3] Replace i2f() in r600_blit.c with an optimized version.

2012-08-06 Thread Paul Menzel
Dear Steven, thank you for your patches. Am Montag, den 06.08.2012, 11:14 -0700 schrieb Steven Fuerst: > Replace i2f() in r600_blit.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) > b

[PATCH 1/3] Replace i2f() in r600_blit.c with an optimized version.

2012-08-06 Thread Steven Fuerst
Replace i2f() in r600_blit.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 full 3

[PATCH 1/3] Replace i2f() in r600_blit.c with an optimized version.

2012-08-06 Thread Steven Fuerst
Replace i2f() in r600_blit.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 full 3