gallium/util: rewrite global constructor system for half floats (GCC/MSVC only!)
authorLuca Barbieri <luca@luca-barbieri.com>
Thu, 1 Apr 2010 16:40:27 +0000 (18:40 +0200)
committerLuca Barbieri <luca@luca-barbieri.com>
Thu, 1 Apr 2010 16:52:02 +0000 (18:52 +0200)
commit4edffe026e387f6a038d7538577bf5ecc168f223
tree7d0d21765a5ceea2aa3f2fbf20f6ae0957cba41e
parent8f38135e283a0e81510fb40fb9e0c918436fa5f1
gallium/util: rewrite global constructor system for half floats (GCC/MSVC only!)

NOTE: this commit will cause Gallium to fail to build on any compiler
      except GCC, the Microsoft C compiler and compatible compilers that
      claim to be one of those.

This commit removes the u_gctors.cpp mechanism, in favor of using
compiler-specific syntax to add global constructors from C files.

This solves the problem of u_gctors.o not being pulled from static
libraries and avoids using C++.

However, it needs compiler-specific support for every compiler.

The Microsoft C compiler support has not been tested.
progs/gallium/unit/u_format_test.c
src/gallium/auxiliary/Makefile
src/gallium/auxiliary/util/u_gctors.cpp [deleted file]
src/gallium/auxiliary/util/u_half.c
src/gallium/auxiliary/util/u_half.h
src/gallium/auxiliary/util/u_init.h [new file with mode: 0644]