|
@ -1,8 +1,43 @@ |
|
|
#pragma once |
|
|
#pragma once |
|
|
|
|
|
|
|
|
#include <stdint.h> |
|
|
#include <cstdint> |
|
|
|
|
|
|
|
|
const uint32_t SHORT_CODE_MARK[16][0x100] = { |
|
|
const uint32_t BASIC_RANGES_INDEX[256] = { |
|
|
|
|
|
136384, 49920, 49920, 136384, 49920, 18272, 18272, 49920, |
|
|
|
|
|
49920, 18272, 18272, 49920, 136384, 49920, 49920, 136384, |
|
|
|
|
|
49920, 18272, 18272, 49920, 18272, 6347, 6347, 17589, |
|
|
|
|
|
18272, 6347, 6347, 17589, 49920, 17589, 17589, 48555, |
|
|
|
|
|
49920, 18272, 18272, 49920, 18272, 6347, 6347, 17589, |
|
|
|
|
|
18272, 6347, 6347, 17589, 49920, 17589, 17589, 48555, |
|
|
|
|
|
136384, 49920, 49920, 136384, 49920, 17589, 17589, 48555, |
|
|
|
|
|
49920, 17589, 17589, 48555, 136384, 48555, 48555, 133653, |
|
|
|
|
|
49920, 18272, 18272, 49920, 18272, 6347, 6347, 17589, |
|
|
|
|
|
18272, 6347, 6347, 17589, 49920, 17589, 17589, 48555, |
|
|
|
|
|
18272, 6347, 6347, 17589, 6347, 1785, 1785, 5246, |
|
|
|
|
|
6347, 1785, 1785, 5246, 17589, 5246, 5246, 15163, |
|
|
|
|
|
18272, 6347, 6347, 17589, 6347, 1785, 1785, 5246, |
|
|
|
|
|
6347, 1785, 1785, 5246, 17589, 5246, 5246, 15163, |
|
|
|
|
|
49920, 17589, 17589, 48555, 17589, 5246, 5246, 15163, |
|
|
|
|
|
17589, 5246, 5246, 15163, 48555, 15163, 15163, 43244, |
|
|
|
|
|
49920, 18272, 18272, 49920, 18272, 6347, 6347, 17589, |
|
|
|
|
|
18272, 6347, 6347, 17589, 49920, 17589, 17589, 48555, |
|
|
|
|
|
18272, 6347, 6347, 17589, 6347, 1785, 1785, 5246, |
|
|
|
|
|
6347, 1785, 1785, 5246, 17589, 5246, 5246, 15163, |
|
|
|
|
|
18272, 6347, 6347, 17589, 6347, 1785, 1785, 5246, |
|
|
|
|
|
6347, 1785, 1785, 5246, 17589, 5246, 5246, 15163, |
|
|
|
|
|
49920, 17589, 17589, 48555, 17589, 5246, 5246, 15163, |
|
|
|
|
|
17589, 5246, 5246, 15163, 48555, 15163, 15163, 43244, |
|
|
|
|
|
136384, 49920, 49920, 136384, 49920, 17589, 17589, 48555, |
|
|
|
|
|
49920, 17589, 17589, 48555, 136384, 48555, 48555, 133653, |
|
|
|
|
|
49920, 17589, 17589, 48555, 17589, 5246, 5246, 15163, |
|
|
|
|
|
17589, 5246, 5246, 15163, 48555, 15163, 15163, 43244, |
|
|
|
|
|
49920, 17589, 17589, 48555, 17589, 5246, 5246, 15163, |
|
|
|
|
|
17589, 5246, 5246, 15163, 48555, 15163, 15163, 43244, |
|
|
|
|
|
136384, 48555, 48555, 133653, 48555, 15163, 15163, 43244, |
|
|
|
|
|
48555, 15163, 15163, 43244, 133653, 43244, 43244, 122125, |
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
const uint32_t SHORT_CODE_MARK[16][256] = { |
|
|
{ |
|
|
{ |
|
|
70039, 0, 25594, 70039, 25594, 9527, 9324, 25594, 22458, 0, 9527, 22458, 70039, 0, 25594, 70039, |
|
|
70039, 0, 25594, 70039, 25594, 9527, 9324, 25594, 22458, 0, 9527, 22458, 70039, 0, 25594, 70039, |
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
|
|