Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for carryPropagateGeneric (0.16 sec)

  1. src/crypto/internal/edwards25519/field/fe_test.go

    func TestCarryPropagate(t *testing.T) {
    	asmLikeGeneric := func(a [5]uint64) bool {
    		t1 := &Element{a[0], a[1], a[2], a[3], a[4]}
    		t2 := &Element{a[0], a[1], a[2], a[3], a[4]}
    
    		t1.carryPropagate()
    		t2.carryPropagateGeneric()
    
    		if *t1 != *t2 {
    			t.Logf("got: %#v,\nexpected: %#v", t1, t2)
    		}
    
    		return *t1 == *t2 && isInBounds(t2)
    	}
    
    	if err := quick.Check(asmLikeGeneric, quickCheckConfig(1024)); err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 28 17:26:17 UTC 2023
    - 13.9K bytes
    - Viewed (0)
  2. src/crypto/internal/edwards25519/field/fe.go

    	// assembly. Probably because the body of this function is so simple that
    	// the compiler can figure out better optimizations by inlining the carry
    	// propagation.
    	return v.carryPropagateGeneric()
    }
    
    // Subtract sets v = a - b, and returns v.
    func (v *Element) Subtract(a, b *Element) *Element {
    	// We first add 2 * p, to guarantee the subtraction won't underflow, and
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 11.8K bytes
    - Viewed (0)
Back to top