Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 1,085 for toint (0.04 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. tests/scanner_valuer_test.go

    }
    
    type NullString struct {
    	sql.NullString
    }
    
    type Point struct {
    	X, Y int
    }
    
    func (point Point) GormDataType() string {
    	return "geo"
    }
    
    func (point Point) GormValue(ctx context.Context, db *gorm.DB) clause.Expr {
    	return clause.Expr{
    		SQL:  "ST_PointFromText(?)",
    		Vars: []interface{}{fmt.Sprintf("POINT(%d %d)", point.X, point.Y)},
    	}
    }
    
    func TestGORMValuer(t *testing.T) {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 07 07:02:07 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  10. src/crypto/internal/edwards25519/edwards25519.go

    // (Re)addition and subtraction.
    
    // Add sets v = p + q, and returns v.
    func (v *Point) Add(p, q *Point) *Point {
    	checkInitialized(p, q)
    	qCached := new(projCached).FromP3(q)
    	result := new(projP1xP1).Add(p, qCached)
    	return v.fromP1xP1(result)
    }
    
    // Subtract sets v = p - q, and returns v.
    func (v *Point) Subtract(p, q *Point) *Point {
    	checkInitialized(p, q)
    	qCached := new(projCached).FromP3(q)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 13 19:21:54 UTC 2023
    - 10.3K bytes
    - Viewed (0)
Back to top