go/src/runtime/memmove_test.go

func TestMemmove(t *testing.T) {}

func TestMemmoveAlias(t *testing.T) {}

func TestMemmoveLarge0x180000(t *testing.T) {}

func TestMemmoveOverlapLarge0x120000(t *testing.T) {}

func testSize(t *testing.T, size int) {}

func testOverlap(t *testing.T, size int) {}

// Forward copy.
func copyref(dst, src []byte) {}

// Backwards copy
func copybw(dst, src []byte) {}

// Returns offset of difference
func matchLen(a, b []byte, max int) int {}

func cmpb(a, b []byte) int {}

// Ensure that memmove writes pointers atomically, so the GC won't
// observe a partially updated pointer.
func TestMemmoveAtomicity(t *testing.T) {}

func benchmarkSizes(b *testing.B, sizes []int, fn func(b *testing.B, n int)) {}

var bufSizes

var bufSizesOverlap

func BenchmarkMemmove(b *testing.B) {}

func BenchmarkMemmoveOverlap(b *testing.B) {}

func BenchmarkMemmoveUnalignedDst(b *testing.B) {}

func BenchmarkMemmoveUnalignedDstOverlap(b *testing.B) {}

func BenchmarkMemmoveUnalignedSrc(b *testing.B) {}

func BenchmarkMemmoveUnalignedSrcDst(b *testing.B) {}

func BenchmarkMemmoveUnalignedSrcOverlap(b *testing.B) {}

func TestMemclr(t *testing.T) {}

func BenchmarkMemclr(b *testing.B) {}

func BenchmarkMemclrUnaligned(b *testing.B) {}

func BenchmarkGoMemclr(b *testing.B) {}

func BenchmarkMemclrRange(b *testing.B) {}

func BenchmarkClearFat7(b *testing.B) {}

func BenchmarkClearFat8(b *testing.B) {}

func BenchmarkClearFat11(b *testing.B) {}

func BenchmarkClearFat12(b *testing.B) {}

func BenchmarkClearFat13(b *testing.B) {}

func BenchmarkClearFat14(b *testing.B) {}

func BenchmarkClearFat15(b *testing.B) {}

func BenchmarkClearFat16(b *testing.B) {}

func BenchmarkClearFat24(b *testing.B) {}

func BenchmarkClearFat32(b *testing.B) {}

func BenchmarkClearFat40(b *testing.B) {}

func BenchmarkClearFat48(b *testing.B) {}

func BenchmarkClearFat56(b *testing.B) {}

func BenchmarkClearFat64(b *testing.B) {}

func BenchmarkClearFat72(b *testing.B) {}

func BenchmarkClearFat128(b *testing.B) {}

func BenchmarkClearFat256(b *testing.B) {}

func BenchmarkClearFat512(b *testing.B) {}

func BenchmarkClearFat1024(b *testing.B) {}

func BenchmarkClearFat1032(b *testing.B) {}

func BenchmarkClearFat1040(b *testing.B) {}

func BenchmarkCopyFat7(b *testing.B) {}

func BenchmarkCopyFat8(b *testing.B) {}

func BenchmarkCopyFat11(b *testing.B) {}

func BenchmarkCopyFat12(b *testing.B) {}

func BenchmarkCopyFat13(b *testing.B) {}

func BenchmarkCopyFat14(b *testing.B) {}

func BenchmarkCopyFat15(b *testing.B) {}

func BenchmarkCopyFat16(b *testing.B) {}

func BenchmarkCopyFat24(b *testing.B) {}

func BenchmarkCopyFat32(b *testing.B) {}

func BenchmarkCopyFat64(b *testing.B) {}

func BenchmarkCopyFat72(b *testing.B) {}

func BenchmarkCopyFat128(b *testing.B) {}

func BenchmarkCopyFat256(b *testing.B) {}

func BenchmarkCopyFat512(b *testing.B) {}

func BenchmarkCopyFat520(b *testing.B) {}

func BenchmarkCopyFat1024(b *testing.B) {}

func BenchmarkCopyFat1032(b *testing.B) {}

func BenchmarkCopyFat1040(b *testing.B) {}

// BenchmarkIssue18740 ensures that memmove uses 4 and 8 byte load/store to move 4 and 8 bytes.
// It used to do 2 2-byte load/stores, which leads to a pipeline stall
// when we try to read the result with one 4-byte load.
func BenchmarkIssue18740(b *testing.B) {}

var memclrSink

func BenchmarkMemclrKnownSize1(b *testing.B) {}

func BenchmarkMemclrKnownSize2(b *testing.B) {}

func BenchmarkMemclrKnownSize4(b *testing.B) {}

func BenchmarkMemclrKnownSize8(b *testing.B) {}

func BenchmarkMemclrKnownSize16(b *testing.B) {}

func BenchmarkMemclrKnownSize32(b *testing.B) {}

func BenchmarkMemclrKnownSize64(b *testing.B) {}

func BenchmarkMemclrKnownSize112(b *testing.B) {}

func BenchmarkMemclrKnownSize128(b *testing.B) {}

func BenchmarkMemclrKnownSize192(b *testing.B) {}

func BenchmarkMemclrKnownSize248(b *testing.B) {}

func BenchmarkMemclrKnownSize256(b *testing.B) {}

func BenchmarkMemclrKnownSize512(b *testing.B) {}

func BenchmarkMemclrKnownSize1024(b *testing.B) {}

func BenchmarkMemclrKnownSize4096(b *testing.B) {}

func BenchmarkMemclrKnownSize512KiB(b *testing.B) {}