Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 22 for Int16 (0.05 sec)

  1. src/database/sql/sql.go

    	if !n.Valid {
    		return nil, nil
    	}
    	return int64(n.Int32), nil
    }
    
    // NullInt16 represents an int16 that may be null.
    // NullInt16 implements the [Scanner] interface so
    // it can be used as a scan destination, similar to [NullString].
    type NullInt16 struct {
    	Int16 int16
    	Valid bool // Valid is true if Int16 is not NULL
    }
    
    // Scan implements the [Scanner] interface.
    func (n *NullInt16) Scan(value any) error {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:53 UTC 2024
    - 103.6K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/_gen/AMD64Ops.go

    		{name: "DIVL", argLength: 2, reg: gp11div, typ: "(Int32,Int32)", asm: "IDIVL", aux: "Bool", clobberFlags: true},
    		{name: "DIVW", argLength: 2, reg: gp11div, typ: "(Int16,Int16)", asm: "IDIVW", aux: "Bool", clobberFlags: true},
    		{name: "DIVQU", argLength: 2, reg: gp11div, typ: "(UInt64,UInt64)", asm: "DIVQ", clobberFlags: true},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 04 16:40:24 UTC 2023
    - 98K bytes
    - Viewed (1)
  3. src/cmd/compile/internal/ssa/rewriteLOONG64.go

    		v.AddArg(x)
    		return true
    	}
    	// match: (MOVHreg (MOVVconst [c]))
    	// result: (MOVVconst [int64(int16(c))])
    	for {
    		if v_0.Op != OpLOONG64MOVVconst {
    			break
    		}
    		c := auxIntToInt64(v_0.AuxInt)
    		v.reset(OpLOONG64MOVVconst)
    		v.AuxInt = int64ToAuxInt(int64(int16(c)))
    		return true
    	}
    	return false
    }
    func rewriteValueLOONG64_OpLOONG64MOVHstore(v *Value) bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 19:26:25 UTC 2023
    - 195.8K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/rewriteRISCV64.go

    	// cond: c >= 0 && int64(int16(c)) == c
    	// result: x
    	for {
    		x := v_0
    		if x.Op != OpRISCV64ANDI {
    			break
    		}
    		c := auxIntToInt64(x.AuxInt)
    		if !(c >= 0 && int64(int16(c)) == c) {
    			break
    		}
    		v.copyOf(x)
    		return true
    	}
    	// match: (MOVHreg (MOVDconst [c]))
    	// result: (MOVDconst [int64(int16(c))])
    	for {
    		if v_0.Op != OpRISCV64MOVDconst {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 14:57:07 UTC 2024
    - 205.1K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/rewriteMIPS64.go

    		v.AddArg(x)
    		return true
    	}
    	// match: (MOVHreg (MOVVconst [c]))
    	// result: (MOVVconst [int64(int16(c))])
    	for {
    		if v_0.Op != OpMIPS64MOVVconst {
    			break
    		}
    		c := auxIntToInt64(v_0.AuxInt)
    		v.reset(OpMIPS64MOVVconst)
    		v.AuxInt = int64ToAuxInt(int64(int16(c)))
    		return true
    	}
    	return false
    }
    func rewriteValueMIPS64_OpMIPS64MOVHstore(v *Value) bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jul 31 03:59:48 UTC 2023
    - 211.6K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/rewriteMIPS.go

    		v.AddArg(x)
    		return true
    	}
    	// match: (MOVHreg (MOVWconst [c]))
    	// result: (MOVWconst [int32(int16(c))])
    	for {
    		if v_0.Op != OpMIPSMOVWconst {
    			break
    		}
    		c := auxIntToInt32(v_0.AuxInt)
    		v.reset(OpMIPSMOVWconst)
    		v.AuxInt = int32ToAuxInt(int32(int16(c)))
    		return true
    	}
    	return false
    }
    func rewriteValueMIPS_OpMIPSMOVHstore(v *Value) bool {
    	v_2 := v.Args[2]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 24 14:43:03 UTC 2023
    - 176.6K bytes
    - Viewed (0)
  7. src/cmd/link/internal/ld/data.go

    		case 1:
    			P[off] = byte(int8(o))
    		case 2:
    			if (rt == objabi.R_PCREL || rt == objabi.R_CALL) && o != int64(int16(o)) {
    				st.err.Errorf(s, "pc-relative relocation address for %s is too big: %#x", ldr.SymName(rs), o)
    			} else if o != int64(int16(o)) && o != int64(uint16(o)) {
    				st.err.Errorf(s, "non-pc-relative relocation address for %s is too big: %#x", ldr.SymName(rs), uint64(o))
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 12 15:10:50 UTC 2024
    - 100.5K bytes
    - Viewed (0)
  8. doc/go1.17_spec.html

    uint32      the set of all unsigned 32-bit integers (0 to 4294967295)
    uint64      the set of all unsigned 64-bit integers (0 to 18446744073709551615)
    
    int8        the set of all signed  8-bit integers (-128 to 127)
    int16       the set of all signed 16-bit integers (-32768 to 32767)
    int32       the set of all signed 32-bit integers (-2147483648 to 2147483647)
    int64       the set of all signed 64-bit integers (-9223372036854775808 to 9223372036854775807)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 211.6K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/text/internal/language/tables.go

    	19: {From: 0x164, To: 0x4b},
    }
    
    // m49 maps regionIDs to UN.M49 codes. The first isoRegionOffset entries are
    // codes indicating collections of regions.
    // Size: 718 bytes, 359 elements
    var m49 = [359]int16{
    	// Entry 0 - 3F
    	0, 1, 2, 3, 5, 9, 11, 13,
    	14, 15, 17, 18, 19, 21, 29, 30,
    	34, 35, 39, 53, 54, 57, 61, 142,
    	143, 145, 150, 151, 154, 155, 202, 419,
    	958, 0, 20, 784, 4, 28, 660, 8,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 153K bytes
    - Viewed (0)
  10. src/database/sql/sql_test.go

    		{NullInt32{222, false}, 1, NullInt32{0, false}},
    		{0, NullInt32{31, false}, nil},
    	}}
    	nullTestRun(t, spec)
    }
    
    func TestNullInt16Param(t *testing.T) {
    	spec := nullTestSpec{"nullint16", "int16", [6]nullTestRow{
    		{NullInt16{31, true}, 1, NullInt16{31, true}},
    		{NullInt16{-22, false}, 1, NullInt16{0, false}},
    		{22, 1, NullInt16{22, true}},
    		{NullInt16{33, true}, 1, NullInt16{33, true}},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 111.6K bytes
    - Viewed (0)
Back to top