You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

276 lines
8.0 KiB

3 years ago
/// @file xed-rep-map.c
// This file was automatically generated.
// Do not edit this file.
/*BEGIN_LEGAL
Copyright (c) 2021 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
END_LEGAL */
#include "xed-internal-header.h"
XED_DLL_EXPORT xed_iclass_enum_t xed_repe_map(xed_iclass_enum_t iclass)
{
const xed_uint16_t lu_table[96] = {
/* 0xFFFF -> 0 */ 0xFFFF, 0,
/* 115 -> 1 */ 115, 698,
/* 113 -> 2 */ 113, 697,
/* 0xFFFF -> 3 */ 0xFFFF, 0,
/* 0xFFFF -> 4 */ 0xFFFF, 0,
/* 0xFFFF -> 5 */ 0xFFFF, 0,
/* 0xFFFF -> 6 */ 0xFFFF, 0,
/* 0xFFFF -> 7 */ 0xFFFF, 0,
/* 762 -> 8 */ 762, 701,
/* 0xFFFF -> 9 */ 0xFFFF, 0,
/* 0xFFFF -> 10 */ 0xFFFF, 0,
/* 0xFFFF -> 11 */ 0xFFFF, 0,
/* 0xFFFF -> 12 */ 0xFFFF, 0,
/* 0xFFFF -> 13 */ 0xFFFF, 0,
/* 0xFFFF -> 14 */ 0xFFFF, 0,
/* 0xFFFF -> 15 */ 0xFFFF, 0,
/* 0xFFFF -> 16 */ 0xFFFF, 0,
/* 0xFFFF -> 17 */ 0xFFFF, 0,
/* 0xFFFF -> 18 */ 0xFFFF, 0,
/* 763 -> 19 */ 763, 702,
/* 761 -> 20 */ 761, 700,
/* 0xFFFF -> 21 */ 0xFFFF, 0,
/* 0xFFFF -> 22 */ 0xFFFF, 0,
/* 117 -> 23 */ 117, 699,
/* 0xFFFF -> 24 */ 0xFFFF, 0,
/* 0xFFFF -> 25 */ 0xFFFF, 0,
/* 0xFFFF -> 26 */ 0xFFFF, 0,
/* 0xFFFF -> 27 */ 0xFFFF, 0,
/* 0xFFFF -> 28 */ 0xFFFF, 0,
/* 0xFFFF -> 29 */ 0xFFFF, 0,
/* 764 -> 30 */ 764, 703,
/* 0xFFFF -> 31 */ 0xFFFF, 0,
/* 0xFFFF -> 32 */ 0xFFFF, 0,
/* 0xFFFF -> 33 */ 0xFFFF, 0,
/* 0xFFFF -> 34 */ 0xFFFF, 0,
/* 0xFFFF -> 35 */ 0xFFFF, 0,
/* 0xFFFF -> 36 */ 0xFFFF, 0,
/* 0xFFFF -> 37 */ 0xFFFF, 0,
/* 0xFFFF -> 38 */ 0xFFFF, 0,
/* 0xFFFF -> 39 */ 0xFFFF, 0,
/* 0xFFFF -> 40 */ 0xFFFF, 0,
/* 0xFFFF -> 41 */ 0xFFFF, 0,
/* 0xFFFF -> 42 */ 0xFFFF, 0,
/* 0xFFFF -> 43 */ 0xFFFF, 0,
/* 0xFFFF -> 44 */ 0xFFFF, 0,
/* 0xFFFF -> 45 */ 0xFFFF, 0,
/* 0xFFFF -> 46 */ 0xFFFF, 0,
/* 112 -> 47 */ 112, 696,
};
const xed_uint_t key = (xed_uint_t)iclass;
const xed_uint_t hash = ((11*key % 79) % 56);
if (hash <= 47) {
const xed_uint_t ek = lu_table[2*hash];
if (ek == key) {
const xed_uint_t v = lu_table[2*hash+1];
return (xed_iclass_enum_t) v;
}
}
return XED_ICLASS_INVALID;
}
XED_DLL_EXPORT xed_iclass_enum_t xed_repne_map(xed_iclass_enum_t iclass)
{
const xed_uint16_t lu_table[96] = {
/* 0xFFFF -> 0 */ 0xFFFF, 0,
/* 115 -> 1 */ 115, 706,
/* 113 -> 2 */ 113, 705,
/* 0xFFFF -> 3 */ 0xFFFF, 0,
/* 0xFFFF -> 4 */ 0xFFFF, 0,
/* 0xFFFF -> 5 */ 0xFFFF, 0,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xFFFF -> 44 */ 0xFFFF, 0,
/* 0xFFFF -> 45 */ 0xFFFF, 0,
/* 0xFFFF -> 46 */ 0xFFFF, 0,
/* 112 -> 47 */ 112, 704,
};
const xed_uint_t key = (xed_uint_t)iclass;
const xed_uint_t hash = ((11*key % 79) % 56);
if (hash <= 47) {
const xed_uint_t ek = lu_table[2*hash];
if (ek == key) {
const xed_uint_t v = lu_table[2*hash+1];
return (xed_iclass_enum_t) v;
}
}
return XED_ICLASS_INVALID;
}
XED_DLL_EXPORT xed_iclass_enum_t xed_rep_map(xed_iclass_enum_t iclass)
{
const xed_uint16_t lu_table[112] = {
/* 0 -> 0 */ 0, 737,
/* 0xFFFF -> 1 */ 0xFFFF, 0,
/* 0xFFFF -> 2 */ 0xFFFF, 0,
/* 819 -> 3 */ 819, 727,
/* 0xFFFF -> 4 */ 0xFFFF, 0,
/* 0xFFFF -> 5 */ 0xFFFF, 0,
/* 295 -> 6 */ 295, 714,
/* 0xFFFF -> 7 */ 0xFFFF, 0,
/* 0xFFFF -> 8 */ 0xFFFF, 0,
/* 403 -> 9 */ 403, 718,
/* 401 -> 10 */ 401, 716,
/* 0xFFFF -> 11 */ 0xFFFF, 0,
/* 0xFFFF -> 12 */ 0xFFFF, 0,
/* 0xFFFF -> 13 */ 0xFFFF, 0,
/* 820 -> 14 */ 820, 728,
/* 461 -> 15 */ 461, 722,
/* 0xFFFF -> 16 */ 0xFFFF, 0,
/* 0xFFFF -> 17 */ 0xFFFF, 0,
/* 0xFFFF -> 18 */ 0xFFFF, 0,
/* 0xFFFF -> 19 */ 0xFFFF, 0,
/* 0xFFFF -> 20 */ 0xFFFF, 0,
/* 402 -> 21 */ 402, 717,
/* 0xFFFF -> 22 */ 0xFFFF, 0,
/* 0xFFFF -> 23 */ 0xFFFF, 0,
/* 0xFFFF -> 24 */ 0xFFFF, 0,
/* 821 -> 25 */ 821, 729,
/* 0xFFFF -> 26 */ 0xFFFF, 0,
/* 498 -> 27 */ 498, 724,
/* 0xFFFF -> 28 */ 0xFFFF, 0,
/* 0xFFFF -> 29 */ 0xFFFF, 0,
/* 0xFFFF -> 30 */ 0xFFFF, 0,
/* 0xFFFF -> 31 */ 0xFFFF, 0,
/* 0xFFFF -> 32 */ 0xFFFF, 0,
/* 1741 -> 33 */ 1741, 738,
/* 0xFFFF -> 34 */ 0xFFFF, 0,
/* 0xFFFF -> 35 */ 0xFFFF, 0,
/* 822 -> 36 */ 822, 730,
/* 463 -> 37 */ 463, 723,
/* 499 -> 38 */ 499, 725,
/* 456 -> 39 */ 456, 720,
/* 0xFFFF -> 40 */ 0xFFFF, 0,
/* 291 -> 41 */ 291, 712,
/* 0xFFFF -> 42 */ 0xFFFF, 0,
/* 0xFFFF -> 43 */ 0xFFFF, 0,
/* 0xFFFF -> 44 */ 0xFFFF, 0,
/* 0xFFFF -> 45 */ 0xFFFF, 0,
/* 0xFFFF -> 46 */ 0xFFFF, 0,
/* 0xFFFF -> 47 */ 0xFFFF, 0,
/* 0xFFFF -> 48 */ 0xFFFF, 0,
/* 500 -> 49 */ 500, 726,
/* 457 -> 50 */ 457, 721,
/* 0xFFFF -> 51 */ 0xFFFF, 0,
/* 292 -> 52 */ 292, 713,
/* 0xFFFF -> 53 */ 0xFFFF, 0,
/* 0xFFFF -> 54 */ 0xFFFF, 0,
/* 400 -> 55 */ 400, 715,
};
const xed_uint_t key = (xed_uint_t)iclass;
const xed_uint_t hash = ((11*key % 79) % 56);
if (hash <= 55) {
const xed_uint_t ek = lu_table[2*hash];
if (ek == key) {
const xed_uint_t v = lu_table[2*hash+1];
return (xed_iclass_enum_t) v;
}
}
return XED_ICLASS_INVALID;
}
XED_DLL_EXPORT xed_iclass_enum_t xed_norep_map(xed_iclass_enum_t iclass)
{
const xed_uint16_t lu_table[43] = {
/* 696 -> 0 */ 112,
/* 697 -> 1 */ 113,
/* 698 -> 2 */ 115,
/* 699 -> 3 */ 117,
/* 700 -> 4 */ 761,
/* 701 -> 5 */ 762,
/* 702 -> 6 */ 763,
/* 703 -> 7 */ 764,
/* 704 -> 8 */ 112,
/* 705 -> 9 */ 113,
/* 706 -> 10 */ 115,
/* 707 -> 11 */ 117,
/* 708 -> 12 */ 761,
/* 709 -> 13 */ 762,
/* 710 -> 14 */ 763,
/* 711 -> 15 */ 764,
/* 712 -> 16 */ 291,
/* 713 -> 17 */ 292,
/* 714 -> 18 */ 295,
/* 715 -> 19 */ 400,
/* 716 -> 20 */ 401,
/* 717 -> 21 */ 402,
/* 718 -> 22 */ 403,
/* 719 -> 23 */ 0,
/* 720 -> 24 */ 456,
/* 721 -> 25 */ 457,
/* 722 -> 26 */ 461,
/* 723 -> 27 */ 463,
/* 724 -> 28 */ 498,
/* 725 -> 29 */ 499,
/* 726 -> 30 */ 500,
/* 727 -> 31 */ 819,
/* 728 -> 32 */ 820,
/* 729 -> 33 */ 821,
/* 730 -> 34 */ 822,
/* 731 -> 35 */ 0,
/* 732 -> 36 */ 0,
/* 733 -> 37 */ 0,
/* 734 -> 38 */ 0,
/* 735 -> 39 */ 0,
/* 736 -> 40 */ 0,
/* 737 -> 41 */ 0,
/* 738 -> 42 */ 1741,
};
const xed_uint_t key = (xed_uint_t)iclass;
const xed_uint_t hash = key - 696;
if (hash <= 42) {
const xed_uint_t v = lu_table[hash];
return (xed_iclass_enum_t) v;
}
return XED_ICLASS_INVALID;
}