Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 272 for Int8 (0.05 sec)

  1. src/internal/types/testdata/fixedbugs/issue49705.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 p
    
    type Integer interface {
    	~int | ~int8 | ~int16 | ~int32 | ~int64 |
    	~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64 | ~uintptr
    }
    
    func shl[I Integer](n int) I {
    	return 1 << n
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 02 02:58:32 UTC 2022
    - 347 bytes
    - Viewed (0)
  2. test/codegen/smallintiface.go

    func booliface() interface{} {
    	// amd64:`LEAQ\truntime.staticuint64s\+8\(SB\)`
    	return true
    }
    
    func smallint8iface() interface{} {
    	// amd64:`LEAQ\truntime.staticuint64s\+2024\(SB\)`
    	return int8(-3)
    }
    
    func smalluint8iface() interface{} {
    	// amd64:`LEAQ\truntime.staticuint64s\+24\(SB\)`
    	return uint8(3)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 04 21:43:01 UTC 2020
    - 500 bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/branchelim_test.go

    		{"amd64", "int32", true},
    		{"amd64", "int8", false},
    	}
    
    	for _, data := range testData {
    		t.Run(data.arch+"/"+data.intType, func(t *testing.T) {
    			c := testConfigArch(t, data.arch)
    			boolType := c.config.Types.Bool
    			var intType *types.Type
    			switch data.intType {
    			case "int32":
    				intType = c.config.Types.Int32
    			case "int8":
    				intType = c.config.Types.Int8
    			default:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 24 15:51:15 UTC 2018
    - 5.2K bytes
    - Viewed (0)
  4. src/cmd/vet/testdata/shift/shift.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // This file contains tests for the suspicious shift checker.
    
    package shift
    
    func ShiftTest() {
    	var i8 int8
    	_ = i8 << 7
    	_ = (i8 + 1) << 8 // ERROR ".i8 . 1. .8 bits. too small for shift of 8"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 20 15:46:42 UTC 2019
    - 358 bytes
    - Viewed (0)
  5. src/reflect/iter_test.go

    					t.Fatalf("got %d, want %d", v.Int(), i)
    				}
    				i++
    			}
    			if i != 4 {
    				t.Fatalf("should loop four times")
    			}
    		}},
    		{"int8", ValueOf(int8(4)), func(t *testing.T, s iter.Seq[Value]) {
    			i := int8(0)
    			for v := range s {
    				if v.Interface().(int8) != i {
    					t.Fatalf("got %d, want %d", v.Int(), i)
    				}
    				i++
    			}
    			if i != 4 {
    				t.Fatalf("should loop four times")
    			}
    		}},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 14:27:54 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  6. test/typeparam/absdiff.go

    // run
    
    // Copyright 2020 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
    
    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.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 2.9K bytes
    - Viewed (0)
  7. test/fixedbugs/issue40746.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package p
    
    func f(x byte, b bool) byte {
    	var c byte
    	if b {
    		c = 1
    	}
    
    	if int8(c) < 0 {
    		x++
    	}
    	return x
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 13 22:59:31 UTC 2020
    - 284 bytes
    - Viewed (0)
  8. test/typeparam/list.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    import (
    	"fmt"
    )
    
    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 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Dec 03 17:08:51 UTC 2022
    - 2.4K bytes
    - Viewed (0)
  9. test/typeparam/absdiffimp2.dir/a.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package a
    
    import (
    	"math"
    )
    
    type Numeric interface {
    	~int | ~int8 | ~int16 | ~int32 | ~int64 |
    		~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64 | ~uintptr |
    		~float32 | ~float64 |
    		~complex64 | ~complex128
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 09 21:26:42 UTC 2022
    - 2.8K bytes
    - Viewed (0)
  10. src/fmt/stringer_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package fmt_test
    
    import (
    	. "fmt"
    	"testing"
    )
    
    type TI int
    type TI8 int8
    type TI16 int16
    type TI32 int32
    type TI64 int64
    type TU uint
    type TU8 uint8
    type TU16 uint16
    type TU32 uint32
    type TU64 uint64
    type TUI uintptr
    type TF float64
    type TF32 float32
    type TF64 float64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 08 04:08:51 UTC 2014
    - 2.1K bytes
    - Viewed (0)
Back to top