Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 208 for Int8 (0.18 sec)

  1. src/reflect/iter.go

    				return []Value{ValueOf(yield(in[0]))}
    			})
    			v.Call([]Value{rf})
    		}
    	}
    	switch v.Kind() {
    	case Int:
    		return rangeNum[int](v.Int())
    	case Int8:
    		return rangeNum[int8](v.Int())
    	case Int16:
    		return rangeNum[int16](v.Int())
    	case Int32:
    		return rangeNum[int32](v.Int())
    	case Int64:
    		return rangeNum[int64](v.Int())
    	case Uint:
    		return rangeNum[uint](v.Uint())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 13:40:11 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  2. test/convinline.go

    	}
    	panic(t1)
    }
    
    func convert1[T int64 | uint64 | float64](v T, t2 string) string {
    	switch t2 {
    	case "int":
    		return fmt.Sprintf("%s(%#x)", t2, int(v))
    	case "int8":
    		return fmt.Sprintf("%s(%#x)", t2, int8(v))
    	case "int16":
    		return fmt.Sprintf("%s(%#x)", t2, int16(v))
    	case "int32":
    		return fmt.Sprintf("%s(%#x)", t2, int32(v))
    	case "int64":
    		return fmt.Sprintf("%s(%#x)", t2, int64(v))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 17 13:46:05 UTC 2022
    - 4.7K bytes
    - Viewed (0)
  3. src/cmd/api/testdata/src/pkg/p1/golden.txt

    pkg p1, const FloatConst = 1.5  // 3/2
    pkg p1, const FloatConst ideal-float
    pkg p1, const StrConst = "foo"
    pkg p1, const StrConst ideal-string
    pkg p1, func Bar(int8, int16, int64)
    pkg p1, func Bar1(int8, int16, int64) uint64
    pkg p1, func Bar2(int8, int16, int64) (uint8, uint64)
    pkg p1, func BarE() Error
    pkg p1, func Now() Time
    pkg p1, func PlainFunc(int, int, string) (*B, error)
    pkg p1, func TakesFunc(func(int) int)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 02 16:29:41 UTC 2022
    - 3.6K bytes
    - Viewed (0)
  4. src/crypto/internal/edwards25519/tables.go

    }
    
    // Given odd x with 0 < x < 2^4, return x*Q (in variable time).
    func (v *nafLookupTable5) SelectInto(dest *projCached, x int8) {
    	*dest = v.points[x/2]
    }
    
    // Given odd x with 0 < x < 2^7, return x*Q (in variable time).
    func (v *nafLookupTable8) SelectInto(dest *affineCached, x int8) {
    	*dest = v.points[x/2]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Nov 05 21:02:45 UTC 2022
    - 3.7K bytes
    - Viewed (0)
  5. utils/tests/dummy_dialecter.go

    	writer.WriteByte('?')
    }
    
    func (DummyDialector) QuoteTo(writer clause.Writer, str string) {
    	var (
    		underQuoted, selfQuoted bool
    		continuousBacktick      int8
    		shiftDelimiter          int8
    	)
    
    	for _, v := range []byte(str) {
    		switch v {
    		case '`':
    			continuousBacktick++
    			if continuousBacktick == 2 {
    				writer.WriteString("``")
    				continuousBacktick = 0
    			}
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Mon Mar 06 06:03:31 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  6. test/typeparam/listimp.dir/a.go

    // Copyright 2021 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 Ordered interface {
    	~int | ~int8 | ~int16 | ~int32 | ~int64 |
    		~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64 | ~uintptr |
    		~float32 | ~float64 |
    		~string
    }
    
    // List is a linked list of ordered values of type T.
    type List[T Ordered] struct {
    	Next *List[T]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Dec 03 17:08:51 UTC 2022
    - 1.1K bytes
    - Viewed (0)
  7. test/typeparam/index.go

    		// constraint, so we can use == here.
    		if v == x {
    			return i
    		}
    	}
    	return -1
    }
    
    type obj struct {
    	x int
    }
    
    type obj2 struct {
    	x int8
    	y float64
    }
    
    type obj3 struct {
    	x int64
    	y int8
    }
    
    type inner struct {
    	y int64
    	z int32
    }
    
    type obj4 struct {
    	x int32
    	s inner
    }
    
    func main() {
    	want := 2
    
    	vec1 := []string{"ab", "cd", "ef"}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 1.5K bytes
    - Viewed (0)
  8. src/runtime/testdata/testprog/checkptr.go

    }
    
    func CheckPtrStringFail() {
    	p := new(byte)
    	sink2 = p
    	sink2 = unsafe.String(p, 100)
    }
    
    func CheckPtrAlignmentNested() {
    	s := make([]int8, 100)
    	p := unsafe.Pointer(&s[0])
    	n := 9
    	_ = ((*[10]int8)(unsafe.Pointer((*[10]int64)(unsafe.Pointer(&p)))))[:n:n]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 31 17:15:15 UTC 2022
    - 2.4K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/allocators.go

    		Data: unsafe.Pointer(&b[0]),
    		Len:  n,
    		Cap:  cap(b) * int(scale),
    	}
    	return *(*[]int8)(unsafe.Pointer(&s))
    }
    func (c *Cache) freeInt8Slice(s []int8) {
    	var base int64
    	var derived int8
    	scale := unsafe.Sizeof(base) / unsafe.Sizeof(derived)
    	b := unsafeheader.Slice{
    		Data: unsafe.Pointer(&s[0]),
    		Len:  int((uintptr(len(s)) + scale - 1) / scale),
    		Cap:  int((uintptr(cap(s)) + scale - 1) / scale),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 15 23:00:54 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  10. src/go/parser/testdata/linalg.go2

    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: Thu Oct 28 15:34:22 UTC 2021
    - 2K bytes
    - Viewed (0)
Back to top