Fix overflow issue in approx_exp2().

skcms' vector implementation of approx_exp2() used a clever bit-
twiddling trick to generate its results. Unfortunately, the bit trick
fails for large inputs and generates a nonsense result. This is now
fixed with a well-positioned call to min_.

This fix parallels a similar fix in skvm,

Change-Id: I9412094e9b4c27a9619781c27726b9e6a00c805e
Auto-Submit: John Stiles <>
Reviewed-by: Brian Osman <>
Commit-Queue: John Stiles <>
1 file changed