vitess.io/vitess@v0.16.2/go/mysql/collations/platform32.go (about)

     1  //go:build 386 || arm || mips || mipsle || wasm
     2  
     3  /*
     4  Copyright 2021 The Vitess Authors.
     5  
     6  Licensed under the Apache License, Version 2.0 (the "License");
     7  you may not use this file except in compliance with the License.
     8  You may obtain a copy of the License at
     9  
    10      http://www.apache.org/licenses/LICENSE-2.0
    11  
    12  Unless required by applicable law or agreed to in writing, software
    13  distributed under the License is distributed on an "AS IS" BASIS,
    14  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    15  See the License for the specific language governing permissions and
    16  limitations under the License.
    17  */
    18  
    19  package collations
    20  
    21  // 4-byte constants for hashing in 32-bit systems
    22  const (
    23  	m1 = 0x78bd642f
    24  	m2 = 0xa0b428db
    25  	m3 = 0x9c88c6e3
    26  	m4 = 0x75374cc3
    27  	m5 = 0xc47d124f
    28  )
    29  
    30  // Generate all the metadata used for collations from the JSON data dumped from MySQL
    31  // In 32 bit systems, do not use memory embedding, it's not worth it
    32  //go:generate go run ./tools/makecolldata/ --embed=false