summaryrefslogtreecommitdiff
path: root/src/gallium/include/pipe/p_compiler.h
diff options
context:
space:
mode:
authorLuca Barbieri <luca@luca-barbieri.com>2010-03-24 18:12:45 +0100
committerMichal Krol <michal@vmware.com>2010-04-01 13:33:07 +0200
commit3ff175d6de89ad92d167362355501f99d06f0f97 (patch)
tree6332294693fc3581785927a9df6013aecf9aca22 /src/gallium/include/pipe/p_compiler.h
parent110e039d0df08ae1642adf4bd20f07992b9ffe9c (diff)
gallium/util: add fast half float conversion functions
This adds a fast half float conversion facility to Gallium. Mesa already contains such a facility, but using a much worse algorithm. This one is an implementation of www.fox-toolkit.org/ftp/fasthalffloatconversion.pdf and uses a branch-less algorithm with some lookup tables small enough to fit in the L1 cache. Ideally, Mesa should start using these functions too, but I'm not sure how to arrange that with the current build system. A new "u_gctors.cpp" is added that defines a global C++ constructor allowing to initialize to conversion lookup tables at library init.
Diffstat (limited to 'src/gallium/include/pipe/p_compiler.h')
0 files changed, 0 insertions, 0 deletions