diff options
author | Samuel Iglesias Gonsálvez <[email protected]> | 2018-09-06 16:01:34 +0200 |
---|---|---|
committer | Andres Gomez <[email protected]> | 2019-09-17 23:39:18 +0300 |
commit | 5308333e789e19956172d4e77e7ae4cf2fb4eafb (patch) | |
tree | 07d5a269097c3adb93575c17d0280e0317cb8a94 /src/util/Makefile.sources | |
parent | 733ede8ff6c107ff2acb2dc6ba647d3ad2b3b6dc (diff) |
util: add fp64 -> fp32 conversion support for RTNE and RTZ rounding modes
In order to be coherent with the pre-existent API for half floats,
this new API for double is the one meant to be used when doing double
to float conversions. It is no more than a wrapper for the softfloat.h
API but we meant to keep that one private.
v2:
- Fix bug in _mesa_double_to_float_rtz() in the inf/nan detection
using the exponent value.
v3:
- Replace custom f64 -> f32 implementations with the softfloat
one (Andres).
v4:
- Added API usage clarifying comments (Caio).
Signed-off-by: Samuel Iglesias Gonsálvez <[email protected]>
Signed-off-by: Andres Gomez <[email protected]>
Reviewed-by: Caio Marcelo de Oliveira Filho <[email protected]>
Diffstat (limited to 'src/util/Makefile.sources')
-rw-r--r-- | src/util/Makefile.sources | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util/Makefile.sources b/src/util/Makefile.sources index e4d9d73ce8a..cf8c848ea6d 100644 --- a/src/util/Makefile.sources +++ b/src/util/Makefile.sources @@ -15,6 +15,8 @@ MESA_UTIL_FILES := \ debug.h \ disk_cache.c \ disk_cache.h \ + double.c \ + double.h \ fast_idiv_by_const.c \ fast_idiv_by_const.h \ format_r11g11b10f.h \ |