Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for testAliasing (0.14 sec)

  1. src/crypto/internal/alias/alias_test.go

    	if inexact != inexactOverlap {
    		t.Errorf("%d: wrong InexactOverlap result, expected %v, got %v", i, inexactOverlap, any)
    	}
    }
    
    func TestAliasing(t *testing.T) {
    	for i, tt := range aliasingTests {
    		testAliasing(t, i, tt.x, tt.y, tt.anyOverlap, tt.inexactOverlap)
    		testAliasing(t, i, tt.y, tt.x, tt.anyOverlap, tt.inexactOverlap)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 17 18:46:05 UTC 2022
    - 1.3K bytes
    - Viewed (0)
  2. src/crypto/internal/edwards25519/field/fe_alias_test.go

    		return x == x1 && y == y1
    	}
    }
    
    // TestAliasing checks that receivers and arguments can alias each other without
    // leading to incorrect results. That is, it ensures that it's safe to write
    //
    //	v.Invert(v)
    //
    // or
    //
    //	v.Add(v, v)
    //
    // without any of the inputs getting clobbered by the output being written.
    func TestAliasing(t *testing.T) {
    	type target struct {
    		name     string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 28 17:26:17 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  3. src/math/big/alias_test.go

    		t.Logf("f(v, y1, y2) != f(y, y, y)")
    		return false
    	}
    
    	// Ensure the arguments were not modified.
    	return equal(x, x1) && equal(y, y1)
    }
    
    func TestAliasing(t *testing.T) {
    	for name, f := range map[string]interface{}{
    		"Abs": func(v, x bigInt) bool {
    			return checkAliasingOneArg(t, (*big.Int).Abs, v.Int, x.Int)
    		},
    		"Add": func(v, x, y bigInt) bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 19 15:49:05 UTC 2022
    - 8.8K bytes
    - Viewed (0)
Back to top