spirv: Add a 64-bit implementation of Frexp
authorNeil Roberts <nroberts@igalia.com>
Thu, 8 Mar 2018 16:07:46 +0000 (17:07 +0100)
committerNeil Roberts <nroberts@igalia.com>
Wed, 21 Mar 2018 19:18:44 +0000 (20:18 +0100)
commit61603f0e4219fee2d288ece9d1b4105a8657fe38
treeb69ce9e29bc662e10c8bd52e98c53ddc12fa1e74
parent5297a17571b3452ba6d9ec0b78da1769cace018e
spirv: Add a 64-bit implementation of Frexp

The implementation is inspired by
lower_instructions_visitor::dfrexp_sig_to_arith.

This has been tested against the arb_gpu_shader_fp64/fs-frexp-dvec4
test using the ARB_gl_spirv branch.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/spirv/vtn_glsl450.c