FC Updates from BitShares and myself #21
1 changed files with 0 additions and 28 deletions
|
|
@ -1,28 +0,0 @@
|
||||||
#pragma once
|
|
||||||
#include <stdint.h>
|
|
||||||
|
|
||||||
namespace fc {
|
|
||||||
|
|
||||||
inline uint64_t endian_reverse_u64( uint64_t x )
|
|
||||||
{
|
|
||||||
return (((x >> 0x38) & 0xFF) )
|
|
||||||
| (((x >> 0x30) & 0xFF) << 0x08)
|
|
||||||
| (((x >> 0x28) & 0xFF) << 0x10)
|
|
||||||
| (((x >> 0x20) & 0xFF) << 0x18)
|
|
||||||
| (((x >> 0x18) & 0xFF) << 0x20)
|
|
||||||
| (((x >> 0x10) & 0xFF) << 0x28)
|
|
||||||
| (((x >> 0x08) & 0xFF) << 0x30)
|
|
||||||
| (((x ) & 0xFF) << 0x38)
|
|
||||||
;
|
|
||||||
}
|
|
||||||
|
|
||||||
inline uint32_t endian_reverse_u32( uint32_t x )
|
|
||||||
{
|
|
||||||
return (((x >> 0x18) & 0xFF) )
|
|
||||||
| (((x >> 0x10) & 0xFF) << 0x08)
|
|
||||||
| (((x >> 0x08) & 0xFF) << 0x10)
|
|
||||||
| (((x ) & 0xFF) << 0x18)
|
|
||||||
;
|
|
||||||
}
|
|
||||||
|
|
||||||
} // namespace fc
|
|
||||||
Loading…
Reference in a new issue