aboutsummaryrefslogtreecommitdiffstats
path: root/include/abs2mt.h
blob: 6021d8d1e8175eb3348cc7e4c279e597ec2cb9f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/* generated by mapgen - do not edit */

#ifndef ABS2MT_H
#define ABS2MT_H

#include "common.h"

static const unsigned int map_abs2mt[ABS_CNT] = {
 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
 0x0001, 0x0002, 0x0003, 0x0004, 0x0005, 0x0006, 0x0007, 0x0008,
 0x0009, 0x000a, 0x000b, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
};

static const unsigned int map_mt2abs[MT_ABS_SIZE] = {
 0x0030, 0x0031, 0x0032, 0x0033, 0x0034, 0x0035, 0x0036, 0x0037,
 0x0038, 0x0039, 0x003a,
};

static inline int has_abs2mt(unsigned int code)
{
	return map_abs2mt[code];
}

static inline unsigned int abs2mt(unsigned int code)
{
	return map_abs2mt[code] - 1;
}

static inline unsigned int mt2abs(unsigned int mtcode)
{
	return map_mt2abs[mtcode];
}

#endif