Source file test/fixedbugs/issue79887.go

     1  // build
     2  
     3  // Copyright 2026 The Go 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  package a
     8  
     9  import "math/bits"
    10  
    11  //go:noinline
    12  func add(p, q, x, y uint64) uint64 {
    13  	c := uint64(0)
    14  	if p < q {
    15  		c = 1
    16  	}
    17  	s, _ := bits.Add64(x, y, c)
    18  	return s
    19  }
    20  
    21  //go:noinline
    22  func sub(p, q, x, y uint64) uint64 {
    23  	c := uint64(0)
    24  	if p < q {
    25  		c = 1
    26  	}
    27  	s, _ := bits.Sub64(x, y, c)
    28  	return s
    29  }
    30  

View as plain text