Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for addVV (0.03 sec)

  1. src/math/big/arith_decl.go

    // implemented in arith_$GOARCH.s
    
    // addVV should be an internal detail,
    // but widely used packages access it using linkname.
    // Notable members of the hall of shame include:
    //   - github.com/remyoudompheng/bigfft
    //
    // Do not remove or change the type signature.
    // See go.dev/issue/67401.
    //
    //go:linkname addVV
    //go:noescape
    func addVV(z, x, y []Word) (c Word)
    
    // subVV should be an internal detail,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:15:13 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  2. src/math/big/nat.go

    		return z.add(y, x)
    	case m == 0:
    		// n == 0 because m >= n; result is 0
    		return z[:0]
    	case n == 0:
    		// result is x
    		return z.set(x)
    	}
    	// m > 0
    
    	z = z.make(m + 1)
    	c := addVV(z[0:n], x, y)
    	if m > n {
    		c = addVW(z[n:m], x[n:], c)
    	}
    	z[m] = c
    
    	return z.norm()
    }
    
    func (z nat) sub(x, y nat) nat {
    	m := len(x)
    	n := len(y)
    
    	switch {
    	case m < n:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:31:58 UTC 2024
    - 31.7K bytes
    - Viewed (0)
  3. src/math/big/arith_ppc64x.s

    #include "textflag.h"
    
    // This file provides fast assembly versions for the elementary
    // arithmetic operations on vectors implemented in arith.go.
    
    // func addVV(z, y, y []Word) (c Word)
    // z[i] = x[i] + y[i] for all i, carrying
    TEXT ·addVV(SB), NOSPLIT, $0
    	MOVD  z_len+8(FP), R7   // R7 = z_len
    	MOVD  x+24(FP), R8      // R8 = x[]
    	MOVD  y+48(FP), R9      // R9 = y[]
    	MOVD  z+0(FP), R10      // R10 = z[]
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:17:17 UTC 2024
    - 16.8K bytes
    - Viewed (0)
  4. src/math/big/natdiv.go

    		// If it underflows, q̂·v > u, which we fix up
    		// by decrementing q̂ and adding v back.
    		c := subVV(u[j:j+qhl], u[j:], qhatv)
    		if c != 0 {
    			c := addVV(u[j:j+n], u[j:], v)
    			// If n == qhl, the carry from subVV and the carry from addVV
    			// cancel out and don't affect u[j+n].
    			if n < qhl {
    				u[j+n] += c
    			}
    			qhat--
    		}
    
    		// Save quotient digit.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 14 17:02:38 UTC 2024
    - 34.4K bytes
    - Viewed (0)
Back to top