Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 2,116 for JPoint (0.22 sec)

  1. 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)
  2. build-logic/performance-testing/src/test/kotlin/gradlebuild/performance/tasks/DetermineBaselinesTest.kt

            mockGitOperation(listOf("git", "rev-parse", "--short", "master-fork-point"), "master-fork-point")
    
            // then
            verifyBaselineDetermination("my-branch", false, null, "5.1-commit-master-fork-point")
        }
    
        @Test
        fun `not determines fork point commit in security advisory fork`() {
            // given
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jun 21 09:29:24 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  3. 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)
  4. src/crypto/ecdsa/ecdsa.go

    	if err != nil {
    		return nil, err
    	}
    	return priv, nil
    }
    
    // randomPoint returns a random scalar and the corresponding point using the
    // procedure given in FIPS 186-4, Appendix B.5.2 (rejection sampling).
    func randomPoint[Point nistPoint[Point]](c *nistCurve[Point], rand io.Reader) (k *bigmod.Nat, p Point, err error) {
    	k = bigmod.NewNat()
    	for {
    		b := make([]byte, c.N.Size())
    		if _, err = io.ReadFull(rand, b); err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:11:18 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/bench_test.go

    			fn(a[i]-a[i-1], a[i+len(a)/2-2]-a[i+len(a)/2-1])
    		}
    	}
    }
    
    type Point struct {
    	X, Y int
    }
    
    //go:noinline
    func sign(p1, p2, p3 Point) bool {
    	return (p1.X-p3.X)*(p2.Y-p3.Y)-(p2.X-p3.X)*(p1.Y-p3.Y) < 0
    }
    
    func BenchmarkInvertLessThanNoov(b *testing.B) {
    	p1 := Point{1, 2}
    	p2 := Point{2, 3}
    	p3 := Point{3, 4}
    	for i := 0; i < b.N; i++ {
    		sign(p1, p2, p3)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 21 02:36:06 UTC 2023
    - 835 bytes
    - Viewed (0)
  6. src/crypto/internal/edwards25519/scalarmult_test.go

    func BenchmarkScalarBaseMult(b *testing.B) {
    	var p Point
    
    	for i := 0; i < b.N; i++ {
    		p.ScalarBaseMult(dalekScalar)
    	}
    }
    
    func BenchmarkScalarMult(b *testing.B) {
    	var p Point
    
    	for i := 0; i < b.N; i++ {
    		p.ScalarMult(dalekScalar, B)
    	}
    }
    
    func BenchmarkVarTimeDoubleScalarBaseMult(b *testing.B) {
    	var p Point
    
    	for i := 0; i < b.N; i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 28 17:26:17 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  7. platforms/core-configuration/declarative-dsl-provider/src/integTest/groovy/org/gradle/internal/declarativedsl/project/DeclarativeDslProjectBuildFileIntegrationSpec.groovy

                                System.out.println("id = " + getRestricted().getId().get());
                                Extension.Point point = referencePoint.getOrElse(getRestricted().point(-1, -1));
                                System.out.println("referencePoint = (" + point.getX() + ", " + point.getY() + ")");
                                System.out.println("primaryAccess = { " +
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 30 12:25:47 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  8. src/crypto/ecdh/nist.go

    	"crypto/internal/nistec"
    	"crypto/internal/randutil"
    	"errors"
    	"internal/byteorder"
    	"io"
    	"math/bits"
    )
    
    type nistCurve[Point nistPoint[Point]] struct {
    	name        string
    	newPoint    func() Point
    	scalarOrder []byte
    }
    
    // nistPoint is a generic constraint for the nistec Point types.
    type nistPoint[T any] interface {
    	Bytes() []byte
    	BytesX() ([]byte, error)
    	SetBytes([]byte) (T, error)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/hash/Murmur3_32HashFunction.java

    package com.google.common.hash;
    
    import static com.google.common.base.Preconditions.checkPositionIndexes;
    import static com.google.common.base.Preconditions.checkState;
    import static com.google.common.primitives.UnsignedBytes.toInt;
    
    import com.google.common.base.Charsets;
    import com.google.common.primitives.Chars;
    import com.google.common.primitives.Ints;
    import com.google.common.primitives.Longs;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Jun 15 20:59:00 UTC 2022
    - 11.9K bytes
    - Viewed (0)
  10. internal/s3select/sql/value.go

    		return errArithMismatchedTypes
    	}
    
    	// In case of first row, set v to a.
    	if isFirstRow {
    		intA, okI := a.ToInt()
    		if okI {
    			v.setInt(intA)
    			return nil
    		}
    		floatA, _ := a.ToFloat()
    		v.setFloat(floatA)
    		return nil
    	}
    
    	intV, ok1i := v.ToInt()
    	intA, ok2i := a.ToInt()
    	if ok1i && ok2i {
    		result := intV
    		if !isMax {
    			if intA < result {
    				result = intA
    			}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Feb 25 20:31:19 UTC 2022
    - 20.2K bytes
    - Viewed (0)
Back to top