github.com/bytedance/gopkg@v0.0.0-20240514070511-01b2cbcf35e1/util/xxhash3/consts.go (about) 1 // Copyright 2021 ByteDance Inc. 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://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, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 package xxhash3 16 17 import "unsafe" 18 19 const ( 20 _stripe = 64 21 _block = 1024 22 23 prime32_1 = 2654435761 24 prime32_2 = 2246822519 25 prime32_3 = 3266489917 26 27 prime64_1 = 11400714785074694791 28 prime64_2 = 14029467366897019727 29 prime64_3 = 1609587929392839161 30 prime64_4 = 9650029242287828579 31 prime64_5 = 2870177450012600261 32 33 xsecret_000 uint64 = 0xbe4ba423396cfeb8 34 xsecret_008 uint64 = 0x1cad21f72c81017c 35 xsecret_016 uint64 = 0xdb979083e96dd4de 36 xsecret_024 uint64 = 0x1f67b3b7a4a44072 37 xsecret_032 uint64 = 0x78e5c0cc4ee679cb 38 xsecret_040 uint64 = 0x2172ffcc7dd05a82 39 xsecret_048 uint64 = 0x8e2443f7744608b8 40 xsecret_056 uint64 = 0x4c263a81e69035e0 41 xsecret_064 uint64 = 0xcb00c391bb52283c 42 xsecret_072 uint64 = 0xa32e531b8b65d088 43 xsecret_080 uint64 = 0x4ef90da297486471 44 xsecret_088 uint64 = 0xd8acdea946ef1938 45 xsecret_096 uint64 = 0x3f349ce33f76faa8 46 xsecret_104 uint64 = 0x1d4f0bc7c7bbdcf9 47 xsecret_112 uint64 = 0x3159b4cd4be0518a 48 xsecret_120 uint64 = 0x647378d9c97e9fc8 49 xsecret_128 uint64 = 0xc3ebd33483acc5ea 50 xsecret_136 uint64 = 0xeb6313faffa081c5 51 xsecret_144 uint64 = 0x49daf0b751dd0d17 52 xsecret_152 uint64 = 0x9e68d429265516d3 53 xsecret_160 uint64 = 0xfca1477d58be162b 54 xsecret_168 uint64 = 0xce31d07ad1b8f88f 55 xsecret_176 uint64 = 0x280416958f3acb45 56 xsecret_184 uint64 = 0x7e404bbbcafbd7af 57 58 xsecret_011 uint64 = 0x6dd4de1cad21f72c 59 xsecret_019 uint64 = 0xa44072db979083e9 60 xsecret_027 uint64 = 0xe679cb1f67b3b7a4 61 xsecret_035 uint64 = 0xd05a8278e5c0cc4e 62 xsecret_043 uint64 = 0x4608b82172ffcc7d 63 xsecret_051 uint64 = 0x9035e08e2443f774 64 xsecret_059 uint64 = 0x52283c4c263a81e6 65 xsecret_067 uint64 = 0x65d088cb00c391bb 66 67 xsecret_103 uint64 = 0x4f0bc7c7bbdcf93f 68 xsecret_111 uint64 = 0x59b4cd4be0518a1d 69 xsecret_119 uint64 = 0x7378d9c97e9fc831 70 xsecret_127 uint64 = 0xebd33483acc5ea64 71 72 xsecret_117 uint64 = 0xd9c97e9fc83159b4 73 xsecret_125 uint64 = 0x3483acc5ea647378 74 xsecret_133 uint64 = 0xfaffa081c5c3ebd3 75 xsecret_141 uint64 = 0xb751dd0d17eb6313 76 xsecret_149 uint64 = 0x29265516d349daf0 77 xsecret_157 uint64 = 0x7d58be162b9e68d4 78 xsecret_165 uint64 = 0x7ad1b8f88ffca147 79 xsecret_173 uint64 = 0x958f3acb45ce31d0 80 81 xsecret32_000 uint32 = 0xbe4ba423 82 xsecret32_004 uint32 = 0x396cfeb8 83 xsecret32_008 uint32 = 0x1cad21f7 84 xsecret32_012 uint32 = 0x2c81017c 85 ) 86 87 var xsecret = unsafe.Pointer(&[192]uint8{ 88 /* 0 */ 0xb8, 0xfe, 0x6c, 0x39, 0x23, 0xa4, 0x4b, 0xbe, 0x7c, 0x01, 0x81, 0x2c, 0xf7, 0x21, 0xad, 0x1c, 89 /* 16 */ 0xde, 0xd4, 0x6d, 0xe9, 0x83, 0x90, 0x97,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