Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. src/crypto/internal/nistec/p256_ordinv.go

    	}
    
    	x := new(p256OrdElement)
    	p256OrdBigToLittle(x, (*[32]byte)(k))
    	p256OrdReduce(x)
    
    	// Inversion is implemented as exponentiation by n - 2, per Fermat's little theorem.
    	//
    	// The sequence of 38 multiplications and 254 squarings is derived from
    	// https://briansmith.org/ecc-inversion-addition-chains-01#p256_scalar_inversion
    	_1 := new(p256OrdElement)
    	_11 := new(p256OrdElement)
    	_101 := new(p256OrdElement)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:29:44 UTC 2024
    - 3K bytes
    - Viewed (0)
  2. src/math/rand/zipf.go

    // Copyright 2009 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // W.Hormann, G.Derflinger:
    // "Rejection-Inversion to Generate Variates
    // from Monotone Discrete Distributions"
    // http://eeyore.wu-wien.ac.at/papers/96-04-04.wh-der.ps.gz
    
    package rand
    
    import "math"
    
    // A Zipf generates Zipf distributed variates.
    type Zipf struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  3. src/math/rand/v2/zipf.go

    // Copyright 2009 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // W.Hormann, G.Derflinger:
    // "Rejection-Inversion to Generate Variates
    // from Monotone Discrete Distributions"
    // http://eeyore.wu-wien.ac.at/papers/96-04-04.wh-der.ps.gz
    
    package rand
    
    import "math"
    
    // A Zipf generates Zipf distributed variates.
    type Zipf struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 30 14:29:30 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  4. operator/pkg/helmreconciler/common.go

    	// IstioComponentLabelStr indicates which Istio component a resource belongs to.
    	IstioComponentLabelStr = name.OperatorAPINamespace + "/component"
    	// istioVersionLabelStr indicates the Istio version of the installation.
    	istioVersionLabelStr = name.OperatorAPINamespace + "/version"
    )
    
    var (
    	// TestMode sets the controller into test mode. Used for unit tests to bypass things like waiting on resources.
    	TestMode = false
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Dec 12 17:12:54 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. test/codegen/condmove.go

    	a := 1.0
    	if x <= y {
    		a = 2.0
    	}
    	// amd64:-"CMOV"
    	// arm64:-"CSEL"
    	// ppc64x:-"ISEL"
    	// wasm:-"Select"
    	return a
    }
    
    // On amd64, the following patterns trigger comparison inversion.
    // Test that we correctly invert the CMOV condition
    var gsink int64
    var gusink uint64
    
    func cmovinvert1(x, y int64) int64 {
    	if x < gsink {
    		y = -y
    	}
    	// amd64:"CMOVQGT"
    	return y
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 06 20:57:33 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  8. src/archive/tar/strconv.go

    	// complement encoded number in big-endian byte order.
    	if len(b) > 0 && b[0]&0x80 != 0 {
    		// Handling negative numbers relies on the following identity:
    		//	-a-1 == ^a
    		//
    		// If the number is negative, we use an inversion mask to invert the
    		// data bytes and treat the value as an unsigned number.
    		var inv byte // 0x00 if positive or zero, 0xff if negative
    		if b[0]&0x40 != 0 {
    			inv = 0xff
    		}
    
    		var x uint64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 01 14:28:42 UTC 2023
    - 9K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top