Source file test/fixedbugs/issue32680b.go

     1  // compile
     2  
     3  // Copyright 2019 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 p
     8  
     9  func hashBytesRaw(b0, b1, b2, b3, b7 byte) uint64 {
    10  	return (uint64(b0) | uint64(b1)<<8 | uint64(b2)<<16 | uint64(b3)<<24)
    11  }
    12  
    13  func doStuff(data []byte) uint64 {
    14  	return hashBytesRaw(data[0], data[1], data[2], data[3], data[7])
    15  }
    16  

View as plain text