summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/util/u_half.h
diff options
context:
space:
mode:
authorLuca Barbieri <luca@luca-barbieri.com>2010-04-02 03:48:59 +0200
committerLuca Barbieri <luca@luca-barbieri.com>2010-04-02 06:16:18 +0200
commitc476305cdeb1ca9d755983e2058cb44f5b9109f0 (patch)
tree4cf81a1cd1a8648400a7281e811601822231fce2 /src/gallium/auxiliary/util/u_half.h
parent2ae66e9b97e9864367c26fc5f9cb86896bc83b45 (diff)
gallium/util: pregenerate half float tables
This solution avoids the issue of how to run the initializers and also allows those pages (and the parts of them in processor caches) to be shared between multiple processes. The drawback is slightly higher library size.
Diffstat (limited to 'src/gallium/auxiliary/util/u_half.h')
-rw-r--r--src/gallium/auxiliary/util/u_half.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/gallium/auxiliary/util/u_half.h b/src/gallium/auxiliary/util/u_half.h
index 02f0f24193..a28b1fd1d9 100644
--- a/src/gallium/auxiliary/util/u_half.h
+++ b/src/gallium/auxiliary/util/u_half.h
@@ -3,7 +3,6 @@
#include "pipe/p_compiler.h"
#include "util/u_math.h"
-#include "util/u_inline_init.h"
#ifdef __cplusplus
extern "C" {
@@ -56,8 +55,6 @@ util_float_to_half(float f)
return util_floatui_to_half(i.ui);
}
-UTIL_INLINE_INIT(util_half);
-
#ifdef __cplusplus
}
#endif