Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 80 for putNat (0.14 sec)

  1. src/math/big/nat.go

    			}
    
    			zz = zz.mul(z, *powers[yi>>(_W-n)])
    			zz, z = z, zz
    			z = z.trunc(z, logM)
    
    			yi <<= n
    			advance = true
    		}
    	}
    
    	*zzp = zz
    	putNat(zzp)
    	for i := range powers {
    		putNat(powers[i])
    	}
    
    	return z.norm()
    }
    
    // expNNMontgomery calculates x**y mod m using a fixed, 4-bit window.
    // Uses Montgomery representation.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:31:58 UTC 2024
    - 31.7K bytes
    - Viewed (0)
  2. src/math/big/natdiv.go

    	tmp := getNat(3 * len(v))
    	temps := make([]*nat, recDepth)
    
    	clear(z)
    	z.divRecursiveStep(u, v, 0, tmp, temps)
    
    	// Free temporaries.
    	for _, n := range temps {
    		if n != nil {
    			putNat(n)
    		}
    	}
    	putNat(tmp)
    }
    
    // divRecursiveStep is the actual implementation of recursive division.
    // It adds ⌊u/v⌋ to z and overwrites u with the remainder r.
    // z must be large enough to hold ⌊u/v⌋.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 14 17:02:38 UTC 2024
    - 34.4K bytes
    - Viewed (0)
  3. platforms/core-execution/hashing/src/main/java/org/gradle/internal/hash/HasherExtensions.java

            hasher.putInt(array.length);
            for (double d : array) {
                hasher.putDouble(d);
            }
        }
    
        public static void putFloats(Hasher hasher, float[] array) {
            hasher.putInt(array.length);
            for (float f : array) {
                hasher.putInt(Float.floatToRawIntBits(f));
            }
        }
    
        public static void putLongs(Hasher hasher, long[] array) {
            hasher.putInt(array.length);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 11 20:22:02 UTC 2024
    - 2K bytes
    - Viewed (0)
  4. platforms/core-execution/hashing/src/main/java/org/gradle/internal/hash/Hashing.java

            public void putHash(HashCode hashCode) {
                hasher.putInt(hashCode.length());
                hasher.putHash(hashCode);
            }
    
            @Override
            public void putInt(int value) {
                hasher.putInt(4);
                hasher.putInt(value);
            }
    
            @Override
            public void putLong(long value) {
                hasher.putInt(8);
                hasher.putLong(value);
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 16:02:30 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  5. test/fixedbugs/bug022.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    func putint(digits *string) {
    	var i byte;
    	i = (*digits)[7];  // compiles
    	i = digits[7];  // ERROR "illegal|is not|invalid"
    	_ = i;
    }
    
    func main() {
    	s := "asdfasdfasdfasdf";
    	putint(&s);
    }
    
    /*
    bug022.go:8: illegal types for operand
    	(*<string>*STRING) INDEXPTR (<int32>INT32)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 04:48:57 UTC 2012
    - 529 bytes
    - Viewed (0)
  6. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/MapPropertyExtensions.java

         *
         * @param self the {@link MapProperty}
         * @param key the key
         * @param value the value or a {@link Provider} of the value
         */
        @SuppressWarnings("unchecked")
        public static <K, V> void putAt(MapProperty<K, V> self, K key, Object value) {
            if (value instanceof Provider<?>) {
                self.put(key, (Provider) value);
            } else {
                self.put(key, (V) value);
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  7. platforms/core-execution/hashing/src/test/groovy/org/gradle/internal/hash/HashingTest.groovy

            hasher.putInt(1)
            hasher.hash()
    
            when:
            hasher.hash()
    
            then:
            thrown(IllegalStateException)
        }
    
        def 'hashers can overlap'() {
            when:
            def hasher1 = Hashing.newHasher()
            hasher1.putInt(1)
    
            and:
            def hasher2 = Hashing.newHasher()
            hasher2.putInt(1)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:43:29 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  8. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/repositories/descriptor/UrlRepositoryDescriptor.java

                cacheHasher.putString(implementation.getName());
                cacheHasher.putInt(metadataResources.size());
                for (ResourcePattern ivyPattern : metadataResources) {
                    cacheHasher.putString(ivyPattern.getPattern());
                }
                cacheHasher.putInt(artifactResources.size());
                for (ResourcePattern artifactPattern : artifactResources) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 00:21:07 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  9. guava/src/com/google/common/hash/Hasher.java

      Hasher putBytes(ByteBuffer bytes);
    
      @CanIgnoreReturnValue
      @Override
      Hasher putShort(short s);
    
      @CanIgnoreReturnValue
      @Override
      Hasher putInt(int i);
    
      @CanIgnoreReturnValue
      @Override
      Hasher putLong(long l);
    
      /** Equivalent to {@code putInt(Float.floatToRawIntBits(f))}. */
      @CanIgnoreReturnValue
      @Override
      Hasher putFloat(float f);
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Jun 15 20:59:00 UTC 2022
    - 5.5K bytes
    - Viewed (0)
  10. platforms/software/maven/src/integTest/groovy/org/gradle/api/publish/maven/MavenPublishConsoleIntegrationTest.groovy

            def build = executer.withTasks("publish").withArguments("--max-workers=2").start()
            putJar.waitForAllPendingCalls()
    
            then:
            ConcurrentTestUtil.poll {
                RichConsoleStyling.assertHasWorkInProgress(build, "> :publishMavenPublicationToMavenRepository > test-1.2.jar")
            }
    
            when:
            putJar.releaseAll()
            putJarSha.waitForAllPendingCalls()
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 14:02:46 UTC 2023
    - 5.4K bytes
    - Viewed (0)
Back to top