- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 62 for Get2 (0.06 sec)
-
src/time/zoneinfo_read.go
// 42 off[4] // 46 name[namelen] // 46+namelen+xlen+fclen - next header // if get4(buf) != zcheader { break } meth := get2(buf[10:]) size := get4(buf[24:]) namelen := get2(buf[28:]) xlen := get2(buf[30:]) fclen := get2(buf[32:]) off := get4(buf[42:]) zname := buf[46 : 46+namelen] buf = buf[46+namelen+xlen+fclen:] if string(zname) != name { continue }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 19:57:43 UTC 2024 - 14.4K bytes - Viewed (0) -
src/cmd/compile/internal/ir/bitset.go
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 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 29 22:03:56 UTC 2022 - 734 bytes - Viewed (0) -
src/cmd/compile/internal/ir/mini.go
const ( miniTypecheckShift = 0 miniWalked = 1 << 2 // to prevent/catch re-walking ) func (n *miniNode) Typecheck() uint8 { return n.bits.get2(miniTypecheckShift) } func (n *miniNode) SetTypecheck(x uint8) { if x > 2 { panic(fmt.Sprintf("cannot SetTypecheck %d", x)) } n.bits.set2(miniTypecheckShift, x) } func (n *miniNode) Walked() bool { return n.bits&miniWalked != 0 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 31 22:09:44 UTC 2022 - 2.8K bytes - Viewed (0) -
tests/test_ambiguous_params.py
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Tue Dec 12 00:22:47 UTC 2023 - 2.1K bytes - Viewed (0) -
src/runtime/mwbbuf.go
} // getX returns space in the write barrier buffer to store X pointers. // getX will flush the buffer if necessary. Callers should use this as: // // buf := &getg().m.p.ptr().wbBuf // p := buf.get2() // p[0], p[1] = old, new // ... actual memory write ... // // The caller must ensure there are no preemption points during the // above sequence. There must be no preemption points while buf is in
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 8.1K bytes - Viewed (0) -
src/cmd/go/internal/cache/cache_test.go
} } for i := 0; i < n; i++ { id := ActionID(dummyID(i)) entry, err := c.Get(id) if err != nil { t.Fatalf("Get2(%x): %v", id, err) } if entry.OutputID != dummyID(i*99) || entry.Size != int64(i)*101 { t.Errorf("Get2(%x) = %x, %d, want %x, %d", id, entry.OutputID, entry.Size, dummyID(i*99), int64(i)*101) } } } func TestVerifyPanic(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 25 00:49:37 UTC 2023 - 7.4K bytes - Viewed (0) -
src/runtime/atomic_pointer.go
// See go.dev/issue/67401. // //go:linkname atomicwb //go:nosplit func atomicwb(ptr *unsafe.Pointer, new unsafe.Pointer) { slot := (*uintptr)(unsafe.Pointer(ptr)) buf := getg().m.p.ptr().wbBuf.get2() buf[0] = *slot buf[1] = uintptr(new) } // atomicstorep performs *ptr = new atomically and invokes a write barrier. // //go:nosplit func atomicstorep(ptr unsafe.Pointer, new unsafe.Pointer) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 16:25:21 UTC 2024 - 4K bytes - Viewed (0) -
test/chan/powser1.go
case it = <-dat[0]: out[0] = it dat[0] = nil case it = <-dat[1]: out[1] = it dat[1] = nil } } return out } // Get one rat from each of 2 demand channels func get2(in0 *dch, in1 *dch) []rat { return getn([]*dch{in0, in1}) } func copy(in *dch, out *dch) { for { <-out.req out.dat <- get(in) } } func repeat(dat rat, out *dch) { for {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 25 22:22:20 UTC 2020 - 12.7K bytes - Viewed (0) -
test/chan/powser2.go
case it = <-dat[0]: out[0] = it dat[0] = nil case it = <-dat[1]: out[1] = it dat[1] = nil } } return out } // Get one item from each of 2 demand channels func get2(in0 *dch, in1 *dch) []item { return getn([]*dch{in0, in1}) } func copy(in *dch, out *dch) { for { <-out.req out.dat <- get(in) } } func repeat(dat item, out *dch) { for {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 25 22:22:20 UTC 2020 - 13.3K bytes - Viewed (0) -
src/cmd/go/internal/cache/prog.go
writeMu sync.Mutex } // ProgCmd is a command that can be issued to a child process. // // If the interface needs to grow, we can add new commands or new versioned // commands like "get2". type ProgCmd string const ( cmdGet = ProgCmd("get") cmdPut = ProgCmd("put") cmdClose = ProgCmd("close") ) // ProgRequest is the JSON-encoded message that's sent from cmd/go to
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 14 19:23:25 UTC 2023 - 11.8K bytes - Viewed (0)