Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 576 for Int8 (0.18 sec)

  1. src/cmd/compile/internal/ssa/_gen/AMD64.rules

    (ROLQ x (MOV(Q|L)const [c])) => (ROLQconst [int8(c&63)] x)
    (ROLL x (MOV(Q|L)const [c])) => (ROLLconst [int8(c&31)] x)
    (ROLW x (MOV(Q|L)const [c])) => (ROLWconst [int8(c&15)] x)
    (ROLB x (MOV(Q|L)const [c])) => (ROLBconst [int8(c&7) ] x)
    
    (RORQ x (MOV(Q|L)const [c])) => (ROLQconst [int8((-c)&63)] x)
    (RORL x (MOV(Q|L)const [c])) => (ROLLconst [int8((-c)&31)] x)
    (RORW x (MOV(Q|L)const [c])) => (ROLWconst [int8((-c)&15)] x)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 12 19:38:41 UTC 2024
    - 93.9K bytes
    - Viewed (0)
  2. 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)
  3. logger/sql.go

    // RegEx matches only numeric values
    var numericPlaceholderRe = regexp.MustCompile(`\$\d+\$`)
    
    func isNumeric(k reflect.Kind) bool {
    	switch k {
    	case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
    		return true
    	case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64:
    		return true
    	case reflect.Float32, reflect.Float64:
    		return true
    	default:
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Thu Mar 21 08:00:02 UTC 2024
    - 5K bytes
    - Viewed (0)
  4. src/internal/fuzz/encoding_test.go

    			in: `go test fuzz v1
    int()`,
    			reject: true,
    		},
    		{
    			desc: "negative uint",
    			in: `go test fuzz v1
    uint(-32)`,
    			reject: true,
    		},
    		{
    			desc: "int8 too large",
    			in: `go test fuzz v1
    int8(1234456)`,
    			reject: true,
    		},
    		{
    			desc: "multiplication in int value",
    			in: `go test fuzz v1
    int(20*5)`,
    			reject: true,
    		},
    		{
    			desc: "double negation",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 00:20:34 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/test/testdata/arithConst_test.go

    //go:noinline
    func add_int8_0(a int8) int8 { return a + 0 }
    
    //go:noinline
    func add_0_int8(a int8) int8 { return 0 + a }
    
    //go:noinline
    func add_int8_1(a int8) int8 { return a + 1 }
    
    //go:noinline
    func add_1_int8(a int8) int8 { return 1 + a }
    
    //go:noinline
    func add_int8_126(a int8) int8 { return a + 126 }
    
    //go:noinline
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 23 06:40:04 UTC 2020
    - 633.8K bytes
    - Viewed (0)
  6. test/typeparam/absdiffimp.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 Numeric interface {
    	~int | ~int8 | ~int16 | ~int32 | ~int64 |
    		~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64 | ~uintptr |
    		~float32 | ~float64 |
    		~complex64 | ~complex128
    }
    
    // numericAbs matches numeric types with an Abs method.
    type numericAbs[T any] interface {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 00:11:24 UTC 2021
    - 2.1K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types/alg.go

    // license that can be found in the LICENSE file.
    
    package types
    
    import "cmd/compile/internal/base"
    
    // AlgKind describes the kind of algorithms used for comparing and
    // hashing a Type.
    type AlgKind int8
    
    //go:generate stringer -type AlgKind -trimprefix A alg.go
    
    const (
    	AUNK   AlgKind = iota
    	ANOEQ          // Types cannot be compared
    	ANOALG         // implies ANOEQ, and in addition has a part that is marked Noalg
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 18 15:30:00 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/test/testdata/cmpConst_test.go

    func gt_neg1_int8(x int8) bool   { return x > -1 }
    func ge_neg1_int8(x int8) bool   { return x >= -1 }
    func eq_neg1_int8(x int8) bool   { return x == -1 }
    func ne_neg1_int8(x int8) bool   { return x != -1 }
    func lt_0_int8(x int8) bool      { return x < 0 }
    func le_0_int8(x int8) bool      { return x <= 0 }
    func gt_0_int8(x int8) bool      { return x > 0 }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 23 06:40:04 UTC 2020
    - 103.1K bytes
    - Viewed (0)
  9. src/internal/poll/iovec_solaris.go

    // license that can be found in the LICENSE file.
    
    package poll
    
    import (
    	"syscall"
    	"unsafe"
    )
    
    func newIovecWithBase(base *byte) syscall.Iovec {
    	return syscall.Iovec{Base: (*int8)(unsafe.Pointer(base))}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 06 18:06:02 UTC 2022
    - 318 bytes
    - Viewed (0)
  10. 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)
Back to top