Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 1,114 for toint (0.05 sec)

  1. src/cmd/compile/internal/walk/builtin.go

    	// The case of len or cap overflow when converting TUINT or TUINTPTR to TINT
    	// will be handled by the negative range checks in makeslice during runtime.
    	if (len.Type().IsKind(types.TIDEAL) || len.Type().Size() <= types.Types[types.TUINT].Size()) &&
    		(cap.Type().IsKind(types.TIDEAL) || cap.Type().Size() <= types.Types[types.TUINT].Size()) {
    		fnname = "makeslice"
    		argtype = types.Types[types.TINT]
    	}
    	fn := typecheck.LookupRuntime(fnname)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 22:35:22 UTC 2024
    - 31.2K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/config.go

    	registers      []Register     // machine registers
    	gpRegMask      regMask        // general purpose integer register mask
    	fpRegMask      regMask        // floating point register mask
    	fp32RegMask    regMask        // floating point register mask
    	fp64RegMask    regMask        // floating point register mask
    	specialRegMask regMask        // special register mask
    	intParamRegs   []int8         // register numbers of integer param (in/out) registers
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 16:11:47 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  3. src/internal/reflectlite/all_test.go

    	}
    }
    
    type Point struct {
    	x, y int
    }
    
    // This will be index 0.
    func (p Point) AnotherMethod(scale int) int {
    	return -1
    }
    
    // This will be index 1.
    func (p Point) Dist(scale int) int {
    	//println("Point.Dist", p.x, p.y, scale)
    	return p.x*p.x*scale + p.y*p.y*scale
    }
    
    // This will be index 2.
    func (p Point) GCMethod(k int) int {
    	runtime.GC()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 16 19:26:08 UTC 2023
    - 24.2K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/walk/assign.go

    	newLen := typecheck.TempAt(base.Pos, ir.CurFunc, types.Types[types.TINT])
    	nodes.Append(ir.NewAssignStmt(base.Pos, newLen, ir.NewBinaryExpr(base.Pos, ir.OADD, oldLen, num)))
    
    	// if uint(newLen) <= uint(oldCap)
    	nif := ir.NewIfStmt(base.Pos, nil, nil, nil)
    	nuint := typecheck.Conv(newLen, types.Types[types.TUINT])
    	scapuint := typecheck.Conv(oldCap, types.Types[types.TUINT])
    	nif.Cond = ir.NewBinaryExpr(base.Pos, ir.OLE, nuint, scapuint)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:09:06 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  5. pkg/util/taints/taints_test.go

    			expectedTaints: []v1.Taint{taint, taintNew},
    		},
    		{
    			name: "add duplicate taint",
    			node: &v1.Node{
    				Spec: v1.NodeSpec{Taints: []v1.Taint{taint}},
    			},
    			taint:          &taint,
    			expectedUpdate: false,
    			expectedTaints: []v1.Taint{taint},
    		},
    		{
    			name: "update taint value",
    			node: &v1.Node{
    				Spec: v1.NodeSpec{Taints: []v1.Taint{taint}},
    			},
    			taint:          &taintUpdateValue,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 16 09:23:35 UTC 2022
    - 22.6K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types/fmt.go

    		b.WriteByte('-')
    		tconv2(b, t, 'v', fmtGo, visited)
    		return
    	}
    
    	// At this point, we might call tconv2 recursively. Add the current type to the visited list so we don't
    	// try to print it recursively.
    	// We record the offset in the result buffer where the type's text starts. This offset serves as a reference
    	// point for any later references to the same type.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 12 15:41:17 UTC 2023
    - 15.7K bytes
    - Viewed (0)
  7. src/encoding/gob/decode.go

    	v := state.decodeUint()
    	value.SetUint(v)
    }
    
    // Floating-point numbers are transmitted as uint64s holding the bits
    // of the underlying representation. They are sent byte-reversed, with
    // the exponent end coming out first, so integer floating point numbers
    // (for example) transmit more compactly. This routine does the
    // unswizzling.
    func float64FromBits(u uint64) float64 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 07 19:10:23 UTC 2023
    - 40.1K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/walk/range.go

    		}
    
    		// order.stmt arranged for a copy of the array/slice variable if needed.
    		ha := a
    
    		hv1 := typecheck.TempAt(base.Pos, ir.CurFunc, types.Types[types.TINT])
    		hn := typecheck.TempAt(base.Pos, ir.CurFunc, types.Types[types.TINT])
    
    		init = append(init, ir.NewAssignStmt(base.Pos, hv1, nil))
    		init = append(init, ir.NewAssignStmt(base.Pos, hn, ir.NewUnaryExpr(base.Pos, ir.OLEN, ha)))
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 20 14:52:33 UTC 2023
    - 17.6K bytes
    - Viewed (0)
  9. src/crypto/internal/nistec/generate.go

    func (p *{{.P}}Point) ScalarMult(q *{{.P}}Point, scalar []byte) (*{{.P}}Point, error) {
    	// Compute a {{.p}}Table for the base point q. The explicit New{{.P}}Point
    	// calls get inlined, letting the allocations live on the stack.
    	var table = {{.p}}Table{New{{.P}}Point(), New{{.P}}Point(), New{{.P}}Point(),
    		New{{.P}}Point(), New{{.P}}Point(), New{{.P}}Point(), New{{.P}}Point(),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:29:44 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  10. pkg/scheduler/framework/plugins/tainttoleration/taint_toleration_test.go

    			node: nodeWithTaints("nodeA", []v1.Taint{{Key: "foo", Value: "bar", Effect: "NoSchedule"}}),
    			wantStatus: framework.NewStatus(framework.UnschedulableAndUnresolvable,
    				"node(s) had untolerated taint {foo: bar}"),
    		},
    		{
    			name: "The pod has a toleration that keys and values match the taint on the node, the effect of toleration is empty, " +
    				"and the effect of taint is NoSchedule. Pod can be scheduled onto the node",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 17.5K bytes
    - Viewed (0)
Back to top