github.com/google/syzkaller@v0.0.0-20240517125934-c0f1611a36d6/pkg/ifuzz/arm64/util.go (about) 1 // Copyright 2024 syzkaller project authors. All rights reserved. 2 // Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. 3 4 package arm64 5 6 func extractBits(from uint32, start, size uint) uint32 { 7 mask := uint32((1 << size) - 1) 8 return (from >> (start - size + 1)) & mask 9 }