Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 92 for Int16 (0.1 sec)

  1. src/encoding/binary/binary.go

    	e.offset += 8
    }
    
    func (d *decoder) int8() int8 { return int8(d.uint8()) }
    
    func (e *encoder) int8(x int8) { e.uint8(uint8(x)) }
    
    func (d *decoder) int16() int16 { return int16(d.uint16()) }
    
    func (e *encoder) int16(x int16) { e.uint16(uint16(x)) }
    
    func (d *decoder) int32() int32 { return int32(d.uint32()) }
    
    func (e *encoder) int32(x int32) { e.uint32(uint32(x)) }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 17:29:31 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  2. test/codegen/arithmetic.go

    	}
    	return d, e
    }
    
    func NoFix16A(divr int16) (int16, int16) {
    	var d int16 = 42
    	var e int16 = 84
    	if divr > 5 {
    		// amd64:-"JMP"
    		// 386:-"JMP"
    		d /= divr
    		// amd64:-"JMP"
    		// 386:-"JMP"
    		e %= divr
    		d += e
    	}
    	return d, e
    }
    
    func NoFix16B(divd int16) (int16, int16) {
    	var d int16
    	var e int16
    	var divr int16 = -1
    	if divd > -32768 {
    		// amd64:-"JMP"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:28:00 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  3. test/codegen/shift.go

    	// ppc64x:-".*MOVW"
    	f := int32(v >> 32)
    	// ppc64x:".*MOVW"
    	f += int32(v >> 31)
    	// ppc64x:-".*MOVH"
    	g := int16(v >> 48)
    	// ppc64x:".*MOVH"
    	g += int16(v >> 30)
    	// ppc64x:-".*MOVH"
    	g += int16(f >> 16)
    	// ppc64x:-".*MOVB"
    	h := int8(v >> 56)
    	// ppc64x:".*MOVB"
    	h += int8(v >> 28)
    	// ppc64x:-".*MOVB"
    	h += int8(f >> 24)
    	// ppc64x:".*MOVB"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 18:53:43 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  4. src/encoding/binary/binary_test.go

    package binary
    
    import (
    	"bytes"
    	"fmt"
    	"io"
    	"math"
    	"reflect"
    	"strings"
    	"sync"
    	"testing"
    	"unsafe"
    )
    
    type Struct struct {
    	Int8       int8
    	Int16      int16
    	Int32      int32
    	Int64      int64
    	Uint8      uint8
    	Uint16     uint16
    	Uint32     uint32
    	Uint64     uint64
    	Float32    float32
    	Float64    float64
    	Complex64  complex64
    	Complex128 complex128
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 19:16:18 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/value.go

    		v.Fatalf("op %s doesn't have a uint8 aux field", v.Op)
    	}
    	return uint8(v.AuxInt)
    }
    
    func (v *Value) AuxInt16() int16 {
    	if opcodeTable[v.Op].auxType != auxInt16 {
    		v.Fatalf("op %s doesn't have an int16 aux field", v.Op)
    	}
    	return int16(v.AuxInt)
    }
    
    func (v *Value) AuxInt32() int32 {
    	if opcodeTable[v.Op].auxType != auxInt32 {
    		v.Fatalf("op %s doesn't have an int32 aux field", v.Op)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 16:40:22 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  6. src/go/types/builtins_test.go

    	{"make", `var l    byte ; _ = make([]int8      , l   )`, `func([]int8, byte) []int8`},
    	{"make", `                _ = make([]int16     , 0, 0)`, `func([]int16, int, int) []int16`},
    	{"make", `var l    int16; _ = make([]string    , l, 0)`, `func([]string, int16, int) []string`},
    	{"make", `var    c int32; _ = make([]float64   , 0, c)`, `func([]float64, int, int32) []float64`},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types2/builtins_test.go

    	{"make", `var l    byte ; _ = make([]int8      , l   )`, `func([]int8, byte) []int8`},
    	{"make", `                _ = make([]int16     , 0, 0)`, `func([]int16, int, int) []int16`},
    	{"make", `var l    int16; _ = make([]string    , l, 0)`, `func([]string, int16, int) []string`},
    	{"make", `var    c int32; _ = make([]float64   , 0, c)`, `func([]float64, int, int32) []float64`},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 18:06:31 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/magic.go

    // umagicOKn reports whether we should strength reduce an unsigned n-bit divide by c.
    // We can strength reduce when c != 0 and c is not a power of two.
    func umagicOK8(c int8) bool   { return c&(c-1) != 0 }
    func umagicOK16(c int16) bool { return c&(c-1) != 0 }
    func umagicOK32(c int32) bool { return c&(c-1) != 0 }
    func umagicOK64(c int64) bool { return c&(c-1) != 0 }
    
    type umagicData struct {
    	s int64  // ⎡log2(c)⎤
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:25 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  9. src/cmd/internal/obj/ppc64/a.out.go

    // https://openpowerfoundation.org/?resource_lib=64-bit-elf-v2-abi-specification-power-architecture
    var PPC64DWARFRegisters = map[int16]int16{}
    
    func init() {
    	// f assigns dwarfregister[from:to] = (base):(to-from+base)
    	f := func(from, to, base int16) {
    		for r := int16(from); r <= to; r++ {
    			PPC64DWARFRegisters[r] = r - from + base
    		}
    	}
    	f(REG_R0, REG_R31, 0)
    	f(REG_F0, REG_F31, 32)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 01 18:50:29 UTC 2024
    - 16K bytes
    - Viewed (0)
  10. src/cmd/asm/internal/asm/parse.go

    	if !ok {
    		return 0
    	}
    	var op int16
    	switch p.next().ScanToken {
    	case lex.LSH:
    		op = 0
    	case lex.RSH:
    		op = 1
    	case lex.ARR:
    		op = 2
    	case lex.ROT:
    		// following instructions on ARM64 support rotate right
    		// AND, ANDS, TST, BIC, BICS, EON, EOR, ORR, MVN, ORN
    		op = 3
    	}
    	tok := p.next()
    	str := tok.String()
    	var count int16
    	switch tok.ScanToken {
    	case scanner.Ident:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 14:34:57 UTC 2024
    - 36.9K bytes
    - Viewed (0)
Back to top