github.com/psiphon-labs/psiphon-tunnel-core@v2.0.28+incompatible/psiphon/common/crypto/internal/poly1305/bits_go1.13.go (about)

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