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

Side by Side Diff: crosstest/test_sync_atomic.def

Issue 362463002: Subzero: lower the rest of the atomic operations. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: comment cleanup Created 6 years, 5 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 #ifndef TEST_SYNC_ATOMIC_DEF
2 #define TEST_SYNC_ATOMIC_DEF
3
4 #define XSTR(s) STR(s)
Jim Stichnoth 2014/07/08 04:50:19 XSTR() is not used anywhere, consider removing it?
jvoung (off chromium) 2014/07/08 18:14:06 Done.
5 #define STR(s) #s
6
7 #define RMWOP_TABLE \
8 /* inst */ \
9 X(add) \
10 X(sub) \
11 X(or) \
12 X(and) \
13 X(xor)
14 //#define X(inst)
15
16 #define ATOMIC_TYPE_TABLE \
17 /* type */ \
18 X(uint8_t) \
19 X(uint16_t) \
20 X(uint32_t) \
21 X(uint64_t)
22 //#define X(type)
23
24 #define FOR_ALL_RMWTYPES_INST(F, inst) \
25 F(inst, uint8_t) \
26 F(inst, uint16_t) \
27 F(inst, uint32_t) \
28 F(inst, uint64_t)
29
30 #define FOR_ALL_RMWOP_TYPES(X) \
31 FOR_ALL_RMWTYPES_INST(X, add) \
32 FOR_ALL_RMWTYPES_INST(X, sub) \
33 FOR_ALL_RMWTYPES_INST(X, or) \
34 FOR_ALL_RMWTYPES_INST(X, and) \
35 FOR_ALL_RMWTYPES_INST(X, xor)
36 //#define X(inst, type)
37
38 #endif // TEST_SYNC_ATOMIC_DEF
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698