Re: [Mesa-dev] [PATCH 2/2] glsl: Add support for constant expression evaluation on round(), roundEven().

2011-10-22 Thread Kenneth Graunke
On 10/18/2011 12:31 PM, Eric Anholt wrote: > v2: Avoid the C99 rounding functions, because I don't trust > get/setting the C99 rounding mode from inside our library not having > other side effects. Instead, open-code roundEven() behavior around > Mesa's IROUND, which we're already testing for C99

[Mesa-dev] [PATCH 2/2] glsl: Add support for constant expression evaluation on round(), roundEven().

2011-10-18 Thread Eric Anholt
v2: Avoid the C99 rounding functions, because I don't trust get/setting the C99 rounding mode from inside our library not having other side effects. Instead, open-code roundEven() behavior around Mesa's IROUND, which we're already testing for C99 rounding mode safety. Fixes glsl-1.30/compiler/bui