Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 280 for inversion (0.16 sec)

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

    	r.reduce()
    
    	if one != r {
    		t.Errorf("inversion identity failed, got: %x", r)
    	}
    
    	var bytes [32]byte
    
    	_, err := io.ReadFull(rand.Reader, bytes[:])
    	if err != nil {
    		t.Fatal(err)
    	}
    	x.SetBytes(bytes[:])
    
    	xinv.Invert(&x)
    	r.Multiply(&x, &xinv)
    	r.reduce()
    
    	if one != r {
    		t.Errorf("random inversion identity failed, got: %x for field element %x", r, x)
    	}
    
    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/image/jpeg/reader.go

    	if d.adobeTransform != adobeTransformUnknown {
    		// Convert the YCbCr part of the YCbCrK to RGB, invert the RGB to get
    		// CMY, and patch in the original K. The RGB to CMY inversion cancels
    		// out the 'Adobe inversion' described in the applyBlack doc comment
    		// above, so in practice, only the fourth channel (black) is inverted.
    		bounds := d.img3.Bounds()
    		img := image.NewRGBA(bounds)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:45 UTC 2023
    - 22.5K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/apis/flowcontrol/bootstrap/default.go

    					Type: flowcontrol.LimitResponseTypeReject,
    				},
    			},
    		})
    )
    
    // Mandatory FlowSchema objects
    var (
    	// "exempt" priority-level is used for preventing priority inversion and ensuring that sysadmin
    	// requests are always possible.
    	MandatoryFlowSchemaExempt = newFlowSchema(
    		"exempt",
    		flowcontrol.PriorityLevelConfigurationNameExempt,
    		1,  // matchingPrecedence
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:18:40 UTC 2023
    - 20.5K bytes
    - Viewed (0)
  4. src/math/big/prime.go

    	// "It is also possible to recover U_n using Crandall and Pomerance equation 3.13:
    	// U_n = D^-1 (2V_{n+1} - PV_n) allowing us to run the full extra-strong test
    	// at the cost of a single modular inversion. This computation is easy and fast in GMP,
    	// so we can get the full extra-strong test at essentially the same performance as the
    	// almost extra strong test."
    
    	// Compute Lucas sequence V_s(b, 1), where:
    	//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 02 14:43:52 UTC 2022
    - 10.4K bytes
    - Viewed (0)
  5. src/crypto/internal/edwards25519/field/fe.go

    	return v.Subtract(feZero, a)
    }
    
    // Invert sets v = 1/z mod p, and returns v.
    //
    // If z == 0, Invert returns v = 0.
    func (v *Element) Invert(z *Element) *Element {
    	// Inversion is implemented as exponentiation with exponent p − 2. It uses the
    	// same sequence of 255 squarings and 11 multiplications as [Curve25519].
    	var z2, z9, z11, z2_5_0, z2_10_0, z2_20_0, z2_50_0, z2_100_0, t Element
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  6. src/cmd/go/internal/modfetch/codehost/vcs.go

    			}
    			hash := f[1]
    			version := rev
    			if strings.HasPrefix(hash, version) {
    				version = hash // extend to full hash
    			}
    			info := &RevInfo{
    				Origin: &Origin{
    					Hash: hash,
    				},
    				Name:    hash,
    				Short:   ShortenSHA1(hash),
    				Time:    t,
    				Version: version,
    			}
    			return info, nil
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:50:24 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  7. src/crypto/internal/nistec/p256_asm.go

    	p256MovCond(q, p1, p2, cond)
    	return q
    }
    
    // p256Inverse sets out to in⁻¹ mod p. If in is zero, out will be zero.
    func p256Inverse(out, in *p256Element) {
    	// Inversion is calculated through exponentiation by p - 2, per Fermat's
    	// little theorem.
    	//
    	// The sequence of 12 multiplications and 255 squarings is derived from the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 21.4K bytes
    - Viewed (0)
  8. src/index/suffixarray/sais.go

    	// Inverting the bytes increases the chance that a
    	// 4-byte encoding will still be ≥ len(text).
    	// In particular, if the first byte is ASCII (<= 0x7E, so +1 <= 0x7F)
    	// then the high bit of the inversion will be set,
    	// making it clearly not a valid length (it would be a negative one).
    	//
    	// cx holds the pre-inverted encoding (the packed incremented bytes).
    	cx := uint32(0) // byte-only
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 18 23:57:18 UTC 2024
    - 32.4K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/apis/apidiscovery/v2/conversion.go

    */
    
    // This file was duplicated from the auto-generated file by conversion-gen in
    // k8s.io/kubernetes/pkg/apis/apidiscovery Unlike most k8s types discovery is
    // served by all apiservers and conversion is needed by all apiservers. The
    // concept of internal/hub type does not exist for discovery as we work directly
    // with the versioned types.
    
    // The conversion code here facilities conversion strictly between v2beta1 and
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 18:15:22 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  10. pkg/apis/core/v1/conversion.go

    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/apimachinery/pkg/conversion"
    	"k8s.io/apimachinery/pkg/runtime"
    	"k8s.io/apimachinery/pkg/util/validation/field"
    	"k8s.io/kubernetes/pkg/apis/apps"
    	"k8s.io/kubernetes/pkg/apis/core"
    	utilpointer "k8s.io/utils/pointer"
    )
    
    func addConversionFuncs(scheme *runtime.Scheme) error {
    	// Add field conversion funcs.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 19 22:30:55 UTC 2024
    - 19K bytes
    - Viewed (0)
Back to top