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

Side by Side Diff: crosstest/test_sync_atomic.h

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: rebase 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
« no previous file with comments | « crosstest/runtests.sh ('k') | crosstest/test_sync_atomic.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 //===- subzero/crosstest/test_sync_atomic.h - Test prototypes ---*- C++ -*-===//
2 //
3 // The Subzero Code Generator
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This file declares the function prototypes for cross testing atomic
11 // intrinsics.
12 //
13 //===----------------------------------------------------------------------===//
14
15 #include "test_sync_atomic.def"
16
17 #define X(inst, type) \
18 type test_##inst(bool fetch_first, volatile type *ptr, type a); \
19 type test_alloca_##inst(bool fetch, volatile type *ptr, type a); \
20 type test_const_##inst(bool fetch, volatile type *ptr, type ignored);
21
22 FOR_ALL_RMWOP_TYPES(X)
23 #undef X
24
25 #define X(type) \
26 type test_val_cmp_swap(volatile type *ptr, type oldval, type newval);
27
28 ATOMIC_TYPE_TABLE
29 #undef X
OLDNEW
« no previous file with comments | « crosstest/runtests.sh ('k') | crosstest/test_sync_atomic.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698