diff options
| author | Henrik Rydberg <rydberg@euromail.se> | 2010-10-12 15:38:43 +0200 |
|---|---|---|
| committer | Henrik Rydberg <rydberg@euromail.se> | 2010-10-12 15:38:43 +0200 |
| commit | acea9df3381825a634c000a574f58b4ca5293ee8 (patch) | |
| tree | 3698bd55f137bc377f1b840e4fb5bf9e446e7250 /include/abs2mt.h | |
| parent | 7380af2c93dc83f4f09e293717d46eadf7799e89 (diff) | |
Same version, but using the mtdev library.
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Diffstat (limited to 'include/abs2mt.h')
| -rw-r--r-- | include/abs2mt.h | 39 |
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 | |||
| 8 | static 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 | |||
| 19 | static const unsigned int map_mt2abs[MT_ABS_SIZE] = { | ||
| 20 | 0x0030, 0x0031, 0x0032, 0x0033, 0x0034, 0x0035, 0x0036, 0x0037, | ||
| 21 | 0x0038, 0x0039, 0x003a, | ||
| 22 | }; | ||
| 23 | |||
| 24 | static inline int has_abs2mt(unsigned int code) | ||
| 25 | { | ||
| 26 | return map_abs2mt[code]; | ||
| 27 | } | ||
| 28 | |||
| 29 | static inline unsigned int abs2mt(unsigned int code) | ||
| 30 | { | ||
| 31 | return map_abs2mt[code] - 1; | ||
| 32 | } | ||
| 33 | |||
| 34 | static inline unsigned int mt2abs(unsigned int mtcode) | ||
| 35 | { | ||
| 36 | return map_mt2abs[mtcode]; | ||
| 37 | } | ||
| 38 | |||
| 39 | #endif | ||
