Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 394 for int1 (0.09 sec)

  1. staging/src/k8s.io/apimachinery/pkg/conversion/queryparams/convert_test.go

    type namedString string
    type namedBool bool
    
    type bar struct {
    	Float1   float32 `json:"float1"`
    	Float2   float64 `json:"float2"`
    	Int1     int64   `json:"int1,omitempty"`
    	Int2     int32   `json:"int2,omitempty"`
    	Int3     int16   `json:"int3,omitempty"`
    	Str1     string  `json:"str1,omitempty"`
    	Ignored  int
    	Ignored2 string
    }
    
    func (obj *bar) GetObjectKind() schema.ObjectKind { return schema.EmptyObjectKind }
    
    type foo struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 03 07:01:02 UTC 2018
    - 6.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_conversions/reduce.h

        auto operand_type = mlir::cast<ShapedType>(operand.getType());
        if (operand_type.getElementType().isInteger(1)) {
          // TF does not support min or max on boolean (int1) arguments.
          // Use AnyOp for MaxOp and AllOp for MinOp.
          auto tf_reduce_op = rewriter.create<BooleanReduce>(
              reduce_op.getLoc(), reduce_op->getResult(0).getType(), operand,
              reduction_indices,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  3. test/init1.go

    	if sys1-sys >= N*MB || numGC1 == numGC {
    		println("allocated 1000 chunks of", MB, "and used ", sys1-sys, "memory")
    		println("numGC went", numGC, "to", numGC1)
    		panic("init1")
    	}
    }
    
    func send(c chan int) {
    	c <- 1
    }
    
    func main() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 1.1K bytes
    - Viewed (0)
  4. src/internal/types/testdata/check/init1.go

    // initialization cycles
    
    package init1
    
    // issue 6683 (marked as WorkingAsIntended)
    
    type T0 struct{}
    
    func (T0) m() int { return y0 }
    
    var x0 = T0{}
    
    var y0 /* ERROR "initialization cycle" */ = x0.m()
    
    type T1 struct{}
    
    func (T1) m() int { return y1 }
    
    var x1 interface {
    	m() int
    } = T1{}
    
    var y1 = x1.m() // no cycle reported, x1 is of interface type
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:25 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  5. src/go/internal/gccgoimporter/parser_test.go

    	{id: "foo", typ: "<type 1 interface { Foo (a <type -1>, b <type -2>) <type -1>; Bar (? <type -2>, ? ...<type -1>) (? <type -2>, ? <type -1>); Baz (); }>", want: "interface{Bar(int16, ...int8) (int16, int8); Baz(); Foo(a int8, b int16) int8}"},
    	{id: "foo", typ: "<type 1 (? <type -1>) <type -2>>", want: "func(int8) int16"},
    }
    
    func TestTypeParser(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 26 20:35:55 UTC 2018
    - 2.8K bytes
    - Viewed (0)
  6. test/fixedbugs/issue23719.go

    		panic("bad comparison")
    	}
    
    	w1 := [2]int16{-1, 88}
    	w2 := [2]int16{-1, 99}
    	if w1 == w2 {
    		panic("bad comparison")
    	}
    	x1 := [4]int16{-1, 88, 88, 88}
    	x2 := [4]int16{-1, 99, 99, 99}
    	if x1 == x2 {
    		panic("bad comparison")
    	}
    
    	a1 := [2]int8{-1, 88}
    	a2 := [2]int8{-1, 99}
    	if a1 == a2 {
    		panic("bad comparison")
    	}
    	b1 := [4]int8{-1, 88, 88, 88}
    	b2 := [4]int8{-1, 99, 99, 99}
    	if b1 == b2 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 06 18:24:33 UTC 2018
    - 826 bytes
    - Viewed (0)
  7. src/internal/types/testdata/check/const1.go

    	maxFloat64 = math.MaxFloat64
    )
    
    const (
    	_ int8 = minInt8 /* ERROR "overflows" */ - 1
    	_ int8 = minInt8
    	_ int8 = maxInt8
    	_ int8 = maxInt8 /* ERROR "overflows" */ + 1
    	_ int8 = smallestFloat64 /* ERROR "truncated" */
    
    	_ = int8(minInt8 /* ERROR "overflows" */ - 1)
    	_ = int8(minInt8)
    	_ = int8(maxInt8)
    	_ = int8(maxInt8 /* ERROR "overflows" */ + 1)
    	_ = int8(smallestFloat64 /* ERROR "cannot convert" */)
    )
    
    const (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 31 16:11:16 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  8. test/ken/divmod.go

    		panic("fail")
    	}
    
    	/* int */
    	var in1 int = +5
    	var in2 int = -5
    	var id1 int = +3
    	var id2 int = -3
    
    	if in1/id1 != q1 || in1%id1 != r1 {
    		println("int-1", in1, id1, in1/id1, in1%id1)
    		panic("fail")
    	}
    	if in2/id1 != q2 || in2%id1 != r2 {
    		println("int-2", in2, id1, in2/id1, in2%id1)
    		panic("fail")
    	}
    	if in1/id2 != q3 || in1%id2 != r3 {
    		println("int-3", in1, id2, in1/id2, in1%id2)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 24 05:24:24 UTC 2012
    - 5.1K bytes
    - Viewed (0)
  9. src/syscall/ztypes_dragonfly_amd64.go

    	Syncwrites  int64
    	Asyncwrites int64
    	Fstypename  [16]int8
    	Mntonname   [80]int8
    	Syncreads   int64
    	Asyncreads  int64
    	Spares1     int16
    	Mntfromname [80]int8
    	Spares2     int16
    	Pad_cgo_1   [4]byte
    	Spare       [2]int64
    }
    
    type Flock_t struct {
    	Start  int64
    	Len    int64
    	Pid    int32
    	Type   int16
    	Whence int16
    }
    
    type Dirent struct {
    	Fileno  uint64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 6.7K bytes
    - Viewed (0)
  10. test/fixedbugs/issue19113.go

    import "reflect"
    
    var tests = []interface{}{
    	func(x int, s int) int {
    		return x << s
    	},
    	func(x int, s int64) int {
    		return x << s
    	},
    	func(x int, s int32) int {
    		return x << s
    	},
    	func(x int, s int16) int {
    		return x << s
    	},
    	func(x int, s int8) int {
    		return x << s
    	},
    	func(x int, s int) int {
    		return x >> s
    	},
    	func(x int, s int64) int {
    		return x >> s
    	},
    	func(x int, s int32) int {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 15 23:13:09 UTC 2019
    - 1.8K bytes
    - Viewed (0)
Back to top