// Copyright 2017 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// ARM64-specific hardware-assisted CRC32 algorithms. See crc32.go for a
// description of the interface that each architecture-specific file
// implements.

package crc32

import 

func ( uint32,  []byte) uint32
func ( uint32,  []byte) uint32

func () bool {
	return cpu.ARM64.HasCRC32
}

func () {
	if !cpu.ARM64.HasCRC32 {
		panic("arch-specific crc32 instruction for Catagnoli not available")
	}
}

func ( uint32,  []byte) uint32 {
	if !cpu.ARM64.HasCRC32 {
		panic("arch-specific crc32 instruction for Castagnoli not available")
	}

	return ^castagnoliUpdate(^, )
}

func () bool {
	return cpu.ARM64.HasCRC32
}

func () {
	if !cpu.ARM64.HasCRC32 {
		panic("arch-specific crc32 instruction for IEEE not available")
	}
}

func ( uint32,  []byte) uint32 {
	if !cpu.ARM64.HasCRC32 {
		panic("arch-specific crc32 instruction for IEEE not available")
	}

	return ^ieeeUpdate(^, )
}