1 // Copyright 2021 The Pigweed Authors 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); you may not 4 // use this file except in compliance with the License. You may obtain a copy of 5 // the License at 6 // 7 // https://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 11 // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 12 // License for the specific language governing permissions and limitations under 13 // the License. 14 15 // AUTOGENERATED - DO NOT EDIT 16 // 17 // This file was generated by generate_hash_macro.py. 18 // To make changes, update the script and run it to regenerate the files. 19 #pragma once 20 21 #include <stdint.h> 22 23 // 128-character version of the tokenizer hash function. 24 // 25 // The argument must be a string literal. It is concatenated with "" to ensure 26 // that this is the case. 27 // 28 // clang-format off 29 30 #define PW_TOKENIZER_65599_FIXED_LENGTH_128_HASH(str) \ 31 (uint32_t)(sizeof(str "") - 1 + /* The argument must be a string literal. */ \ 32 0x0001003fu * (uint8_t)str[0] + \ 33 0x007e0f81u * (uint8_t)( 1 < sizeof(str) ? str[ 1] : 0) + \ 34 0x2e86d0bfu * (uint8_t)( 2 < sizeof(str) ? str[ 2] : 0) + \ 35 0x43ec5f01u * (uint8_t)( 3 < sizeof(str) ? str[ 3] : 0) + \ 36 0x162c613fu * (uint8_t)( 4 < sizeof(str) ? str[ 4] : 0) + \ 37 0xd62aee81u * (uint8_t)( 5 < sizeof(str) ? str[ 5] : 0) + \ 38 0xa311b1bfu * (uint8_t)( 6 < sizeof(str) ? str[ 6] : 0) + \ 39 0xd319be01u * (uint8_t)( 7 < sizeof(str) ? str[ 7] : 0) + \ 40 0xb156c23fu * (uint8_t)( 8 < sizeof(str) ? str[ 8] : 0) + \ 41 0x6698cd81u * (uint8_t)( 9 < sizeof(str) ? str[ 9] : 0) + \ 42 0x0d1b92bfu * (uint8_t)( 10 < sizeof(str) ? str[ 10] : 0) + \ 43 0xcc881d01u * (uint8_t)( 11 < sizeof(str) ? str[ 11] : 0) + \ 44 0x7280233fu * (uint8_t)( 12 < sizeof(str) ? str[ 12] : 0) + \ 45 0x50c7ac81u * (uint8_t)( 13 < sizeof(str) ? str[ 13] : 0) + \ 46 0x8da473bfu * (uint8_t)( 14 < sizeof(str) ? str[ 14] : 0) + \ 47 0x4f377c01u * (uint8_t)( 15 < sizeof(str) ? str[ 15] : 0) + \ 48 0xfaa8843fu * (uint8_t)( 16 < sizeof(str) ? str[ 16] : 0) + \ 49 0x33b78b81u * (uint8_t)( 17 < sizeof(str) ? str[ 17] : 0) + \ 50 0x45ac54bfu * (uint8_t)( 18 < sizeof(str) ? str[ 18] : 0) + \ 51 0x7a27db01u * (uint8_t)( 19 < sizeof(str) ? str[ 19] : 0) + \ 52 0xeacfe53fu * (uint8_t)( 20 < sizeof(str) ? str[ 20] : 0) + \ 53 0xae686a81u * (uint8_t)( 21 < sizeof(str) ? str[ 21] : 0) + \ 54 0x563335bfu * (uint8_t)( 22 < sizeof(str) ? str[ 22] : 0) + \ 55 0x6c593a01u * (uint8_t)( 23 < sizeof(str) ? str[ 23] : 0) + \ 56 0xe3f6463fu * (uint8_t)( 24 < sizeof(str) ? str[ 24] : 0) + \ 57 0x5fda4981u * (uint8_t)( 25 < sizeof(str) ? str[ 25] : 0) + \ 58 0xe03916bfu * (uint8_t)( 26 < sizeof(str) ? str[ 26] : 0) + \ 59 0x44cb9901u * (uint8_t)( 27 < sizeof(str) ? str[ 27] : 0) + \ 60 0x871ba73fu * (uint8_t)( 28 < sizeof(str) ? str[ 28] : 0) + \ 61 0xe70d2881u * (uint8_t)( 29 < sizeof(str) ? str[ 29] : 0) + \ 62 0x04bdf7bfu * (uint8_t)( 30 < sizeof(str) ? str[ 30] : 0) + \ 63 0x227ef801u * (uint8_t)( 31 < sizeof(str) ? str[ 31] : 0) + \ 64 0x7540083fu * (uint8_t)( 32 < sizeof(str) ? str[ 32] : 0) + \ 65 0xe3010781u * (uint8_t)( 33 < sizeof(str) ? str[ 33] : 0) + \ 66 0xe4c1d8bfu * (uint8_t)( 34 < sizeof(str) ? str[ 34] : 0) + \ 67 0x24735701u * (uint8_t)( 35 < sizeof(str) ? str[ 35] : 0) + \ 68 0x4f63693fu * (uint8_t)( 36 < sizeof(str) ? str[ 36] : 0) + \ 69 0xf2b5e681u * (uint8_t)( 37 < sizeof(str) ? str[ 37] : 0) + \ 70 0xa144b9bfu * (uint8_t)( 38 < sizeof(str) ? str[ 38] : 0) + \ 71 0x69a8b601u * (uint8_t)( 39 < sizeof(str) ? str[ 39] : 0) + \ 72 0xb685ca3fu * (uint8_t)( 40 < sizeof(str) ? str[ 40] : 0) + \ 73 0xb52bc581u * (uint8_t)( 41 < sizeof(str) ? str[ 41] : 0) + \ 74 0x5b469abfu * (uint8_t)( 42 < sizeof(str) ? str[ 42] : 0) + \ 75 0x111f1501u * (uint8_t)( 43 < sizeof(str) ? str[ 43] : 0) + \ 76 0x4ba72b3fu * (uint8_t)( 44 < sizeof(str) ? str[ 44] : 0) + \ 77 0xc962a481u * (uint8_t)( 45 < sizeof(str) ? str[ 45] : 0) + \ 78 0x33c77bbfu * (uint8_t)( 46 < sizeof(str) ? str[ 46] : 0) + \ 79 0x39d67401u * (uint8_t)( 47 < sizeof(str) ? str[ 47] : 0) + \ 80 0xafc78c3fu * (uint8_t)( 48 < sizeof(str) ? str[ 48] : 0) + \ 81 0xce5a8381u * (uint8_t)( 49 < sizeof(str) ? str[ 49] : 0) + \ 82 0x4bc75cbfu * (uint8_t)( 50 < sizeof(str) ? str[ 50] : 0) + \ 83 0x02ced301u * (uint8_t)( 51 < sizeof(str) ? str[ 51] : 0) + \ 84 0x83e6ed3fu * (uint8_t)( 52 < sizeof(str) ? str[ 52] : 0) + \ 85 0x63136281u * (uint8_t)( 53 < sizeof(str) ? str[ 53] : 0) + \ 86 0xc4463dbfu * (uint8_t)( 54 < sizeof(str) ? str[ 54] : 0) + \ 87 0x8b083201u * (uint8_t)( 55 < sizeof(str) ? str[ 55] : 0) + \ 88 0x69054e3fu * (uint8_t)( 56 < sizeof(str) ? str[ 56] : 0) + \ 89 0x268d4181u * (uint8_t)( 57 < sizeof(str) ? str[ 57] : 0) + \ 90 0xbe441ebfu * (uint8_t)( 58 < sizeof(str) ? str[ 58] : 0) + \ 91 0xf1829101u * (uint8_t)( 59 < sizeof(str) ? str[ 59] : 0) + \ 92 0x0022af3fu * (uint8_t)( 60 < sizeof(str) ? str[ 60] : 0) + \ 93 0xb7c82081u * (uint8_t)( 61 < sizeof(str) ? str[ 61] : 0) + \ 94 0x5ac0ffbfu * (uint8_t)( 62 < sizeof(str) ? str[ 62] : 0) + \ 95 0x553df001u * (uint8_t)( 63 < sizeof(str) ? str[ 63] : 0) + \ 96 0xea3f103fu * (uint8_t)( 64 < sizeof(str) ? str[ 64] : 0) + \ 97 0xb5c3ff81u * (uint8_t)( 65 < sizeof(str) ? str[ 65] : 0) + \ 98 0xbabce0bfu * (uint8_t)( 66 < sizeof(str) ? str[ 66] : 0) + \ 99 0xd53a4f01u * (uint8_t)( 67 < sizeof(str) ? str[ 67] : 0) + \ 100 0xc85a713fu * (uint8_t)( 68 < sizeof(str) ? str[ 68] : 0) + \ 101 0xbf80de81u * (uint8_t)( 69 < sizeof(str) ? str[ 69] : 0) + \ 102 0xff37c1bfu * (uint8_t)( 70 < sizeof(str) ? str[ 70] : 0) + \ 103 0x9077ae01u * (uint8_t)( 71 < sizeof(str) ? str[ 71] : 0) + \ 104 0x3b74d23fu * (uint8_t)( 72 < sizeof(str) ? str[ 72] : 0) + \ 105 0x73febd81u * (uint8_t)( 73 < sizeof(str) ? str[ 73] : 0) + \ 106 0x4931a2bfu * (uint8_t)( 74 < sizeof(str) ? str[ 74] : 0) + \ 107 0xa5f60d01u * (uint8_t)( 75 < sizeof(str) ? str[ 75] : 0) + \ 108 0xe48e333fu * (uint8_t)( 76 < sizeof(str) ? str[ 76] : 0) + \ 109 0x723d9c81u * (uint8_t)( 77 < sizeof(str) ? str[ 77] : 0) + \ 110 0xb9aa83bfu * (uint8_t)( 78 < sizeof(str) ? str[ 78] : 0) + \ 111 0x34b56c01u * (uint8_t)( 79 < sizeof(str) ? str[ 79] : 0) + \ 112 0x64a6943fu * (uint8_t)( 80 < sizeof(str) ? str[ 80] : 0) + \ 113 0x593d7b81u * (uint8_t)( 81 < sizeof(str) ? str[ 81] : 0) + \ 114 0x71a264bfu * (uint8_t)( 82 < sizeof(str) ? str[ 82] : 0) + \ 115 0x5bb5cb01u * (uint8_t)( 83 < sizeof(str) ? str[ 83] : 0) + \ 116 0x5cbdf53fu * (uint8_t)( 84 < sizeof(str) ? str[ 84] : 0) + \ 117 0xc7fe5a81u * (uint8_t)( 85 < sizeof(str) ? str[ 85] : 0) + \ 118 0x921945bfu * (uint8_t)( 86 < sizeof(str) ? str[ 86] : 0) + \ 119 0x39f72a01u * (uint8_t)( 87 < sizeof(str) ? str[ 87] : 0) + \ 120 0x6dd4563fu * (uint8_t)( 88 < sizeof(str) ? str[ 88] : 0) + \ 121 0x5d803981u * (uint8_t)( 89 < sizeof(str) ? str[ 89] : 0) + \ 122 0x3c0f26bfu * (uint8_t)( 90 < sizeof(str) ? str[ 90] : 0) + \ 123 0xee798901u * (uint8_t)( 91 < sizeof(str) ? str[ 91] : 0) + \ 124 0x38e9b73fu * (uint8_t)( 92 < sizeof(str) ? str[ 92] : 0) + \ 125 0xb8c31881u * (uint8_t)( 93 < sizeof(str) ? str[ 93] : 0) + \ 126 0x908407bfu * (uint8_t)( 94 < sizeof(str) ? str[ 94] : 0) + \ 127 0x983ce801u * (uint8_t)( 95 < sizeof(str) ? str[ 95] : 0) + \ 128 0x5efe183fu * (uint8_t)( 96 < sizeof(str) ? str[ 96] : 0) + \ 129 0x78c6f781u * (uint8_t)( 97 < sizeof(str) ? str[ 97] : 0) + \ 130 0xb077e8bfu * (uint8_t)( 98 < sizeof(str) ? str[ 98] : 0) + \ 131 0x56414701u * (uint8_t)( 99 < sizeof(str) ? str[ 99] : 0) + \ 132 0x8111793fu * (uint8_t)(100 < sizeof(str) ? str[100] : 0) + \ 133 0x3c8bd681u * (uint8_t)(101 < sizeof(str) ? str[101] : 0) + \ 134 0xbceac9bfu * (uint8_t)(102 < sizeof(str) ? str[102] : 0) + \ 135 0x4786a601u * (uint8_t)(103 < sizeof(str) ? str[103] : 0) + \ 136 0x4023da3fu * (uint8_t)(104 < sizeof(str) ? str[104] : 0) + \ 137 0xa311b581u * (uint8_t)(105 < sizeof(str) ? str[105] : 0) + \ 138 0xd6dcaabfu * (uint8_t)(106 < sizeof(str) ? str[106] : 0) + \ 139 0x8b0d0501u * (uint8_t)(107 < sizeof(str) ? str[107] : 0) + \ 140 0x3d353b3fu * (uint8_t)(108 < sizeof(str) ? str[108] : 0) + \ 141 0x4b589481u * (uint8_t)(109 < sizeof(str) ? str[109] : 0) + \ 142 0x1f4d8bbfu * (uint8_t)(110 < sizeof(str) ? str[110] : 0) + \ 143 0x3fd46401u * (uint8_t)(111 < sizeof(str) ? str[111] : 0) + \ 144 0x19459c3fu * (uint8_t)(112 < sizeof(str) ? str[112] : 0) + \ 145 0xd4607381u * (uint8_t)(113 < sizeof(str) ? str[113] : 0) + \ 146 0xb73d6cbfu * (uint8_t)(114 < sizeof(str) ? str[114] : 0) + \ 147 0x84dcc301u * (uint8_t)(115 < sizeof(str) ? str[115] : 0) + \ 148 0x7554fd3fu * (uint8_t)(116 < sizeof(str) ? str[116] : 0) + \ 149 0xdd295281u * (uint8_t)(117 < sizeof(str) ? str[117] : 0) + \ 150 0xbfac4dbfu * (uint8_t)(118 < sizeof(str) ? str[118] : 0) + \ 151 0x79262201u * (uint8_t)(119 < sizeof(str) ? str[119] : 0) + \ 152 0xf2635e3fu * (uint8_t)(120 < sizeof(str) ? str[120] : 0) + \ 153 0x04b33181u * (uint8_t)(121 < sizeof(str) ? str[121] : 0) + \ 154 0x599a2ebfu * (uint8_t)(122 < sizeof(str) ? str[122] : 0) + \ 155 0x3bb08101u * (uint8_t)(123 < sizeof(str) ? str[123] : 0) + \ 156 0x3170bf3fu * (uint8_t)(124 < sizeof(str) ? str[124] : 0) + \ 157 0xe9fe1081u * (uint8_t)(125 < sizeof(str) ? str[125] : 0) + \ 158 0xa6070fbfu * (uint8_t)(126 < sizeof(str) ? str[126] : 0) + \ 159 0xeb7be001u * (uint8_t)(127 < sizeof(str) ? str[127] : 0)) 160 161 // clang-format on 162