u_math: add ushort_to_float/float_to_ushort
authorQiang Yu <yuq825@gmail.com>
Sat, 17 Jun 2017 16:37:39 +0000 (00:37 +0800)
committerQiang Yu <yuq825@gmail.com>
Thu, 11 Apr 2019 01:57:53 +0000 (09:57 +0800)
commit509dd6e20b1bfa8f42966da1ea421a0b7057485c
tree903fc11997b4b20aaa246d174ba7ffa415731176
parentc73fd79ceef9124faba2c075742ce18d06649af6
u_math: add ushort_to_float/float_to_ushort

v2:
- return 0 for NaN too

Signed-off-by: Qiang Yu <yuq825@gmail.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/util/u_math.h