aboutsummaryrefslogtreecommitdiffstats
path: root/src/util/meson.build
diff options
context:
space:
mode:
authorSamuel Iglesias Gonsálvez <[email protected]>2019-02-12 09:51:31 +0100
committerAndres Gomez <[email protected]>2019-09-17 23:39:18 +0300
commit153c714f2af932e7681627a4c7c9f3521d686100 (patch)
treeeecbeee8580236bb0872b3ad3257458408edf823 /src/util/meson.build
parentf7d73db353e5b6416c98a8c05c585ea79b3eada2 (diff)
util: add softfloat functions to operate with doubles and floats
Implemented fadd, fsub, fmul and ffma for doubles and ffma for floats, rounding to zero, using a modified implementation from Berkely Softfloat 3e Library. Their implementation correctness has been checked with the Berkeley TestFloat Release 3e tool for x86_64. v2: - Reuse util_last_bit64() in _mesa_count_leading_zeros64() implementation (Connor). v3: - Add a specific ffma for floats version (Connor). - Implement the ffma for doubles version (Andres). - Lots of fixes in fadd, fsub and fmul (Andres). - Improved documentation (Andres). v4: - Added f64 -> f32 conversion function (Andres). - Added f32 -> f16 RTZ conversion function (Andres). Signed-off-by: Samuel Iglesias Gonsálvez <[email protected]> Signed-off-by: Andres Gomez <[email protected]> Tested-by: Andres Gomez <[email protected]> Acked-by: Caio Marcelo de Oliveira Filho <[email protected]>
Diffstat (limited to 'src/util/meson.build')
-rw-r--r--src/util/meson.build2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util/meson.build b/src/util/meson.build
index 3e65a36fdb5..8326691f408 100644
--- a/src/util/meson.build
+++ b/src/util/meson.build
@@ -78,6 +78,8 @@ files_mesa_util = files(
'simple_mtx.h',
'slab.c',
'slab.h',
+ 'softfloat.c',
+ 'softfloat.h',
'string_buffer.c',
'string_buffer.h',
'strndup.h',