summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/util/u_half.h
diff options
context:
space:
mode:
authorLuca Barbieri <luca@luca-barbieri.com>2010-04-01 18:40:27 +0200
committerLuca Barbieri <luca@luca-barbieri.com>2010-04-01 18:52:02 +0200
commit4edffe026e387f6a038d7538577bf5ecc168f223 (patch)
tree7d0d21765a5ceea2aa3f2fbf20f6ae0957cba41e /src/gallium/auxiliary/util/u_half.h
parent8f38135e283a0e81510fb40fb9e0c918436fa5f1 (diff)
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.
Diffstat (limited to 'src/gallium/auxiliary/util/u_half.h')
-rw-r--r--src/gallium/auxiliary/util/u_half.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/gallium/auxiliary/util/u_half.h b/src/gallium/auxiliary/util/u_half.h
index 0ca660faf3..5afdd925a6 100644
--- a/src/gallium/auxiliary/util/u_half.h
+++ b/src/gallium/auxiliary/util/u_half.h
@@ -4,7 +4,6 @@
#include "pipe/p_compiler.h"
#include "u_math.h"
-
#ifdef __cplusplus
extern "C" {
#endif
@@ -59,10 +58,6 @@ util_float_to_half(float f)
return util_floatui_to_half(i.ui);
}
-/* called by u_gctors.cpp, which defines the prototype itself */
-void util_half_init_tables(void);
-
-
#ifdef __cplusplus
}
#endif