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

Side by Side Diff: crosstest/mem_intrin.h

Issue 321993002: Add a few Subzero intrinsics (not the atomic ones yet). (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: bitwise sideeffects Created 6 years, 6 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 unified diff | Download patch
OLDNEW
(Empty)
1 /*
2 * Simple sanity test of memcpy, memmove, and memset intrinsics.
3 * (fixed length buffers, variable length buffers, etc.)
4 */
5
6 #include <stdint.h> /* cstdint requires -std=c++0x or higher */
Jim Stichnoth 2014/06/16 23:05:16 Since mem_intrin.h is now being #included inside n
jvoung (off chromium) 2014/06/17 17:36:19 Hmm good point. I don't know of any way to pop nam
7 #include <cstring>
8
9 /* Declare first buf as uint8_t * and second as void *, to avoid C++
10 * name mangling's use of substitutions. Otherwise Subzero's name
11 * mangling injection will need to bump each substitution sequence ID
12 * up by one (e.g., from S_ to S0_ and S1_ to S2_).
13 */
14 int memcpy_test(uint8_t *buf, void *buf2, uint8_t init, size_t length);
15 int memmove_test(uint8_t *buf, void *buf2, uint8_t init, size_t length);
16 int memset_test(uint8_t *buf, void *buf2, uint8_t init, size_t length);
17
18 int memcpy_test_fixed_len(uint8_t init);
19 int memmove_test_fixed_len(uint8_t init);
20 int memset_test_fixed_len(uint8_t init);
OLDNEW
« no previous file with comments | « Makefile.standalone ('k') | crosstest/mem_intrin.cpp » ('j') | src/IceIntrinsics.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698