github.com/jingcheng-WU/gonum@v0.9.1-0.20210323123734-f1a2a11a8f7b/stat/card/generate_64bit.sh (about)

     1  #!/bin/bash
     2  
     3  echo -e '// Code generated by "go generate github.com/jingcheng-WU/gonum/stat/card"; DO NOT EDIT.\n' > hll64.go
     4  < hll32.go cat \
     5  | gofmt -r 'HyperLogLog32 -> HyperLogLog64' \
     6  | gofmt -r 'Hash32 -> Hash64' \
     7  | gofmt -r 'Sum32 -> Sum64' \
     8  | gofmt -r 'rho32 -> rho64' \
     9  | gofmt -r 'uint32 -> uint64' \
    10  | gofmt -r 'bits.LeadingZeros32 -> bits.LeadingZeros64' \
    11  \
    12  | sed \
    13  	-e 's/\[4, 32\]/[4, 64]/' \
    14  	-e 's/rho32/rho64/' \
    15  	-e 's/HyperLogLog32/HyperLogLog64/g' \
    16  	-e 's/Hash32/Hash64/' \
    17  	-e 's/hash32/hash64/' \
    18  	-e 's/w32/w64/g' \
    19  >> hll64.go