source: trunk/lib/bitblock_align.hpp @ 1948

Last change on this file since 1948 was 1918, checked in by ksherdy, 7 years ago

Update hash functions.

File size: 379 bytes
Line 
1#ifndef BITBLOCK_ALIGN_HPP
2#define BITBLOCK_ALIGN_HPP
3
4#include "bitblock.hpp"
5#include <cassert>
6#using namespace std;
7
8#define NDEBUG // if NDEBUG then disable assertions
9
10static IDISA_ALWAYS_INLINE assert_align(BitBlock v) {
11    assert(0 != (&v) & (sizeof(BitBlock)-1));
12    return v;
13}
14
15#define ASSERT_BITBLOCK_ALIGN(v) assert_bitblock_align(v)
16
17#endif // BITBLOCK_ALIGN_HPP
Note: See TracBrowser for help on using the repository browser.