github.com/shogo82148/std@v1.22.1-0.20240327122250-4e474527810c/hash/crc32/gen_const_ppc64le.go (about)

     1  // Copyright 2017 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  //go:build ignore
     6  
     7  // Generate the constant table associated with the poly used by the
     8  // vpmsumd crc32 algorithm.
     9  //
    10  // go run gen_const_ppc64le.go
    11  //
    12  // generates crc32_table_ppc64le.s
    13  
    14  // The following is derived from code written by Anton Blanchard
    15  // <anton@au.ibm.com> found at https://github.com/antonblanchard/crc32-vpmsum.
    16  // The original is dual licensed under GPL and Apache 2.  As the copyright holder
    17  // for the work, IBM has contributed this new work under the golang license.
    18  
    19  // This code was written in Go based on the original C implementation.
    20  
    21  // This is a tool needed to generate the appropriate constants needed for
    22  // the vpmsum algorithm.  It is included to generate new constant tables if
    23  // new polynomial values are included in the future.
    24  
    25  package main