util: implement F16C using inline assembly on x86_64
authorMarek Olšák <marek.olsak@amd.com>
Fri, 18 Sep 2020 09:21:09 +0000 (05:21 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 7 Oct 2020 01:07:03 +0000 (21:07 -0400)
commitffcdf76799b0b23726d45f97502e2b9826ec628e
treec464f3285df1114a266bd60f26e8d16316738209
parent4c54f059150c197da3941b1b20efa70ba2f06e1f
util: implement F16C using inline assembly on x86_64

F16C: https://en.wikipedia.org/wiki/F16C

This also happens to fix bptc-float-modes on llvmpipe.

Reviewed-by: Matt Turner <mattst88@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6987>
.gitlab-ci/piglit/quick_gl.txt
src/gallium/tests/unit/u_half_test.c
src/util/half_float.c
src/util/half_float.h
src/util/softfloat.c
src/util/softfloat.h