Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 97 for MULTIPLY (0.23 sec)

  1. android/guava-tests/benchmark/com/google/common/math/BigIntegerMathBenchmark.java

      private static BigInteger oldSlowFactorial(int n) {
        if (n <= 20) {
          return BigInteger.valueOf(LongMath.factorial(n));
        } else {
          int k = 20;
          return BigInteger.valueOf(LongMath.factorial(k)).multiply(oldSlowFactorial(k, n));
        }
      }
    
      /** Returns the product of {@code n1} exclusive through {@code n2} inclusive. */
      private static BigInteger oldSlowFactorial(int n1, int n2) {
        assert n1 <= n2;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 3.3K bytes
    - Viewed (0)
  2. test/fixedbugs/issue11369.go

    // run
    
    // Copyright 2015 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.
    
    // Test that the half multiply resulting from a division
    // by a constant generates correct code.
    
    package main
    
    func main() {
    	var _ = 7 / "0"[0] // test case from #11369
    	var _ = 1 / "."[0] // test case from #11358
    	var x = 0 / "0"[0]
    	var y = 48 / "0"[0]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 26 15:55:22 UTC 2015
    - 567 bytes
    - Viewed (0)
  3. src/math/trig_reduce.go

    	z0 := (mPi4[digit] << bitshift) | (mPi4[digit+1] >> (64 - bitshift))
    	z1 := (mPi4[digit+1] << bitshift) | (mPi4[digit+2] >> (64 - bitshift))
    	z2 := (mPi4[digit+2] << bitshift) | (mPi4[digit+3] >> (64 - bitshift))
    	// Multiply mantissa by the digits and extract the upper two digits (hi, lo).
    	z2hi, _ := bits.Mul64(z2, ix)
    	z1hi, z1lo := bits.Mul64(z1, ix)
    	z0lo := z0 * ix
    	lo, c := bits.Add64(z1lo, z2hi, 0)
    	hi, _ := bits.Add64(z0lo, z1hi, c)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 3.3K bytes
    - Viewed (0)
  4. src/crypto/internal/edwards25519/scalar_alias_test.go

    	}
    
    	for name, f := range map[string]interface{}{
    		"Negate": func(v, x Scalar) bool {
    			return checkAliasingOneArg((*Scalar).Negate, v, x)
    		},
    		"Multiply": func(v, x, y Scalar) bool {
    			return checkAliasingTwoArgs((*Scalar).Multiply, v, x, y)
    		},
    		"Add": func(v, x, y Scalar) bool {
    			return checkAliasingTwoArgs((*Scalar).Add, v, x, y)
    		},
    		"Subtract": func(v, x, y Scalar) bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 28 17:26:17 UTC 2023
    - 3K bytes
    - Viewed (0)
  5. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/SwiftAppWithXCTest.groovy

    class SwiftAppWithXCTest extends MainWithXCTestSourceElement implements AppElement {
        final SwiftApp main = new SwiftApp()
        final XCTestSourceElement test = new SwiftAppTest(main, main.greeter, main.sum, main.multiply)
    
        String expectedOutput = main.expectedOutput
    
        SwiftAppWithXCTest() {
            super('app')
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 996 bytes
    - Viewed (0)
  6. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/SwiftAppWithSingleXCTestSuite.groovy

            @Override
            List<XCTestSourceFileElement> getTestSuites() {
                return [new XCTestSourceFileElement("CombinedTests") {
                    final delegate = new SwiftAppTest(main, main.greeter, main.sum, main.multiply)
    
                    @Override
                    List<XCTestCaseElement> getTestCases() {
                        return delegate.sumTest.testCases + delegate.greeterTest.testCases + delegate.multiplyTest.testCases
                    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/tests/compile_mlir_util/convert_mhlo_quant_to_int.mlir

    // CHECK:         %[[SUB:.*]] = s32[] subtract(s32[] %[[CONVERT_1]],
    // CHECK:         %[[CONVERT_2:.*]] = f32[] convert(s32[] %[[SUB]])
    // CHECK:         %[[MUL:.*]] = f32[] multiply(f32[] %[[CONVERT_2]],
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Sep 07 16:28:50 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  8. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/SwiftLibWithCppDepXCTest.groovy

            super(projectName)
            main = new SwiftLibWithCppDep(projectName, cppGreeter)
            test = new SwiftLibTest(main, main.greeter, main.sum, main.multiply)
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  9. src/math/rand/v2/pcg.go

    	// This does not seem worthwhile, at least for Go: not having any high
    	// bits in the multiplier reduces the effect of low bits on the highest bits,
    	// and it only saves 1 multiply out of 3.
    	// (On 32-bit systems, it saves 1 out of 6, since Mul64 is doing 4.)
    	const (
    		mulHi = 2549297995355413924
    		mulLo = 4865540595714422341
    		incHi = 6364136223846793005
    		incLo = 1442695040888963407
    	)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:31:58 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  10. src/vendor/golang.org/x/crypto/internal/poly1305/sum_ppc64le.s

    	MOVD 16(R3), R10 // h2
    	MOVD 24(R3), R11 // r0
    	MOVD 32(R3), R12 // r1
    
    	CMP R5, $16
    	BLT bytes_between_0_and_15
    
    loop:
    	POLY1305_ADD(R4, R8, R9, R10, R20, R21, R22)
    
    	PCALIGN $16
    multiply:
    	POLY1305_MUL(R8, R9, R10, R11, R12, R16, R17, R18, R14, R20, R21)
    	ADD $-16, R5
    	CMP R5, $16
    	BGE loop
    
    bytes_between_0_and_15:
    	CMP  R5, $0
    	BEQ  done
    	MOVD $0, R16 // h0
    	MOVD $0, R17 // h1
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Mar 09 00:09:40 UTC 2024
    - 3.2K bytes
    - Viewed (0)
Back to top