Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 2,162 for size0 (0.06 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. src/runtime/alg.go

    //go:linkname typehash
    func typehash(t *_type, p unsafe.Pointer, h uintptr) uintptr {
    	if t.TFlag&abi.TFlagRegularMemory != 0 {
    		// Handle ptr sizes specially, see issue 37086.
    		switch t.Size_ {
    		case 4:
    			return memhash32(p, h)
    		case 8:
    			return memhash64(p, h)
    		default:
    			return memhash(p, h, t.Size_)
    		}
    	}
    	switch t.Kind_ & abi.KindMask {
    	case abi.Float32:
    		return f32hash(p, h)
    	case abi.Float64:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/experimental/remat/rematerializer_test.cc

        // where the 'dotted' intermediates have size `extra_size`. This
        // allows for testing the effect of window sizes.
        explicit RainbowRemat(const std::vector<std::vector<int>>& sizes,
                              int extra_ops = 0, SizeT extra_size = 0) {
          for (const auto& rainbow : sizes) {
            int tensor = 0;
            int op = 0;
            for (const auto& size : rainbow) {
              for (int i = 0; i < extra_ops; ++i) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 14 20:57:44 UTC 2023
    - 19.1K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. staging/src/k8s.io/apiserver/pkg/server/options/etcd.go

    	}
    
    	if f.Options.EnableWatchCache {
    		sizes, err := ParseWatchCacheSizes(f.Options.WatchCacheSizes)
    		if err != nil {
    			return generic.RESTOptions{}, err
    		}
    		size, ok := sizes[resource]
    		if ok && size > 0 {
    			klog.Warningf("Dropping watch-cache-size for %v - watchCache size is now dynamic", resource)
    		}
    		if ok && size <= 0 {
    			klog.V(3).InfoS("Not using watch cache", "resource", resource)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 15:02:16 UTC 2024
    - 20K bytes
    - Viewed (0)
Back to top