Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 593 for elim (0.04 sec)

  1. src/runtime/chan.go

    	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 {
    		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 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:50 UTC 2024
    - 25.9K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/walk/select.go

    			init = append(init, typecheck.Stmt(r))
    		}
    
    		c = typecheck.ConvNop(c, types.Types[types.TUNSAFEPTR])
    		setField("c", c)
    		if !ir.IsBlank(elem) {
    			elem = typecheck.ConvNop(elem, types.Types[types.TUNSAFEPTR])
    			setField("elem", elem)
    		}
    
    		// TODO(mdempsky): There should be a cleaner way to
    		// handle this.
    		if base.Flag.Race {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 01:53:41 UTC 2023
    - 7.8K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/typecheck/subr.go

    	if src.IsPtr() && dst.IsPtr() && dst.Elem().NotInHeap() && !src.Elem().NotInHeap() {
    		why := fmt.Sprintf(":\n\t%v is incomplete (or unallocatable), but %v is not", dst.Elem(), src.Elem())
    		return ir.OXXX, why
    	}
    	// (b) Disallow string to []T where T is not-in-heap.
    	if src.IsString() && dst.IsSlice() && dst.Elem().NotInHeap() && (dst.Elem().Kind() == types.ByteType.Kind() || dst.Elem().Kind() == types.RuneType.Kind()) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 05 19:45:58 UTC 2023
    - 20.2K bytes
    - Viewed (0)
  4. common/scripts/setup_env.sh

        # Target explicitly set
        :
    elif [[ ${LOCAL_ARCH} == x86_64 ]]; then
        TARGET_ARCH=amd64
    elif [[ ${LOCAL_ARCH} == armv8* ]]; then
        TARGET_ARCH=arm64
    elif [[ ${LOCAL_ARCH} == arm64* ]]; then
        TARGET_ARCH=arm64
    elif [[ ${LOCAL_ARCH} == aarch64* ]]; then
        TARGET_ARCH=arm64
    elif [[ ${LOCAL_ARCH} == armv* ]]; then
        TARGET_ARCH=arm
    elif [[ ${LOCAL_ARCH} == s390x ]]; then
        TARGET_ARCH=s390x
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 14:37:27 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  5. src/internal/reflectlite/all_test.go

    func TestPtrSetNil(t *testing.T) {
    	var i int32 = 1234
    	ip := &i
    	vip := ValueOf(&ip)
    	vip.Elem().Set(Zero(vip.Elem().Type()))
    	if ip != nil {
    		t.Errorf("got non-nil (%d), want nil", *ip)
    	}
    }
    
    func TestMapSetNil(t *testing.T) {
    	m := make(map[string]int)
    	vm := ValueOf(&m)
    	vm.Elem().Set(Zero(vm.Elem().Type()))
    	if m != nil {
    		t.Errorf("got non-nil (%p), want nil", m)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 16 19:26:08 UTC 2023
    - 24.2K bytes
    - Viewed (0)
  6. platforms/software/testing-base/src/test/groovy/org/gradle/api/internal/tasks/testing/logging/StackTraceFilterTest.groovy

            spec.isSatisfiedBy(_) >> { StackTraceElement elem -> elem.methodName.size() > 10 }
    
            when:
            def filtered = filter.filter(trace)
    
            then:
            filtered.size() > 0
            filtered.size() < trace.size()
            filtered == trace.findAll { StackTraceElement elem -> elem.methodName.size() > 10 }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 2K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/TopKSelector.java

          // uncheckedCastNullableTToT is safe because bufferSize > 0.
          if (comparator.compare(elem, uncheckedCastNullableTToT(threshold)) > 0) {
            threshold = elem;
          }
          // uncheckedCastNullableTToT is safe because bufferSize > 0.
        } else if (comparator.compare(elem, uncheckedCastNullableTToT(threshold)) < 0) {
          // Otherwise, we can ignore elem; we've seen k better elements.
          buffer[bufferSize++] = elem;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/tests/tensor_list_ops_decomposition.mlir

      // CHECK-NEXT: %[[ELEM:.*]] = "tf.Reshape"(%[[SLICE]], %[[ELEM_SHAPE]]) : (tensor<1xf32>, tensor<0xi32>) -> tensor<f32>
      %get = "tf.TensorListGetItem"(%tl, %arg0, %elem_shape) : (tensor<!tf_type.variant<tensor<f32>>>, tensor<i32>, tensor<0xi32>) -> tensor<f32>
      // CHECK-NEXT: return %[[ELEM]] : tensor<f32>
      func.return %get: tensor<f32>
    }
    
    // -----
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 38.6K bytes
    - Viewed (0)
  9. test/fixedbugs/issue35073a.go

    package main
    
    import (
    	"reflect"
    	"unsafe"
    )
    
    func main() {
    	n := 10
    	m := make(map[string]string)
    
    	_ = unsafe.Pointer(reflect.ValueOf(&n).Elem().UnsafeAddr())
    	_ = unsafe.Pointer(reflect.ValueOf(&m).Elem().Pointer())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 20 15:12:49 UTC 2023
    - 497 bytes
    - Viewed (0)
  10. src/html/template/context.go

    	case stateJSDqStr, stateJSSqStr, stateJSTmplLit, stateJSRegexp:
    		return true
    	}
    	return false
    }
    
    // delim is the delimiter that will end the current HTML attribute.
    type delim uint8
    
    //go:generate stringer -type delim
    
    const (
    	// delimNone occurs outside any attribute.
    	delimNone delim = iota
    	// delimDoubleQuote occurs when a double quote (") closes the attribute.
    	delimDoubleQuote
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 16 03:29:27 UTC 2023
    - 9.4K bytes
    - Viewed (0)
Back to top