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

Unified Diff: regexp2000/src/utils.h

Issue 11599: * Fixed bug in unaligned writing (Store16, Store32) on ARM. (Closed)
Patch Set: Created 12 years, 1 month 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: regexp2000/src/utils.h
diff --git a/regexp2000/src/utils.h b/regexp2000/src/utils.h
index e3e000fcf28f3c2c17a281c9601ab8fae73e316c..a1e14f9e12ffbf9bf1181f5aec7ef27ce5e41b75 100644
--- a/regexp2000/src/utils.h
+++ b/regexp2000/src/utils.h
@@ -538,7 +538,6 @@ static inline void Store16(byte* pc, uint16_t value) {
#ifdef CAN_READ_UNALIGNED
*reinterpret_cast<uint16_t*>(pc) = value;
#else
- uint16_t word;
pc[1] = value;
pc[0] = value >> 8;
#endif
@@ -549,12 +548,10 @@ static inline void Store32(byte* pc, uint32_t value) {
#ifdef CAN_READ_UNALIGNED
*reinterpret_cast<uint32_t*>(pc) = value;
#else
- uint32_t word;
pc[3] = value;
pc[2] = value >> 8;
pc[1] = value >> 16;
pc[0] = value >> 24;
- return word;
#endif
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698