Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for feMulGeneric (0.18 sec)

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

    // Code generated by command: go run fe_amd64_asm.go -out ../fe_amd64.s -stubs ../fe_amd64.go -pkg field. DO NOT EDIT.
    
    //go:build !purego
    
    package field
    
    // feMul sets out = a * b. It works like feMulGeneric.
    //
    //go:noescape
    func feMul(out *Element, a *Element, b *Element)
    
    // feSquare sets out = a * a. It works like feSquareGeneric.
    //
    //go:noescape
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:29:44 UTC 2024
    - 395 bytes
    - Viewed (0)
  2. src/crypto/internal/edwards25519/field/fe_amd64_noasm.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build !amd64 || purego
    
    package field
    
    func feMul(v, x, y *Element) { feMulGeneric(v, x, y) }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:29:44 UTC 2024
    - 319 bytes
    - Viewed (0)
  3. src/crypto/internal/edwards25519/field/_asm/fe_amd64_asm.go

    	Store(r3lo, out.Field("l3"))
    	Store(r4lo, out.Field("l4"))
    
    	RET()
    }
    
    func feMul() {
    	TEXT("feMul", NOSPLIT, "func(out, a, b *Element)")
    	Doc("feMul sets out = a * b. It works like feMulGeneric.")
    	Pragma("noescape")
    
    	a := Dereference(Param("a"))
    	a0 := namedComponent{a.Field("l0"), "a0"}
    	a1 := namedComponent{a.Field("l1"), "a1"}
    	a2 := namedComponent{a.Field("l2"), "a2"}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:29:44 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  4. src/crypto/internal/edwards25519/field/fe_generic.go

    	return uint128{lo, hi}
    }
    
    // shiftRightBy51 returns a >> 51. a is assumed to be at most 115 bits.
    func shiftRightBy51(a uint128) uint64 {
    	return (a.hi << (64 - 51)) | (a.lo >> 51)
    }
    
    func feMulGeneric(v, a, b *Element) {
    	a0 := a.l0
    	a1 := a.l1
    	a2 := a.l2
    	a3 := a.l3
    	a4 := a.l4
    
    	b0 := b.l0
    	b1 := b.l1
    	b2 := b.l2
    	b3 := b.l3
    	b4 := b.l4
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 27 01:16:19 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  5. src/crypto/internal/edwards25519/field/fe_test.go

    		t.Error(err)
    	}
    }
    
    func TestFeMul(t *testing.T) {
    	asmLikeGeneric := func(a, b Element) bool {
    		a1 := a
    		a2 := a
    		b1 := b
    		b2 := b
    
    		feMulGeneric(&a1, &a1, &b1)
    		feMul(&a2, &a2, &b2)
    
    		if a1 != a2 || b1 != b2 {
    			t.Logf("got: %#v,\nexpected: %#v", a1, a2)
    			t.Logf("got: %#v,\nexpected: %#v", b1, b2)
    		}
    
    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. test/codegen/mathbits.go

    // after the first two lower 64 bit limb adds, but before either
    // high 64 bit limbs are added.
    //
    // This is what happened on PPC64 when compiling
    // crypto/internal/edwards25519/field.feMulGeneric.
    func Add64MultipleChains(a, b, c, d [2]uint64) {
    	var cx, d1, d2 uint64
    	a1, a2 := a[0], a[1]
    	b1, b2 := b[0], b[1]
    	c1, c2 := c[0], c[1]
    
    	// ppc64x: "ADDC\tR\\d+,", -"ADDE", -"MOVD\tXER"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:51:17 UTC 2024
    - 19.6K bytes
    - Viewed (0)
Back to top