Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(120)

Unified Diff: src/core/Sk2x.h

Issue 1024993002: Sk2x::invert() and Sk2x::approxInvert() (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: invert() and approxInvert() Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/opts/Sk2x_neon.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/Sk2x.h
diff --git a/src/core/Sk2x.h b/src/core/Sk2x.h
index 9b4e5ee61c7178433d974b8462711627d58c93aa..f49442563ad66e88dcc2141d6d2192db917594ee 100644
--- a/src/core/Sk2x.h
+++ b/src/core/Sk2x.h
@@ -67,6 +67,9 @@ public:
Sk2x rsqrt() const; // Approximate 1/this->sqrt().
Sk2x sqrt() const; // this->multiply(this->rsqrt()) may be faster, but less precise.
+ Sk2x invert() const; // 1/this.
+ Sk2x approxInvert() const; // Approximate 1/this, usually faster but less precise.
+
static Sk2x Min(const Sk2x&, const Sk2x&);
static Sk2x Max(const Sk2x&, const Sk2x&);
« no previous file with comments | « no previous file | src/opts/Sk2x_neon.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698