interleave.c 263 Bytes
Newer Older
Martin Schläffer committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#include "interleave.h"

#if !ASCON_EXTERN_BI

const uint32_t B[3] = {0x22222222, 0x0c0c0c0c, 0x00f000f0};

#if !ASCON_INLINE_BI

uint64_t TOBI(uint64_t in) { return deinterleave32(in); }

uint64_t FROMBI(uint64_t in) { return interleave32(in); }

#endif

#endif