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) behaviour of the rotate instructions on x86 to expand the range of the unsigned int to float conversion to the full 32 bits.
The routine is now exact up to 2^24. Above that, we truncate which is equivalent to rounding towards zero.
Signed-off-by: Steven Fuerst svfuerst@gmail.com
drivers/gpu/drm/radeon/r600_blit.c | 52 +++++++++++++++++++++---------------
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.
Please use a “good” mail client or just `git sent-email`. The manual page has a section explaining how to set it up with Google Mail I think. It would be great if you could resent your patches as `[PATCH][RESENT]` (option `--subject-prefix=…` of `git format-patch`) since there is no functional change.
[…]
Thanks,
Paul