Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 570 for add64 (0.07 sec)

  1. test/codegen/mathbits.go

    	// riscv64: "ADD",-"SLTU"
    	r, _ := bits.Add64(x, y, ci)
    	return r
    }
    
    func Add64M(p, q, r *[3]uint64) {
    	var c uint64
    	r[0], c = bits.Add64(p[0], q[0], c)
    	// arm64:"ADCS",-"ADD\t",-"CMP"
    	// amd64:"ADCQ",-"NEGL",-"SBBQ",-"NEGQ"
    	// ppc64x: -"ADDC", "ADDE", -"ADDZE"
    	// s390x:"ADDE",-"ADDC\t[$]-1,"
    	r[1], c = bits.Add64(p[1], q[1], c)
    	r[2], c = bits.Add64(p[2], q[2], c)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:51:17 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  2. src/vendor/golang.org/x/crypto/internal/poly1305/sum_generic.go

    		if len(msg) >= TagSize {
    			h0, c = bits.Add64(h0, binary.LittleEndian.Uint64(msg[0:8]), 0)
    			h1, c = bits.Add64(h1, binary.LittleEndian.Uint64(msg[8:16]), c)
    			h2 += c + 1
    
    			msg = msg[TagSize:]
    		} else {
    			var buf [TagSize]byte
    			copy(buf[:], msg)
    			buf[len(msg)] = 1
    
    			h0, c = bits.Add64(h0, binary.LittleEndian.Uint64(buf[0:8]), 0)
    			h1, c = bits.Add64(h1, binary.LittleEndian.Uint64(buf[8:16]), c)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 19:00:13 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  3. src/math/rand/v2/pcg.go

    		incHi = 6364136223846793005
    		incLo = 1442695040888963407
    	)
    
    	// state = state * mul + inc
    	hi, lo = bits.Mul64(p.lo, mulLo)
    	hi += p.hi*mulLo + p.lo*mulHi
    	lo, c := bits.Add64(lo, incLo, 0)
    	hi, _ = bits.Add64(hi, incHi, c)
    	p.lo = lo
    	p.hi = hi
    	return hi, lo
    }
    
    // Uint64 return a uniformly-distributed random uint64 value.
    func (p *PCG) Uint64() uint64 {
    	hi, lo := p.next()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:31:58 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  4. src/runtime/internal/math/math.go

    	lo = x * y
    	return
    }
    
    // Add64 returns the sum with carry of x, y and carry: sum = x + y + carry.
    // The carry input must be 0 or 1; otherwise the behavior is undefined.
    // The carryOut output is guaranteed to be 0 or 1.
    //
    // This function's execution time does not depend on the inputs.
    // On supported platforms this is an intrinsic lowered by the compiler.
    func Add64(x, y, carry uint64) (sum, carryOut uint64) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 16 16:03:04 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  5. src/crypto/internal/edwards25519/field/fe_generic.go

    // bits.Mul64 and bits.Add64 intrinsics.
    type uint128 struct {
    	lo, hi uint64
    }
    
    // mul64 returns a * b.
    func mul64(a, b uint64) uint128 {
    	hi, lo := bits.Mul64(a, b)
    	return uint128{lo, hi}
    }
    
    // addMul64 returns v + a * b.
    func addMul64(v uint128, a, b uint64) uint128 {
    	hi, lo := bits.Mul64(a, b)
    	lo, c := bits.Add64(lo, v.lo, 0)
    	hi, _ = bits.Add64(hi, v.hi, c)
    	return uint128{lo, hi}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 27 01:16:19 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/_gen/generic.rules

    // See issue 37881.
    // Note: we don't need to handle any (x-C) cases because we already rewrite
    // (x-C) to (x+(-C)).
    
    // x + (C + z) -> C + (x + z)
    (Add64 (Add64 i:(Const64 <t>) z) x) && (z.Op != OpConst64 && x.Op != OpConst64) => (Add64 i (Add64 <t> z x))
    (Add32 (Add32 i:(Const32 <t>) z) x) && (z.Op != OpConst32 && x.Op != OpConst32) => (Add32 i (Add32 <t> z x))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 22:21:05 UTC 2024
    - 135.3K bytes
    - Viewed (0)
  7. src/crypto/internal/nistec/p256_asm.go

    	return int(b)
    }
    
    // p256Add sets res = x + y.
    func p256Add(res, x, y *p256Element) {
    	var c, b uint64
    	t1 := make([]uint64, 4)
    	t1[0], c = bits.Add64(x[0], y[0], 0)
    	t1[1], c = bits.Add64(x[1], y[1], c)
    	t1[2], c = bits.Add64(x[2], y[2], c)
    	t1[3], c = bits.Add64(x[3], y[3], c)
    	t2 := make([]uint64, 4)
    	t2[0], b = bits.Sub64(t1[0], p256P[0], 0)
    	t2[1], b = bits.Sub64(t1[1], p256P[1], b)
    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/math/bits/bits.go

    	sum = uint32(sum64)
    	carryOut = uint32(sum64 >> 32)
    	return
    }
    
    // Add64 returns the sum with carry of x, y and carry: sum = x + y + carry.
    // The carry input must be 0 or 1; otherwise the behavior is undefined.
    // The carryOut output is guaranteed to be 0 or 1.
    //
    // This function's execution time does not depend on the inputs.
    func Add64(x, y, carry uint64) (sum, carryOut uint64) {
    	sum = x + y + carry
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 17.9K bytes
    - Viewed (0)
  9. src/crypto/internal/hpke/hpke.go

    		return nil, errors.New("unsupported KEM id")
    	}
    	return kemInfo.curve.NewPublicKey(bytes)
    }
    
    type uint128 struct {
    	hi, lo uint64
    }
    
    func (u uint128) addOne() uint128 {
    	lo, carry := bits.Add64(u.lo, 1, 0)
    	return uint128{u.hi + carry, lo}
    }
    
    func (u uint128) bitLen() int {
    	return bits.Len64(u.hi) + bits.Len64(u.lo)
    }
    
    func (u uint128) bytes() []byte {
    	b := make([]byte, 16)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:33:33 UTC 2024
    - 7K bytes
    - Viewed (0)
  10. test/codegen/bits.go

    	// amd64:"BTSQ\t[$]63"
    	n += a | (1 << 63)
    
    	// amd64:"BTSQ\t[$]60"
    	n += a | (1 << 60)
    
    	// amd64:"ORQ\t[$]1"
    	n += a | (1 << 0)
    
    	return n
    }
    
    func bitoff64(a, b uint64) (n uint64) {
    	// amd64:"BTRQ"
    	n += b &^ (1 << (a & 63))
    
    	// amd64:"BTRQ\t[$]63"
    	n += a &^ (1 << 63)
    
    	// amd64:"BTRQ\t[$]60"
    	n += a &^ (1 << 60)
    
    	// amd64:"ANDQ\t[$]-2"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 7.8K bytes
    - Viewed (0)
Back to top