Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 272 for Int8 (0.05 sec)

  1. src/internal/types/testdata/spec/assignability.go

    	D = nil // ERROR "cannot use nil"
    	X = nil // ERROR "cannot use nil"
    }
    
    // "x is an untyped constant representable by a value of type T"
    func _[
    	Int8 ~int8,
    	Int16 ~int16,
    	Int32 ~int32,
    	Int64 ~int64,
    	Int8_16 ~int8 | ~int16,
    ](
    	i8 Int8,
    	i16 Int16,
    	i32 Int32,
    	i64 Int64,
    	i8_16 Int8_16,
    ) {
    	b = 42
    	b = 42.0
    	// etc.
    
    	i8 = -1 << 7
    	i8 = 1<<7 - 1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 17:24:42 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  2. src/internal/types/testdata/check/linalg.go

    package linalg
    
    // Numeric is type bound that matches any numeric type.
    // It would likely be in a constraints package in the standard library.
    type Numeric interface {
    	~int | ~int8 | ~int16 | ~int32 | ~int64 |
    		~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64 | ~uintptr |
    		~float32 | ~float64 |
    		~complex64 | ~complex128
    }
    
    func DotProduct[T Numeric](s1, s2 []T) T {
    	if len(s1) != len(s2) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 02 02:58:32 UTC 2022
    - 2.2K bytes
    - Viewed (0)
  3. src/syscall/mkpost.go

    		s = strings.Replace(s, "MKPOSTIFIPAD", "X__ifi_pad", 1)
    		s = strings.Replace(s, "MKPOSTSYSINFOTF", "X_f", 1)
    
    		// Force the type of RawSockaddr.Data to [14]int8 to match
    		// the existing gccgo API.
    		re = regexp.MustCompile("(Data\\s+\\[14\\])uint8")
    		s = re.ReplaceAllString(s, "${1}int8")
    
    	case goos == "freebsd":
    		// Keep pre-FreeBSD 10 / non-POSIX 2008 names for timespec fields
    		re := regexp.MustCompile("(A|M|C|Birth)tim\\s+Timespec")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 25 02:59:05 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/syntax/testdata/linalg.go

    package linalg
    
    import "math"
    
    // Numeric is type bound that matches any numeric type.
    // It would likely be in a constraints package in the standard library.
    type Numeric interface {
    	~int | ~int8 | ~int16 | ~int32 | ~int64 |
    		uint | ~uint8 | ~uint16 | ~uint32 | ~uint64 | ~uintptr |
    		float32 | ~float64 |
    		complex64 | ~complex128
    }
    
    func DotProduct[T Numeric](s1, s2 []T) T {
    	if len(s1) != len(s2) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 30 18:02:18 UTC 2022
    - 2.1K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/tools/internal/stdlib/stdlib.go

    type Symbol struct {
    	Name    string
    	Kind    Kind
    	Version Version // Go version that first included the symbol
    }
    
    // A Kind indicates the kind of a symbol:
    // function, variable, constant, type, and so on.
    type Kind int8
    
    const (
    	Invalid Kind = iota // Example name:
    	Type                // "Buffer"
    	Func                // "Println"
    	Var                 // "EOF"
    	Const               // "Pi"
    	Field               // "Point.X"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/text/internal/language/common.go

    package language
    
    // This file contains code common to the maketables.go and the package code.
    
    // AliasType is the type of an alias in AliasMap.
    type AliasType int8
    
    const (
    	Deprecated AliasType = iota
    	Macro
    	Legacy
    
    	AliasTypeUnknown AliasType = -1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 334 bytes
    - Viewed (0)
  7. test/fixedbugs/bug460.dir/a.go

    // Copyright 2012 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package a
    
    type Foo struct {
    	int
    	int8
    	error
    	rune
    	byte
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 221 bytes
    - Viewed (0)
  8. test/fixedbugs/issue52020.go

    // Copyright 2022 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    func main() {
    	var _ interface{} = struct{ _ [1]int8 }{}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 30 15:06:59 UTC 2022
    - 245 bytes
    - Viewed (0)
  9. src/cmd/vet/testdata/asm/asm.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // This file contains declarations to test the assembly in asm1.s.
    
    package testdata
    
    func arg1(x int8, y uint8)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 05 01:01:31 UTC 2019
    - 310 bytes
    - Viewed (0)
  10. test/typeparam/issue50121b.dir/a.go

    // Copyright 2022 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package a
    
    type Integer interface {
    	~int | ~int8 | ~int16 | ~int32 | ~int64 |
    	~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64 | ~uintptr
    }
    
    type Builder[T Integer] struct{}
    
    func (r Builder[T]) New() T {
    	return T(42)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 03 03:13:33 UTC 2022
    - 379 bytes
    - Viewed (0)
Back to top