X7ROOT File Manager
Current Path:
/opt/golang/1.19.4/src/cmd/compile/internal/ir
opt
/
golang
/
1.19.4
/
src
/
cmd
/
compile
/
internal
/
ir
/
📁
..
📄
bitset.go
(1.43 KB)
📄
cfg.go
(1.13 KB)
📄
class_string.go
(755 B)
📄
const.go
(2.15 KB)
📄
copy.go
(2.7 KB)
📄
dump.go
(6.21 KB)
📄
expr.go
(27.38 KB)
📄
fmt.go
(27.33 KB)
📄
func.go
(15.67 KB)
📄
ir.go
(171 B)
📄
mini.go
(2.8 KB)
📄
mknode.go
(5.09 KB)
📄
name.go
(17.32 KB)
📄
node.go
(17.99 KB)
📄
node_gen.go
(28.72 KB)
📄
op_string.go
(5.07 KB)
📄
package.go
(757 B)
📄
scc.go
(4.2 KB)
📄
sizeof_test.go
(804 B)
📄
stmt.go
(9.43 KB)
📄
symtab.go
(1.73 KB)
📄
type.go
(2.65 KB)
📄
val.go
(2.86 KB)
📄
visit.go
(5.41 KB)
Editing: bitset.go
// Copyright 2017 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package ir type bitset8 uint8 func (f *bitset8) set(mask uint8, b bool) { if b { *(*uint8)(f) |= mask } else { *(*uint8)(f) &^= mask } } func (f bitset8) get2(shift uint8) uint8 { return uint8(f>>shift) & 3 } // set2 sets two bits in f using the bottom two bits of b. func (f *bitset8) set2(shift uint8, b uint8) { // Clear old bits. *(*uint8)(f) &^= 3 << shift // Set new bits. *(*uint8)(f) |= uint8(b&3) << shift } type bitset16 uint16 func (f *bitset16) set(mask uint16, b bool) { if b { *(*uint16)(f) |= mask } else { *(*uint16)(f) &^= mask } } type bitset32 uint32 func (f *bitset32) set(mask uint32, b bool) { if b { *(*uint32)(f) |= mask } else { *(*uint32)(f) &^= mask } } func (f bitset32) get2(shift uint8) uint8 { return uint8(f>>shift) & 3 } // set2 sets two bits in f using the bottom two bits of b. func (f *bitset32) set2(shift uint8, b uint8) { // Clear old bits. *(*uint32)(f) &^= 3 << shift // Set new bits. *(*uint32)(f) |= uint32(b&3) << shift } func (f bitset32) get3(shift uint8) uint8 { return uint8(f>>shift) & 7 } // set3 sets three bits in f using the bottom three bits of b. func (f *bitset32) set3(shift uint8, b uint8) { // Clear old bits. *(*uint32)(f) &^= 7 << shift // Set new bits. *(*uint32)(f) |= uint32(b&7) << shift }
Upload File
Create Folder