Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 40 for fnv1 (0.04 sec)

  1. src/reflect/type.go

    	for _, in := range in {
    		t := in.(*rtype)
    		args = append(args, t)
    		hash = fnv1(hash, byte(t.t.Hash>>24), byte(t.t.Hash>>16), byte(t.t.Hash>>8), byte(t.t.Hash))
    	}
    	if variadic {
    		hash = fnv1(hash, 'v')
    	}
    	hash = fnv1(hash, '.')
    	for _, out := range out {
    		t := out.(*rtype)
    		args = append(args, t)
    		hash = fnv1(hash, byte(t.t.Hash>>24), byte(t.t.Hash>>16), byte(t.t.Hash>>8), byte(t.t.Hash))
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 85.5K bytes
    - Viewed (0)
  2. src/hash/fnv/fnv.go

    	ret := byteorder.BeAppendUint64(in, s[0])
    	return byteorder.BeAppendUint64(ret, s[1])
    }
    
    const (
    	magic32          = "fnv\x01"
    	magic32a         = "fnv\x02"
    	magic64          = "fnv\x03"
    	magic64a         = "fnv\x04"
    	magic128         = "fnv\x05"
    	magic128a        = "fnv\x06"
    	marshaledSize32  = len(magic32) + 4
    	marshaledSize64  = len(magic64) + 8
    	marshaledSize128 = len(magic128) + 8*2
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 18 22:36:41 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  3. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r50/ArgumentPassingCrossVersionTest.groovy

        }
    
        def "Appends additional JVM arguments multiple times"() {
            when:
            BuildEnvironment env1 = loadBuildEnvironment { builder -> builder.addJvmArguments(JVM_ARG_1).addJvmArguments(JVM_ARG_2) }
    
            then:
            env1.java.jvmArguments.contains(JVM_ARG_1)
            env1.java.jvmArguments.contains(JVM_ARG_2)
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 7K bytes
    - Viewed (0)
  4. operator/pkg/util/reflect_test.go

    	type EnumType int64
    
    	tests := []struct {
    		inDesc string
    		inV1   any
    		inV2   any
    		want   bool
    	}{
    		{
    			inDesc: "success both are int32 types",
    			inV1:   int32(42),
    			inV2:   int32(43),
    			want:   true,
    		},
    		{
    			inDesc: "fail unmatching int types",
    			inV1:   int16(42),
    			inV2:   int32(43),
    			want:   false,
    		},
    		{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 25 19:30:47 UTC 2022
    - 10.2K bytes
    - Viewed (0)
  5. platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/resolver/ResolverCoordinatorTest.kt

            val env1 = environmentWithGetScriptSectionTokensReturning("buildscript" to sequenceOf("foo"))
            val env2 = environmentWithGetScriptSectionTokensReturning("buildscript" to sequenceOf("bar"))
    
            val action1 = resolverActionFor(env1, null)
            org.gradle.kotlin.dsl.fixtures.withInstanceOf<ResolverAction.RequestNew>(action1) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  6. test/typeparam/issue48016.go

    // license that can be found in the LICENSE file.
    
    package main
    
    import (
    	"fmt"
    	"strconv"
    )
    
    func test1[T any](fn func(T) int, v T) int {
    	fn1 := func() int {
    		var i interface{} = v
    		val := fn(i.(T))
    		return val
    	}
    	return fn1()
    }
    
    func main() {
    	want := 123
    	got := test1(func(s string) int {
    		r, err := strconv.Atoi(s)
    		if err != nil {
    			return 0
    		}
    		return r
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 574 bytes
    - Viewed (0)
  7. pkg/kubelet/cm/dra/state/checkpoint.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package state
    
    import (
    	"encoding/json"
    	"fmt"
    	"hash/fnv"
    	"strings"
    
    	"k8s.io/apimachinery/pkg/util/dump"
    	"k8s.io/kubernetes/pkg/kubelet/checkpointmanager"
    	"k8s.io/kubernetes/pkg/kubelet/checkpointmanager/checksum"
    	"k8s.io/kubernetes/pkg/kubelet/checkpointmanager/errors"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 18 15:23:10 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/tools/internal/bisect/bisect.go

    func (e *parseError) Error() string { return e.text }
    
    // FNV-1a implementation. See Go's hash/fnv/fnv.go.
    // Copied here for simplicity (can handle uints directly)
    // and to avoid the dependency.
    
    const (
    	offset64 uint64 = 14695981039346656037
    	prime64  uint64 = 1099511628211
    )
    
    func fnv(h uint64, x byte) uint64 {
    	h ^= uint64(x)
    	h *= prime64
    	return h
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 22 18:11:19 UTC 2023
    - 15.4K bytes
    - Viewed (0)
  9. pkg/kubelet/cm/cpumanager/state/checkpoint.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package state
    
    import (
    	"encoding/json"
    	"fmt"
    	"hash/fnv"
    	"strings"
    
    	"k8s.io/apimachinery/pkg/util/dump"
    	"k8s.io/kubernetes/pkg/kubelet/checkpointmanager"
    	"k8s.io/kubernetes/pkg/kubelet/checkpointmanager/checksum"
    	"k8s.io/kubernetes/pkg/kubelet/checkpointmanager/errors"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 27 01:24:22 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  10. src/os/executable_test.go

    		t.Fatalf("Child returned %q, want an absolute path", out)
    	}
    	if !sameFile(outs, ep) {
    		t.Fatalf("Child returned %q, not the same file as %q", out, ep)
    	}
    }
    
    func sameFile(fn1, fn2 string) bool {
    	fi1, err := os.Stat(fn1)
    	if err != nil {
    		return false
    	}
    	fi2, err := os.Stat(fn2)
    	if err != nil {
    		return false
    	}
    	return os.SameFile(fi1, fi2)
    }
    
    func init() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 05 23:35:32 UTC 2023
    - 3.4K bytes
    - Viewed (0)
Back to top