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

Unified Diff: src/opts/SkOpts_sse42.cpp

Issue 2208903002: Use sse4.2 CRC32 instructions to hash when available. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 4 years, 4 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 | « src/opts/SkChecksum_opts.h ('k') | src/pdf/SkPDFGraphicState.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/opts/SkOpts_sse42.cpp
diff --git a/src/opts/SkOpts_avx.cpp b/src/opts/SkOpts_sse42.cpp
similarity index 61%
copy from src/opts/SkOpts_avx.cpp
copy to src/opts/SkOpts_sse42.cpp
index b5df2b69f0ce3dbc2a6a1b56c14c0747ef88a98b..18831821920cf16e8e3d88e6d90b46756f41dae2 100644
--- a/src/opts/SkOpts_avx.cpp
+++ b/src/opts/SkOpts_sse42.cpp
@@ -7,8 +7,12 @@
#include "SkOpts.h"
-#define SK_OPTS_NS avx
+#define SK_OPTS_NS sse42
+#include "SkChecksum_opts.h"
namespace SkOpts {
- void Init_avx() { }
+ void Init_sse42() {
+ hash_fn = sse42::hash_fn;
+ }
}
+
« no previous file with comments | « src/opts/SkChecksum_opts.h ('k') | src/pdf/SkPDFGraphicState.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698