Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 2,093 for int2 (1.96 sec)

  1. src/go/types/basic.go

    // license that can be found in the LICENSE file.
    
    package types
    
    // BasicKind describes the kind of basic type.
    type BasicKind int
    
    const (
    	Invalid BasicKind = iota // type is invalid
    
    	// predeclared types
    	Bool
    	Int
    	Int8
    	Int16
    	Int32
    	Int64
    	Uint
    	Uint8
    	Uint16
    	Uint32
    	Uint64
    	Uintptr
    	Float32
    	Float64
    	Complex64
    	Complex128
    	String
    	UnsafePointer
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  2. utils/utils_test.go

    	}
    }
    
    func TestToString(t *testing.T) {
    	tests := []struct {
    		name string
    		in   interface{}
    		out  string
    	}{
    		{"int", math.MaxInt64, "9223372036854775807"},
    		{"int8", int8(math.MaxInt8), "127"},
    		{"int16", int16(math.MaxInt16), "32767"},
    		{"int32", int32(math.MaxInt32), "2147483647"},
    		{"int64", int64(math.MaxInt64), "9223372036854775807"},
    		{"uint", uint(math.MaxUint64), "18446744073709551615"},
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Mon Feb 19 03:42:25 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  3. test/zerodivide.go

    	ErrorTest{"int 0/0", func() { use(i / j) }, "divide"},
    	ErrorTest{"int8 0/0", func() { use(i8 / j8) }, "divide"},
    	ErrorTest{"int16 0/0", func() { use(i16 / j16) }, "divide"},
    	ErrorTest{"int32 0/0", func() { use(i32 / j32) }, "divide"},
    	ErrorTest{"int64 0/0", func() { use(i64 / j64) }, "divide"},
    
    	ErrorTest{"int 1/0", func() { use(k / j) }, "divide"},
    	ErrorTest{"int8 1/0", func() { use(k8 / j8) }, "divide"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 06 15:53:04 UTC 2021
    - 5.7K bytes
    - Viewed (0)
  4. plugin/pkg/admission/alwayspullimages/admission_test.go

    	pod := api.Pod{
    		ObjectMeta: metav1.ObjectMeta{Name: "123", Namespace: namespace},
    		Spec: api.PodSpec{
    			InitContainers: []api.Container{
    				{Name: "init1", Image: "image"},
    				{Name: "init2", Image: "image", ImagePullPolicy: api.PullNever},
    				{Name: "init3", Image: "image", ImagePullPolicy: api.PullIfNotPresent},
    				{Name: "init4", Image: "image", ImagePullPolicy: api.PullAlways},
    			},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 30 22:59:57 UTC 2020
    - 8.5K bytes
    - Viewed (0)
  5. src/internal/types/testdata/check/issues1.go

    func at[T interface{ ~[]E }, E interface{}](x T, i int) E {
            return x[i]
    }
    
    // Conversion of a local type to a type parameter.
    func _[T interface{~int}](x T) {
    	type myint int
    	var _ int = int(x)
    	var _ T = 42
    	var _ T = T(myint(42))
    }
    
    // Indexing a type parameter with an array type bound checks length.
    // (Example by mdempsky@.)
    func _[T interface { ~[10]int }](x T) {
    	_ = x[9] // ok
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:56:37 UTC 2023
    - 6K bytes
    - Viewed (0)
  6. src/runtime/sys_plan9_386.s

    #include "go_tls.h"
    #include "textflag.h"
    
    // setldt(int entry, int address, int limit)
    TEXT runtime·setldt(SB),NOSPLIT,$0
    	RET
    
    TEXT runtime·open(SB),NOSPLIT,$0
    	MOVL    $14, AX
    	INT     $64
    	MOVL	AX, ret+12(FP)
    	RET
    
    TEXT runtime·pread(SB),NOSPLIT,$0
    	MOVL    $50, AX
    	INT     $64
    	MOVL	AX, ret+20(FP)
    	RET
    
    TEXT runtime·pwrite(SB),NOSPLIT,$0
    	MOVL    $51, AX
    	INT     $64
    	MOVL	AX, ret+20(FP)
    	RET
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 21 22:12:04 UTC 2021
    - 4.5K bytes
    - Viewed (0)
  7. tensorflow/c/kernels/ops/bitcast.cc

          op_builder,
          "T: {bfloat16, half, float, double, int64, int32, uint8, uint16, "
          "uint32, uint64, int8, int16, complex64, complex128, qint8, quint8, "
          "qint16, quint16, qint32}");
      TF_OpDefinitionBuilderAddAttr(
          op_builder,
          "type: {bfloat16, half, float, double, int64, int32, uint8, uint16, "
          "uint32, uint64, int8, int16, complex64, complex128, qint8, quint8, "
          "qint16, quint16, qint32}");
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 07:51:50 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  8. src/encoding/gob/codec_test.go

    type T0 struct {
    	A int
    	B int
    	C int
    	D int
    }
    type T1 struct {
    	A int
    	B *int
    	C **int
    	D ***int
    }
    type T2 struct {
    	A ***int
    	B **int
    	C *int
    	D int
    }
    
    func TestAutoIndirection(t *testing.T) {
    	// First transfer t1 into t0
    	var t1 T1
    	t1.A = 17
    	t1.B = new(int)
    	*t1.B = 177
    	t1.C = new(*int)
    	*t1.C = new(int)
    	**t1.C = 1777
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Aug 19 23:03:14 UTC 2023
    - 36.9K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/test/testdata/gen/arithConstGen.go

    	case ">>":
    		ans = i >> uint64(j)
    	case "&":
    		ans = i & j
    	case "|":
    		ans = i | j
    	case "^":
    		ans = i ^ j
    	}
    	switch t {
    	case "int32":
    		ans = int64(int32(ans))
    	case "int16":
    		ans = int64(int16(ans))
    	case "int8":
    		ans = int64(int8(ans))
    	}
    	return fmt.Sprintf("%d", ans)
    }
    
    func main() {
    	w := new(bytes.Buffer)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 20 02:13:02 UTC 2022
    - 8.3K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/universe.go

    var Typ = [...]*Basic{
    	Invalid: {Invalid, 0, "invalid type"},
    
    	Bool:          {Bool, IsBoolean, "bool"},
    	Int:           {Int, IsInteger, "int"},
    	Int8:          {Int8, IsInteger, "int8"},
    	Int16:         {Int16, IsInteger, "int16"},
    	Int32:         {Int32, IsInteger, "int32"},
    	Int64:         {Int64, IsInteger, "int64"},
    	Uint:          {Uint, IsInteger | IsUnsigned, "uint"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 9.1K bytes
    - Viewed (0)
Back to top