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

Unified Diff: crosstest/test_sync_atomic.cpp

Issue 1409863006: Subzero. ARM32. Refactors atomic intrinsics lowering. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pydir/build-runtime.py » ('j') | src/IceTargetLoweringARM32.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: crosstest/test_sync_atomic.cpp
diff --git a/crosstest/test_sync_atomic.cpp b/crosstest/test_sync_atomic.cpp
index d1578ebc3de85a4edd0d4433ff6d68083e571ac2..432002acc836b4bf1da698b0081ea8c0738a908d 100644
--- a/crosstest/test_sync_atomic.cpp
+++ b/crosstest/test_sync_atomic.cpp
@@ -47,7 +47,8 @@
if (fetch) { \
return __sync_fetch_and_##inst(ptr, 42); \
} else { \
- return __sync_##inst##_and_fetch(ptr, 99); \
+ const type value = static_cast<type>(0xaaaaaaaaaaaaaaaaull); \
+ return __sync_##inst##_and_fetch(ptr, value); \
} \
}
« no previous file with comments | « no previous file | pydir/build-runtime.py » ('j') | src/IceTargetLoweringARM32.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698