Debian Codegraph @

internal/asm/bench_gen.sh

raw symbols SCIP
1 #!/usr/bin/env bash
2
3 # Copyright ©2016 The Gonum Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style
5 # license that can be found in the LICENSE file.
6
7 cat c64/bench_test.go \
8 | gofmt -r 'complex(float32(n), float32(n)) -> float32(n)' \
9 | gofmt -r 'complex64 -> float32' \
10 | gofmt -r '1 + 1i -> 1' \
11 | gofmt -r '2 + 2i -> 2' \
12 | sed 's/C64/F32/g' \
13 | sed 's/c64/f32/g' \
14 > f32/bench_test.go
15
16 cat c64/bench_test.go \
17 | gofmt -r 'complex(float32(n), float32(n)) -> float64(n)' \
18 | gofmt -r 'complex64 -> float64' \
19 | gofmt -r '1 + 1i -> 1' \
20 | gofmt -r '2 + 2i -> 2' \
21 | sed 's/C64/F64/g' \
22 | sed 's/c64/f64/g' \
23 > f64/bench_test.go
24
25 cat c64/bench_test.go \
26 | gofmt -r 'float32 -> float64' \
27 | gofmt -r 'complex64 -> complex128' \
28 | sed 's/C64/C128/g' \
29 | sed 's/c64/c128/g' \
30 > c128/bench_test.go