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

Unified Diff: crosstest/mem_intrin.h

Issue 1278173009: Inline memove for small constant sizes and refactor memcpy and memset. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 5 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 | « crosstest/crosstest.cfg ('k') | crosstest/mem_intrin.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: crosstest/mem_intrin.h
diff --git a/crosstest/mem_intrin.h b/crosstest/mem_intrin.h
index f04e1b2c5662be2eb21f059b25472a201eb4ddc6..8b13fa258603ba20c8abe81d6121f1aaae1551bb 100644
--- a/crosstest/mem_intrin.h
+++ b/crosstest/mem_intrin.h
@@ -6,10 +6,15 @@
*/
#include "xdefs.h"
+#include "mem_intrin.def"
+
int memcpy_test(uint8_t *buf, uint8_t *buf2, uint8_t init, SizeT length);
int memmove_test(uint8_t *buf, uint8_t *buf2, uint8_t init, SizeT length);
int memset_test(uint8_t *buf, uint8_t *buf2, uint8_t init, SizeT length);
-int memcpy_test_fixed_len(uint8_t init);
-int memmove_test_fixed_len(uint8_t init);
-int memset_test_fixed_len(uint8_t init);
+#define X(NBYTES) \
+ int memcpy_test_fixed_len_##NBYTES(uint8_t init); \
+ int memmove_test_fixed_len_##NBYTES(uint8_t init); \
+ int memset_test_fixed_len_##NBYTES(uint8_t init);
+MEMINTRIN_SIZE_TABLE
+#undef X
« no previous file with comments | « crosstest/crosstest.cfg ('k') | crosstest/mem_intrin.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698