source: trunk/lib/idisa.hpp @ 1539

Last change on this file since 1539 was 1539, checked in by huah, 8 years ago

add idisa.hpp for a generic programming interface and fixed the compilation warning on 64-bit integer

File size: 822 bytes
Line 
1#ifndef IDISA_HPP
2#define IDISA_HPP
3
4#ifndef BLOCKSIZE
5#define BLOCKSIZE 128
6#endif
7
8#if (BLOCKSIZE == 128)
9#include "idisa128.hpp"
10#define Bitblock bitblock128_t
11template <uint32_t fw>
12class simd: public simd128<fw>
13{
14};
15template <uint32_t fw>
16class hsimd: public hsimd128<fw>
17{
18};
19template <uint32_t fw>
20class esimd: public esimd128<fw>
21{
22};
23template <uint32_t fw>
24class mvmd: public mvmd128<fw>
25{
26};
27class bitblock: public bitblock128
28{
29};
30#endif
31
32#if (BLOCKSIZE == 256)
33#include "idisa256.hpp"
34#define Bitblock bitblock256_t
35template <uint32_t fw>
36class simd: public simd256<fw>
37{
38};
39template <uint32_t fw>
40class hsimd: public hsimd256<fw>
41{
42};
43template <uint32_t fw>
44class esimd: public esimd256<fw>
45{
46};
47template <uint32_t fw>
48class mvmd: public mvmd256<fw>
49{
50};
51class bitblock: public bitblock256
52{
53};
54#endif
55#endif
Note: See TracBrowser for help on using the repository browser.