- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 222 for size2 (0.08 sec)
-
src/unicode/utf8/utf8_test.go
} si += size1 } j-- for si = len(s); si > 0; { r1, size1 := DecodeLastRune(b[0:si]) r2, size2 := DecodeLastRuneInString(s[0:si]) if size1 != size2 { t.Errorf("DecodeLastRune/DecodeLastRuneInString(%q, %d) size mismatch %d/%d", s, si, size1, size2) return } if r1 != index[j].r { t.Errorf("DecodeLastRune(%q, %d) = %#04x, want %#04x", s, si, r1, index[j].r) return } if r2 != index[j].r {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 07 06:17:15 UTC 2022 - 16.2K bytes - Viewed (0) -
src/runtime/string.go
} var dum [4]byte size1 := 0 for _, r := range a { size1 += encoderune(dum[:], r) } s, b := rawstringtmp(buf, size1+3) size2 := 0 for _, r := range a { // check for race if size2 >= size1 { break } size2 += encoderune(b[size2:], r) } return s[:size2] } type stringStruct struct { str unsafe.Pointer len int
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:17:26 UTC 2024 - 13.4K bytes - Viewed (0) -
src/cmd/compile/internal/types/size.go
maxAlign = 8 } } fields := t.Fields() size := calcStructOffset(t, fields, 0) // For non-zero-sized structs which end in a zero-sized field, we // add an extra byte of padding to the type. This padding ensures // that taking the address of a zero-sized field can't manufacture a // pointer to the next object in the heap. See issue 9401. if size > 0 && fields[len(fields)-1].Type.width == 0 { size++ }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 15K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/remat/rematerializer.h
explicit MemSpec(int op_index = 0, SizeT size = 0) : op_index(op_index), size(size) {} }; static bool BySize(const MemSpec& a, const MemSpec& b) { return std::tie(a.size, a.op_index) < std::tie(b.size, b.op_index); } static bool ByOpIndex(const MemSpec& a, const MemSpec& b) { return std::tie(a.op_index, a.size) < std::tie(b.op_index, b.size); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 14 20:57:44 UTC 2023 - 12K bytes - Viewed (0) -
src/runtime/syscall_windows.go
// So basically we only support 386. panic("compileCallback: float arguments not supported") } if t.Size_ == 0 { // The Go ABI aligns for zero-sized types. p.dstStackSize = alignUp(p.dstStackSize, uintptr(t.Align_)) return } // In the C ABI, we're already on a word boundary. // Also, sub-word-sized fastcall register arguments // are stored to the least-significant bytes of the
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 20:12:46 UTC 2024 - 16.6K bytes - Viewed (0) -
src/runtime/slice.go
if width == 0 { return n } size := uintptr(n) * width if raceenabled { callerpc := getcallerpc() pc := abi.FuncPCABIInternal(slicecopy) racereadrangepc(fromPtr, size, callerpc, pc) racewriterangepc(toPtr, size, callerpc, pc) } if msanenabled { msanread(fromPtr, size) msanwrite(toPtr, size) } if asanenabled { asanread(fromPtr, size) asanwrite(toPtr, size) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 16:25:21 UTC 2024 - 12.2K bytes - Viewed (0) -
src/runtime/mbarrier.go
racewriterangepc(dstPtr, uintptr(n)*typ.Size_, callerpc, pc) racereadrangepc(srcPtr, uintptr(n)*typ.Size_, callerpc, pc) } if msanenabled { msanwrite(dstPtr, uintptr(n)*typ.Size_) msanread(srcPtr, uintptr(n)*typ.Size_) } if asanenabled { asanwrite(dstPtr, uintptr(n)*typ.Size_) asanread(srcPtr, uintptr(n)*typ.Size_) } if goexperiment.CgoCheck2 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 15.7K bytes - Viewed (0) -
cmd/encryption-v1.go
return 0, o.Size, 0, 0, 0, nil } // Assemble slice of (decrypted) part sizes in `sizes` var sizes []int64 var decObjSize int64 // decrypted total object size if o.isMultipart() { sizes = make([]int64, len(o.Parts)) for i, part := range o.Parts { var partSize uint64 partSize, err = sio.DecryptedSize(uint64(part.Size)) if err != nil { err = errObjectTampered
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu Jun 13 06:56:12 UTC 2024 - 37.1K bytes - Viewed (0) -
src/runtime/chan.go
func reflect_makechan(t *chantype, size int) *hchan { return makechan(t, size) } func makechan64(t *chantype, size int64) *hchan { if int64(int(size)) != size { panic(plainError("makechan: size out of range")) } return makechan(t, int(size)) } func makechan(t *chantype, size int) *hchan { elem := t.Elem // compiler checks this but be safe. if elem.Size_ >= 1<<16 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:16:50 UTC 2024 - 25.9K bytes - Viewed (0) -
src/reflect/abi.go
kind: kind, offset: offset + uintptr(i)*size, size: size, ireg: a.iregs, }) a.iregs++ } return true } // assignFloatN assigns n values to registers, each "size" bytes large, // from the data at [offset, offset+n*size) in memory. Each value at // [offset+i*size, offset+(i+1)*size) for i < n is assigned to the // next n floating-point registers. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 17:08:32 UTC 2024 - 15K bytes - Viewed (0)