Re: [Mesa-dev] [PATCH] Fixed bug in unclamped float to ubyte conversion.

2013-06-12 Thread Brian Paul
On 06/07/2013 05:20 PM, Stéphane Marchesin wrote: Ping, does anyone else want to review this patch? Stéphane On Fri, May 10, 2013 at 3:56 PM, Manfred Ernst wrote: Problem: The IEEE float optimized version of UNCLAMPED_FLOAT_TO_UBYTE in macros.h computed incorrect results for inputs in the r

Re: [Mesa-dev] [PATCH] Fixed bug in unclamped float to ubyte conversion.

2013-06-07 Thread Stéphane Marchesin
Ping, does anyone else want to review this patch? Stéphane On Fri, May 10, 2013 at 3:56 PM, Manfred Ernst wrote: > Problem: The IEEE float optimized version of UNCLAMPED_FLOAT_TO_UBYTE in > macros.h > computed incorrect results for inputs in the range 0x3f7f (=0.99609375) to > 0x3f7f7f80 (

[Mesa-dev] [PATCH] Fixed bug in unclamped float to ubyte conversion.

2013-05-12 Thread Manfred Ernst
Problem: The IEEE float optimized version of UNCLAMPED_FLOAT_TO_UBYTE in macros.h computed incorrect results for inputs in the range 0x3f7f (=0.99609375) to 0x3f7f7f80 (=0.99803924560546875) inclusive. 0x3f7f7f80 is the IEEE float value that results in 254.5 when multiplied by 255. With roun

Re: [Mesa-dev] [PATCH] Fixed bug in unclamped float to ubyte conversion.

2013-05-10 Thread Stéphane Marchesin
On Fri, May 10, 2013 at 12:57 PM, Manfred Ernst wrote: > Problem: The IEEE float optimized version of UNCLAMPED_FLOAT_TO_UBYTE in > macros.h > computed incorrect results for inputs in the range 0x3f7f (=0.99609375) to > 0x3f7f7f80 (=0.99803924560546875) inclusive. 0x3f7f7f80 is the IEEE floa

[Mesa-dev] [PATCH] Fixed bug in unclamped float to ubyte conversion.

2013-05-10 Thread Manfred Ernst
Problem: The IEEE float optimized version of UNCLAMPED_FLOAT_TO_UBYTE in macros.h computed incorrect results for inputs in the range 0x3f7f (=0.99609375) to 0x3f7f7f80 (=0.99803924560546875) inclusive. 0x3f7f7f80 is the IEEE float value that results in 254.5 when multiplied by 255. With roun