Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 250 for elem3 (0.04 sec)

  1. src/cmd/internal/pkgpattern/pkgpattern.go

    func replaceVendor(x, repl string) string {
    	if !strings.Contains(x, "vendor") {
    		return x
    	}
    	elem := strings.Split(x, "/")
    	for i := 0; i < len(elem)-1; i++ {
    		if elem[i] == "vendor" {
    			elem[i] = repl
    		}
    	}
    	return strings.Join(elem, "/")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 27 16:43:40 UTC 2022
    - 4.8K bytes
    - Viewed (0)
  2. test/fixedbugs/issue35073b.go

    	m := make(map[string]string) // ERROR "moved to heap: m" "make\(map\[string\]string\) escapes to heap"
    
    	_ = unsafe.Pointer(reflect.ValueOf(&n).Elem().UnsafeAddr()) // ERROR "inlining call"
    	_ = unsafe.Pointer(reflect.ValueOf(&m).Elem().Pointer())    // ERROR "inlining call"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 20 15:12:49 UTC 2023
    - 706 bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/testplugin/testdata/plugin2/plugin2.go

    	X string
    }
    
    type sameNameHolder struct {
    	F *sameNameReusedInPlugins
    }
    
    func UnexportedNameReuse() {
    	h := sameNameHolder{}
    	v := reflect.ValueOf(&h).Elem().Field(0)
    	newval := reflect.New(v.Type().Elem())
    	v.Set(newval)
    }
    
    func main() {
    	panic("plugin1.main called")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 796 bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/testplugin/testdata/plugin1/plugin1.go

    	X string
    }
    
    type sameNameHolder struct {
    	F *sameNameReusedInPlugins
    }
    
    func UnexportedNameReuse() {
    	h := sameNameHolder{}
    	v := reflect.ValueOf(&h).Elem().Field(0)
    	newval := reflect.New(v.Type().Elem())
    	v.Set(newval)
    }
    
    func main() {
    	panic("plugin1.main called")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 820 bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/stablehlo/utils/bfloat16_type.cc

      return isa<FloatType>(type) && type.getIntOrFloatBitWidth() > 16;
    }
    
    Type ToBfloat16Type(Type type) {
      if (auto shaped = mlir::dyn_cast<ShapedType>(type)) {
        const Type elem = shaped.getElementType();
        if (IsLargeFloatType(elem)) {
          return shaped.clone(BFloat16Type::get(type.getContext()));
        }
      } else if (IsLargeFloatType(type)) {
        return BFloat16Type::get(type.getContext());
      }
      return type;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  6. src/container/heap/heap_test.go

    		t.Fatalf("Expected head to be 10, was %d", (*h)[0])
    	}
    	(*h)[0] = 210
    	Fix(h, 0)
    	h.verify(t, 0)
    
    	for i := 100; i > 0; i-- {
    		elem := rand.Intn(h.Len())
    		if i&1 == 0 {
    			(*h)[elem] *= 2
    		} else {
    			(*h)[elem] /= 2
    		}
    		Fix(h, elem)
    		h.verify(t, 0)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 3.4K bytes
    - Viewed (0)
  7. cmd/last-minute.go

    }
    
    // Merge all recorded latencies of last minute into one
    func (l *lastMinuteLatency) getTotal() AccElem {
    	var res AccElem
    	sec := time.Now().Unix()
    	l.forwardTo(sec)
    	for _, elem := range l.Totals[:] {
    		res.merge(elem)
    	}
    	return res
    }
    
    // forwardTo time t, clearing any entries in between.
    func (l *lastMinuteLatency) forwardTo(t int64) {
    	if l.LastSec >= t {
    		return
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Jul 05 17:40:45 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  8. src/internal/fmtsort/sort.go

    			}
    		}
    		return 0
    	case reflect.Interface:
    		if c, ok := nilCompare(aVal, bVal); ok {
    			return c
    		}
    		c := compare(reflect.ValueOf(aVal.Elem().Type()), reflect.ValueOf(bVal.Elem().Type()))
    		if c != 0 {
    			return c
    		}
    		return compare(aVal.Elem(), bVal.Elem())
    	default:
    		// Certain types cannot appear as keys (maps, funcs, slices), but be explicit.
    		panic("bad type in compare: " + aType.String())
    	}
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 19:31:45 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  9. src/internal/types/testdata/check/issues1.go

        u := NewT2[string]()
        _ = u.Add1()
    }
    
    // When we encounter an instantiated type such as Elem[T] we must
    // not "expand" the instantiation when the type to be instantiated
    // (Elem in this case) is not yet fully set up.
    type Elem[T any] struct {
    	next *Elem[T]
    	list *List[T]
    }
    
    type List[T any] struct {
    	root Elem[T]
    }
    
    func (l *List[T]) Init() {
    	l.root.next = &l.root
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:56:37 UTC 2023
    - 6K bytes
    - Viewed (0)
  10. src/cmd/cover/html.go

    func (td templateData) PackageName() string {
    	if len(td.Files) == 0 {
    		return ""
    	}
    	fileName := td.Files[0].Name
    	elems := strings.Split(fileName, "/") // Package path is always slash-separated.
    	// Return the penultimate non-empty element.
    	for i := len(elems) - 2; i >= 0; i-- {
    		if elems[i] != "" {
    			return elems[i]
    		}
    	}
    	return ""
    }
    
    type templateFile struct {
    	Name     string
    	Body     template.HTML
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 08 14:33:36 UTC 2022
    - 6.8K bytes
    - Viewed (0)
Back to top