Roll skcms from 3fa993c258a9 to 30c8e303800c (2 revisions)

https://skia.googlesource.com/skcms.git/+log/3fa993c258a9..30c8e303800c

2022-01-21 johnstiles@google.com Fix overflow issue in approx_exp2().
2022-01-21 johnstiles@google.com Add .DS_Store to skcms ignore list.

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/skcms-skia-autoroll
Please CC brianosman@google.com,scroggo@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Skia: https://bugs.chromium.org/p/skia/issues/entry

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Cq-Include-Trybots: skia/skia.primary:Canary-Chromium
Tbr: brianosman@google.com,scroggo@google.com
Change-Id: Idcdc3b42caa52fc5417ca9b6ecd5a8134c6ef176
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/497762
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Bot-Commit: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
This commit is contained in:
skia-autoroll 2022-01-21 21:21:56 +00:00 committed by SkCQ
parent 63a4d65e16
commit 4350707fe0
2 changed files with 6 additions and 4 deletions

View File

@ -22,10 +22,12 @@ using U8 = V<uint8_t>;
#if defined(__GNUC__) && !defined(__clang__)
// Once again, GCC is kind of weird, not allowing vector = scalar directly.
static constexpr F F0 = F() + 0.0f,
F1 = F() + 1.0f;
F1 = F() + 1.0f,
FInfBits = F() + 0x7f800000; // equals 2139095040, the bit pattern of +Inf
#else
static constexpr F F0 = 0.0f,
F1 = 1.0f;
F1 = 1.0f,
FInfBits = 0x7f800000; // equals 2139095040, the bit pattern of +Inf
#endif
// Instead of checking __AVX__ below, we'll check USING_AVX.
@ -294,7 +296,7 @@ SI F approx_exp2(F x) {
F fbits = (1.0f * (1<<23)) * (x + 121.274057500f
- 1.490129070f*fract
+ 27.728023300f/(4.84252568f - fract));
I32 bits = cast<I32>(max_(fbits, F0));
I32 bits = cast<I32>(min_(max_(fbits, F0), FInfBits));
return bit_pun<F>(bits);
#endif

View File

@ -1 +1 @@
3fa993c258a971b59f394b6343db3b5f5ef4e6e4
30c8e303800c256febb03a09fdcda7f75d119b1b