diff options
author | me0wmix <me0wmix@cryptoanarchy.localnet> | 2016-01-21 11:18:26 -0700 |
---|---|---|
committer | me0wmix <me0wmix@cryptoanarchy.localnet> | 2016-01-21 11:18:26 -0700 |
commit | 28f95eb001a47056287c8adf07c2638746ad8e48 (patch) | |
tree | 1ca085f0499b8e43d190b62dc02b15a5f1f0b2c5 /src/common | |
parent | Merge pull request #616 (diff) | |
download | monero-28f95eb001a47056287c8adf07c2638746ad8e48.tar.xz |
OpenBSD support for Monero.
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/int-util.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/int-util.h b/src/common/int-util.h index 45ee5ef70..e9eddee9c 100644 --- a/src/common/int-util.h +++ b/src/common/int-util.h @@ -137,6 +137,7 @@ static inline uint32_t div128_32(uint64_t dividend_hi, uint64_t dividend_lo, uin static inline uint32_t ident32(uint32_t x) { return x; } static inline uint64_t ident64(uint64_t x) { return x; } +#ifndef __OpenBSD__ static inline uint32_t swap32(uint32_t x) { x = ((x & 0x00ff00ff) << 8) | ((x & 0xff00ff00) >> 8); return (x << 16) | (x >> 16); @@ -146,6 +147,7 @@ static inline uint64_t swap64(uint64_t x) { x = ((x & 0x0000ffff0000ffff) << 16) | ((x & 0xffff0000ffff0000) >> 16); return (x << 32) | (x >> 32); } +#endif #if defined(__GNUC__) #define UNUSED __attribute__((unused)) |