blob: 8686c0122688d95b3610e7c07fdb159c152cc34b (
plain)
1
2
3
4
5
6
7
8
9
|
// Copyright 2024 syzkaller project authors. All rights reserved.
// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
package arm64
func extractBits(from uint32, start, size uint) uint32 {
mask := uint32((1 << size) - 1)
return (from >> (start - size + 1)) & mask
}
|