summaryrefslogtreecommitdiff
path: root/include/abs2mt.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/abs2mt.h')
-rw-r--r--include/abs2mt.h39
1 files changed, 0 insertions, 39 deletions
diff --git a/include/abs2mt.h b/include/abs2mt.h
deleted file mode 100644
index 6021d8d..0000000
--- a/include/abs2mt.h
+++ /dev/null
@@ -1,39 +0,0 @@
1/* generated by mapgen - do not edit */
2
3#ifndef ABS2MT_H
4#define ABS2MT_H
5
6#include "common.h"
7
8static const unsigned int map_abs2mt[ABS_CNT] = {
9 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
10 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
11 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
12 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
13 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
14 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
15 0x0001, 0x0002, 0x0003, 0x0004, 0x0005, 0x0006, 0x0007, 0x0008,
16 0x0009, 0x000a, 0x000b, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
17};
18
19static const unsigned int map_mt2abs[MT_ABS_SIZE] = {
20 0x0030, 0x0031, 0x0032, 0x0033, 0x0034, 0x0035, 0x0036, 0x0037,
21 0x0038, 0x0039, 0x003a,
22};
23
24static inline int has_abs2mt(unsigned int code)
25{
26 return map_abs2mt[code];
27}
28
29static inline unsigned int abs2mt(unsigned int code)
30{
31 return map_abs2mt[code] - 1;
32}
33
34static inline unsigned int mt2abs(unsigned int mtcode)
35{
36 return map_mt2abs[mtcode];
37}
38
39#endif