skia /
skcms /
30c8e303800c256febb03a09fdcda7f75d119b1b 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, http://review.skia.org/497283
Change-Id: I9412094e9b4c27a9619781c27726b9e6a00c805e
Reviewed-on: https://skia-review.googlesource.com/c/skcms/+/497452
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: John Stiles <johnstiles@google.com>
1 file changed