Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 34 for Size_ (0.04 sec)

  1. src/reflect/type.go

    	array.Elem = typ
    	array.PtrToThis = 0
    	if typ.Size_ > 0 {
    		max := ^uintptr(0) / typ.Size_
    		if uintptr(length) > max {
    			panic("reflect.ArrayOf: array size would exceed virtual address space")
    		}
    	}
    	array.Size_ = typ.Size_ * uintptr(length)
    	if length > 0 && typ.Pointers() {
    		array.PtrBytes = typ.Size_*uintptr(length-1) + typ.PtrBytes
    	}
    	array.Align_ = typ.Align_
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 85.5K bytes
    - Viewed (0)
  2. src/runtime/chan.go

    func makechan(t *chantype, size int) *hchan {
    	elem := t.Elem
    
    	// compiler checks this but be safe.
    	if elem.Size_ >= 1<<16 {
    		throw("makechan: invalid channel element type")
    	}
    	if hchanSize%maxAlign != 0 || elem.Align_ > maxAlign {
    		throw("makechan: bad alignment")
    	}
    
    	mem, overflow := math.MulUintptr(elem.Size_, uintptr(size))
    	if overflow || mem > maxAlloc-hchanSize || size < 0 {
    		panic(plainError("makechan: size out of range"))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:50 UTC 2024
    - 25.9K bytes
    - Viewed (0)
  3. src/runtime/iface.go

    		raceReadObjectPC(t, v, getcallerpc(), abi.FuncPCABIInternal(convTnoptr))
    	}
    	if msanenabled {
    		msanread(v, t.Size_)
    	}
    	if asanenabled {
    		asanread(v, t.Size_)
    	}
    
    	x := mallocgc(t.Size_, t, false)
    	memmove(x, v, t.Size_)
    	return x
    }
    
    func convT16(val uint16) (x unsafe.Pointer) {
    	if val < uint16(len(staticuint64s)) {
    		x = unsafe.Pointer(&staticuint64s[val])
    		if goarch.BigEndian {
    			x = add(x, 6)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 22.5K bytes
    - Viewed (0)
  4. src/runtime/arena.go

    func userArenaHeapBitsSetSliceType(typ *_type, n int, ptr unsafe.Pointer, s *mspan) {
    	mem, overflow := math.MulUintptr(typ.Size_, uintptr(n))
    	if overflow || n < 0 || mem > maxAlloc {
    		panic(plainError("runtime: allocation size out of range"))
    	}
    	for i := 0; i < n; i++ {
    		userArenaHeapBitsSetType(typ, add(ptr, uintptr(i)*typ.Size_), s)
    	}
    }
    
    // userArenaHeapBitsSetType is the equivalent of heapSetType but for
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:44:56 UTC 2024
    - 37.9K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/stablehlo/transforms/hlo_matchers.cc

        assert(axis >= 0);
        assert(index[axis] == 0);
        offset_ = IndexToOffset(shape, index);
        stride_ = StrideForAxis(shape, axis);
        size_ = shape[axis];
      }
    
      // Returns the size of the 1-d slice across the tensor.
      int64_t size() const { return size_; }
    
      // Calculates the next index in a tensor excluding a specified axis.
      //
      // Returns the next index where one exists.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  6. src/runtime/alg.go

    	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:
    		return f64hash(p, h)
    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. src/runtime/checkptr.go

    	}
    
    	// Check that (*[n]elem)(p) doesn't straddle multiple heap objects.
    	// TODO(mdempsky): Fix #46938 so we don't need to worry about overflow here.
    	if checkptrStraddles(p, n*elem.Size_) {
    		throw("checkptr: converted pointer straddles multiple allocations")
    	}
    }
    
    // checkptrStraddles reports whether the first size-bytes of memory
    // addressed by ptr is known to straddle more than one Go allocation.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:55 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  8. src/runtime/stkframe.go

    	}
    	if mod == nil {
    		throw("methodValueCallFrameObjs is not in a module")
    	}
    	methodValueCallFrameObjs[0] = stackObjectRecord{
    		off:       -int32(alignUp(abiRegArgsType.Size_, 8)), // It's always the highest address local.
    		size:      int32(abiRegArgsType.Size_),
    		_ptrdata:  int32(abiRegArgsType.PtrBytes),
    		gcdataoff: uint32(uintptr(unsafe.Pointer(abiRegArgsType.GCData)) - mod.rodata),
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 15:10:48 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  9. src/runtime/export_debug_test.go

    		return nil, plainError("args must be a pointer or nil")
    	}
    	argp := a.data
    	var argSize uintptr
    	if argp != nil {
    		argSize = (*ptrtype)(unsafe.Pointer(a._type)).Elem.Size_
    	}
    
    	h := new(debugCallHandler)
    	h.gp = gp
    	// gp may not be running right now, but we can still get the M
    	// it will run on since it's locked.
    	h.mp = gp.lockedm.ptr()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:41:45 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  10. testing/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/internal/gtest-internal.h

        if (relation_to_source_ == kCopy)
          delete[] array_;
      }
    
      // STL-style container methods.
      size_t size() const { return size_; }
      const_iterator begin() const { return array_; }
      const_iterator end() const { return array_ + size_; }
      bool operator==(const NativeArray& rhs) const {
        return size() == rhs.size() &&
            ArrayEq(begin(), size(), rhs.begin());
      }
    
     private:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 43.1K bytes
    - Viewed (0)
Back to top