Roll skia/third_party/skcms a8a5c9e..2e43fec (1 commits)
https://skia.googlesource.com/skcms.git/+log/a8a5c9e..2e43fec 2018-06-05 mtklein@chromium.org clean up option for old powf() The AutoRoll server is located here: https://skcms-skia-roll.skia.org Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/master/autoroll/README.md If the roll is causing failures, please contact the current sheriff, who should be CC'd on the roll, and stop the roller if necessary. CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel TBR=halcanary@google.com Change-Id: Ic1556a1a02d339f76f53d446bd2311c6ebd775a6 Reviewed-on: https://skia-review.googlesource.com/132200 Commit-Queue: skcms-skia-autoroll <skcms-skia-autoroll@skia-buildbots.google.com.iam.gserviceaccount.com> Reviewed-by: skcms-skia-autoroll <skcms-skia-autoroll@skia-buildbots.google.com.iam.gserviceaccount.com>
This commit is contained in:
parent
2f2a703f33
commit
bd04be76ad
10
third_party/skcms/src/PortableMath.c
vendored
10
third_party/skcms/src/PortableMath.c
vendored
@ -50,16 +50,6 @@ float exp2f_(float x) {
|
||||
}
|
||||
|
||||
float powf_(float x, float y) {
|
||||
#if defined(SKCMS_LEGACY_POWF)
|
||||
float r = 1.0f;
|
||||
while (y >= 1.0f && y < 32) {
|
||||
r *= x;
|
||||
y -= 1.0f;
|
||||
}
|
||||
return (x == 0) || (x == 1) ? x
|
||||
: r * exp2f_(log2f_(x) * y);
|
||||
#else
|
||||
return (x == 0) || (x == 1) ? x
|
||||
: exp2f_(log2f_(x) * y);
|
||||
#endif
|
||||
}
|
||||
|
10
third_party/skcms/src/Transform_inl.h
vendored
10
third_party/skcms/src/Transform_inl.h
vendored
@ -225,18 +225,8 @@ SI ATTR F NS(approx_exp2_)(F x) {
|
||||
#define approx_exp2 NS(approx_exp2_)
|
||||
|
||||
SI ATTR F NS(approx_pow_)(F x, float y) {
|
||||
#if defined(SKCMS_LEGACY_POWF)
|
||||
F r = F1;
|
||||
while (y >= 1.0f) {
|
||||
r *= x;
|
||||
y -= 1.0f;
|
||||
}
|
||||
return (F)if_then_else((x == F0) | (x == F1), x
|
||||
, r * approx_exp2(approx_log2(x) * y));
|
||||
#else
|
||||
return (F)if_then_else((x == F0) | (x == F1), x
|
||||
, approx_exp2(approx_log2(x) * y));
|
||||
#endif
|
||||
}
|
||||
#define approx_pow NS(approx_pow_)
|
||||
|
||||
|
2
third_party/skcms/version.sha1
vendored
2
third_party/skcms/version.sha1
vendored
@ -1 +1 @@
|
||||
a8a5c9ee1b323d5919e54e1c105f207ad635baa8
|
||||
2e43fec5976a4b319fb71f7efb6e5d0babdca0f1
|
Loading…
Reference in New Issue
Block a user