mesa,glsl: Move round_to_even() from glsl to mesa/main (v2)
authorChad Versace <chad.versace@linux.intel.com>
Thu, 17 Jan 2013 03:49:40 +0000 (19:49 -0800)
committerChad Versace <chad.versace@linux.intel.com>
Fri, 25 Jan 2013 05:24:07 +0000 (21:24 -0800)
commiteac030e38e3cdd4ed4534516e3d3a50c8a372719
tree29b81f500914cd9371e10625809f4286048b6a96
parent1fafd008392d5240dc36d0c72978cef62e21b4b1
mesa,glsl: Move round_to_even() from glsl to mesa/main (v2)

Move round_to_even's definition to mesa/main so that _mesa_float_to_half()
can use it in order to eliminate rounding bias.

In additon to moving the fuction definition, prefix its name with "_mesa",
just as all other functions in mesa/main are prefixed.

v2: Fix Android build.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
src/glsl/Makefile.am
src/glsl/builtin_compiler/Makefile.am
src/glsl/ir_constant_expression.cpp
src/mesa/Android.libmesa_glsl_utils.mk
src/mesa/main/imports.c
src/mesa/main/imports.h