Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 80 for Multiplication (0.19 sec)

  1. src/image/color/ycbcr.go

    	//	R = Y' + 1.40200*(Cr-128)
    	//	G = Y' - 0.34414*(Cb-128) - 0.71414*(Cr-128)
    	//	B = Y' + 1.77200*(Cb-128)
    	// https://www.w3.org/Graphics/JPEG/jfif3.pdf says Y but means Y'.
    	//
    	// Those formulae use non-integer multiplication factors. When computing,
    	// integer math is generally faster than floating point math. We multiply
    	// all of those factors by 1<<16 and round to the nearest integer:
    	//	 91881 = roundToNearestInteger(1.40200 * 65536).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:45 UTC 2023
    - 10.8K bytes
    - Viewed (0)
  2. src/cmd/internal/obj/riscv/cpu.go

    	AADDIW
    	ASLLIW
    	ASRLIW
    	ASRAIW
    	AADDW
    	ASLLW
    	ASRLW
    	ASUBW
    	ASRAW
    
    	// 5.3: Load and Store Instructions (RV64I)
    	ALD
    	ASD
    
    	// 7.1: Multiplication Operations
    	AMUL
    	AMULH
    	AMULHU
    	AMULHSU
    	AMULW
    	ADIV
    	ADIVU
    	AREM
    	AREMU
    	ADIVW
    	ADIVUW
    	AREMW
    	AREMUW
    
    	// 8.2: Load-Reserved/Store-Conditional Instructions
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 20 14:19:33 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  3. src/math/rand/v2/rand.go

    	//
    	// We want to compute
    	// 	hi, lo := bits.Mul64(r.Uint64(), n)
    	// In terms of 32-bit halves, this is:
    	// 	x1:x0 := r.Uint64()
    	// 	0:hi, lo1:lo0 := bits.Mul64(x1:x0, 0:n)
    	// Writing out the multiplication in terms of bits.Mul32 allows
    	// using direct hardware instructions and avoiding
    	// the computations involving these zeros.
    	x := r.Uint64()
    	lo1a, lo0 := bits.Mul32(uint32(x), n)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 02:25:49 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  4. src/cmd/asm/internal/asm/testdata/riscv64.s

    	SRAW	$1, X6					// 1b531340
    
    	// 5.3: Load and Store Instructions (RV64I)
    	LD	(X5), X6				// 03b30200
    	LD	4(X5), X6				// 03b34200
    	SD	X5, (X6)				// 23305300
    	SD	X5, 4(X6)				// 23325300
    
    	// 7.1: Multiplication Operations
    	MUL	X5, X6, X7				// b3035302
    	MULH	X5, X6, X7				// b3135302
    	MULHU	X5, X6, X7				// b3335302
    	MULHSU	X5, X6, X7				// b3235302
    	MULW	X5, X6, X7				// bb035302
    	DIV	X5, X6, X7				// b3435302
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 22 04:42:21 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/math/BigIntegerMath.java

        // Strip off 2s from this value.
        int shift = Long.numberOfTrailingZeros(product);
        product >>= shift;
    
        // Use floor(log2(num)) + 1 to prevent overflow of multiplication.
        int productBits = LongMath.log2(product, FLOOR) + 1;
        int bits = LongMath.log2(startingNumber, FLOOR) + 1;
        // Check for the next power of two boundary, to save us a CLZ operation.
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  6. test/codegen/arithmetic.go

    	r := a - (b + a)
    	return r
    }
    
    func AddAddSubSimplify(a, b, c int) int {
    	// amd64:-"SUBQ"
    	// ppc64x:-"SUB"
    	r := a + (b + (c - a))
    	return r
    }
    
    // -------------------- //
    //    Multiplication    //
    // -------------------- //
    
    func Pow2Muls(n1, n2 int) (int, int) {
    	// amd64:"SHLQ\t[$]5",-"IMULQ"
    	// 386:"SHLL\t[$]5",-"IMULL"
    	// arm:"SLL\t[$]5",-"MUL"
    	// arm64:"LSL\t[$]5",-"MUL"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:28:00 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  7. src/crypto/cipher/gcm.go

    func (g *gcm) mul(y *gcmFieldElement) {
    	var z gcmFieldElement
    
    	for i := 0; i < 2; i++ {
    		word := y.high
    		if i == 1 {
    			word = y.low
    		}
    
    		// Multiplication works by multiplying z by 16 and adding in
    		// one of the precomputed multiples of H.
    		for j := 0; j < 64; j += 4 {
    			msw := z.high & 0xf
    			z.high >>= 4
    			z.high |= z.low << 60
    			z.low >>= 4
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  8. src/math/big/float_test.go

    		}
    
    	}
    }
    
    // TestFloatMul tests Float.Mul/Quo by comparing the result of a "manual"
    // multiplication/division of arguments represented by Bits values with the
    // respective Float multiplication/division for a variety of precisions
    // and rounding modes.
    func TestFloatMul(t *testing.T) {
    	for _, xbits := range bitsList {
    		for _, ybits := range bitsList {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 51.9K bytes
    - Viewed (0)
  9. guava/src/com/google/common/math/BigIntegerMath.java

        // Strip off 2s from this value.
        int shift = Long.numberOfTrailingZeros(product);
        product >>= shift;
    
        // Use floor(log2(num)) + 1 to prevent overflow of multiplication.
        int productBits = LongMath.log2(product, FLOOR) + 1;
        int bits = LongMath.log2(startingNumber, FLOOR) + 1;
        // Check for the next power of two boundary, to save us a CLZ operation.
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  10. src/crypto/internal/nistec/p256.go

    	if len(scalar) != p256ElementLength {
    		return nil, errors.New("invalid scalar length")
    	}
    	tables := p.generatorTable()
    
    	// This is also a scalar multiplication with a four-bit window like in
    	// ScalarMult, but in this case the doublings are precomputed. The value
    	// [windowValue]G added at iteration k would normally get doubled
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:29:44 UTC 2024
    - 17.2K bytes
    - Viewed (0)
Back to top