1// Copyright 2019 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 go1.13 6// +build go1.13 7 8package poly1305 9 10import "math/bits" 11 12func bitsAdd64(x, y, carry uint64) (sum, carryOut uint64) { 13 return bits.Add64(x, y, carry) 14} 15 16func bitsSub64(x, y, borrow uint64) (diff, borrowOut uint64) { 17 return bits.Sub64(x, y, borrow) 18} 19 20func bitsMul64(x, y uint64) (hi, lo uint64) { 21 return bits.Mul64(x, y) 22} 23