aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkNx.h
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@google.com>2016-02-09 15:10:56 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-02-09 15:10:56 -0800
commitc023210893da7ca407bad8c9f07c8339ee81854c (patch)
tree27642e946e5e1aa41eeaf5269d63bcedce45d715 /src/core/SkNx.h
parent46cb6d6b82b0ab71033aef91419e8beae25bb8a4 (diff)
Revert of Sk4f: add floor() (patchset #3 id:40001 of https://codereview.chromium.org/1685773002/ )
Reason for revert: build break must be this, right? Original issue's description: > Sk4f: add floor() > > BUG=skia: > GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1685773002 > CQ_EXTRA_TRYBOTS=client.skia:Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD-Trybot > > Committed: https://skia.googlesource.com/skia/+/86c6c4935171a1d2d6a9ffbff37ec6dac1326614 TBR=herb@google.com,mtklein@chromium.org # Skipping CQ checks because original CL landed less than 1 days ago. NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=skia: Review URL: https://codereview.chromium.org/1679343004
Diffstat (limited to 'src/core/SkNx.h')
-rw-r--r--src/core/SkNx.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/core/SkNx.h b/src/core/SkNx.h
index 986c133415..69295d4fc3 100644
--- a/src/core/SkNx.h
+++ b/src/core/SkNx.h
@@ -50,7 +50,7 @@ public:
#undef OP
#define OP(op) SkNx op() const { return {fLo.op(), fHi.op()}; }
- OP(abs) OP(floor)
+ OP(abs)
OP(sqrt) OP(rsqrt0) OP(rsqrt1) OP(rsqrt2)
OP(invert) OP(approxInvert)
#undef OP
@@ -124,7 +124,6 @@ public:
static SkNx Max(const SkNx& a, const SkNx& b) { return SkTMax(a.fVal, b.fVal); }
SkNx abs() const { return SkTAbs(fVal); }
- SkNx floor() const { return Floor(fVal); }
SkNx sqrt () const { return Sqrt(fVal); }
SkNx rsqrt0() const { return this->sqrt().invert(); }
@@ -146,8 +145,6 @@ public:
SkNx thenElse(const SkNx& t, const SkNx& e) const { return fVal != 0 ? t : e; }
protected:
- static double Floor(double val) { return ::floor (val); }
- static float Floor(float val) { return ::floorf(val); }
static double Sqrt(double val) { return ::sqrt (val); }
static float Sqrt(float val) { return ::sqrtf(val); }