1 // BranchRegister.cpp
2
3 #include "StdAfx.h"
4
5 #include "../../../C/Bra.h"
6
7 #include "../Common/RegisterCodec.h"
8
9 #include "BranchMisc.h"
10
11 namespace NCompress {
12 namespace NBranch {
13
14 #define CREATE_BRA(n) \
15 REGISTER_FILTER_CREATE(CreateBra_Decoder_ ## n, CCoder(n ## _Convert, false)) \
16 REGISTER_FILTER_CREATE(CreateBra_Encoder_ ## n, CCoder(n ## _Convert, true)) \
17
18 CREATE_BRA(PPC)
CREATE_BRA(IA64)19 CREATE_BRA(IA64)
20 CREATE_BRA(ARM)
21 CREATE_BRA(ARMT)
22 CREATE_BRA(SPARC)
23
24 #define METHOD_ITEM(n, id, name) \
25 REGISTER_FILTER_ITEM( \
26 CreateBra_Decoder_ ## n, \
27 CreateBra_Encoder_ ## n, \
28 0x3030000 + id, name)
29
30 REGISTER_CODECS_VAR
31 {
32 METHOD_ITEM(PPC, 0x205, "PPC"),
33 METHOD_ITEM(IA64, 0x401, "IA64"),
34 METHOD_ITEM(ARM, 0x501, "ARM"),
35 METHOD_ITEM(ARMT, 0x701, "ARMT"),
36 METHOD_ITEM(SPARC, 0x805, "SPARC")
37 };
38
39 REGISTER_CODECS(Branch)
40
41 }}
42