[Mesa-dev] [PATCH 11/28] util: added float to float16 conversions with RTZ and RTNE

Roland Scheidegger sroland at vmware.com
Fri Dec 7 03:22:46 UTC 2018


Am 07.12.18 um 03:20 schrieb Matt Turner:
> Since this is for an extension that will be BDW+ can we use the
> _cvtss_sh() intrinsic instead? It corresponds to an IVB+ instruction
> and even takes the rounding mode directly as an immediate argument.

Not saying trying to use it isn't a good idea, but you'd need the right
compile flags, and you can't assume it's present, since even the latest
pentiums don't support avx (and by extension, f16c). (The same is true
for atoms too, of course).

Roland


More information about the mesa-dev mailing list