Chromium Code Reviews| Index: crosstest/test_sync_atomic.h |
| diff --git a/crosstest/test_sync_atomic.h b/crosstest/test_sync_atomic.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..afa079bb1a6f7d3c6b62461791b6f59c6f8b0750 |
| --- /dev/null |
| +++ b/crosstest/test_sync_atomic.h |
| @@ -0,0 +1,15 @@ |
| +#include "test_sync_atomic.def" |
|
JF
2014/07/13 19:56:12
You're missing the license here and in other files
jvoung (off chromium)
2014/07/14 16:20:30
So far, none of the crosstest .def, .h, .cpp files
|
| + |
| +#define X(inst, type) \ |
| + type test_##inst(bool fetch_first, volatile type *ptr, type a); \ |
| + type test_alloca_##inst(bool fetch, volatile type *ptr, type a); \ |
| + type test_const_##inst(bool fetch, volatile type *ptr, type ignored); |
| + |
| +FOR_ALL_RMWOP_TYPES(X) |
| +#undef X |
| + |
| +#define X(type) \ |
| + type test_val_cmp_swap(volatile type *ptr, type oldval, type newval); |
| + |
| +ATOMIC_TYPE_TABLE |
| +#undef X |