diff options
author | Gavin Andresen <gavinandresen@gmail.com> | 2011-10-05 10:38:10 -0400 |
---|---|---|
committer | Gavin Andresen <gavinandresen@gmail.com> | 2011-10-05 10:38:10 -0400 |
commit | b898c8fce687de9320bfae8dd2392e92c5464831 (patch) | |
tree | 0eae81bd8a40703143a5bbe74ce6648ca0b143c7 /src/util.h | |
parent | 8bc52d069247b3c7968bbb5c9ced9e6a7baa57e8 (diff) | |
parent | 452506fc4153be072fe443fe3e3cbf76d9563a42 (diff) | |
download | bitcoin-b898c8fce687de9320bfae8dd2392e92c5464831.tar.xz |
Merge branch 'no-cryptopp' of https://github.com/tcatm/bitcoin
Diffstat (limited to 'src/util.h')
-rw-r--r-- | src/util.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h index f0b2f4a71c..c05143bece 100644 --- a/src/util.h +++ b/src/util.h @@ -726,4 +726,10 @@ inline bool AffinityBugWorkaround(void(*pfn)(void*)) return false; } +inline uint32_t ByteReverse(uint32_t value) +{ + value = ((value & 0xFF00FF00) >> 8) | ((value & 0x00FF00FF) << 8); + return (value<<16) | (value>>16); +} + #endif |