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

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: revert register alloc workarounds 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 STR(s) #s
5
6 #define RMWOP_TABLE \
7 /* inst */ \
8 X(add) \
9 X(sub) \
10 X(or) \
11 X(and) \
12 X(xor)
13 //#define X(inst)
14
15 #define ATOMIC_TYPE_TABLE \
16 /* type */ \
17 X(uint8_t) \
18 X(uint16_t) \
19 X(uint32_t) \
20 X(uint64_t)
21 //#define X(type)
22
23 #define FOR_ALL_RMWTYPES_INST(F, inst) \
24 F(inst, uint8_t) \
25 F(inst, uint16_t) \
26 F(inst, uint32_t) \
27 F(inst, uint64_t)
28
29 #define FOR_ALL_RMWOP_TYPES(X) \
30 FOR_ALL_RMWTYPES_INST(X, add) \
31 FOR_ALL_RMWTYPES_INST(X, sub) \
32 FOR_ALL_RMWTYPES_INST(X, or) \
33 FOR_ALL_RMWTYPES_INST(X, and) \
34 FOR_ALL_RMWTYPES_INST(X, xor)
35 //#define X(inst, type)
36
37 #endif // TEST_SYNC_ATOMIC_DEF
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698