Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 49 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. src/hash/marshal_test.go

    	{"fnv32", func() hash.Hash { return fnv.New32() }, fromHex("666e760171ba3d77")},
    	{"fnv32a", func() hash.Hash { return fnv.New32a() }, fromHex("666e76027439f86f")},
    	{"fnv64", func() hash.Hash { return fnv.New64() }, fromHex("666e7603cc64e0e97692c637")},
    	{"fnv64a", func() hash.Hash { return fnv.New64a() }, fromHex("666e7604c522af9b0dede66f")},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 06 07:45:46 UTC 2017
    - 5.4K bytes
    - Viewed (0)
  6. 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)
  7. src/hash/fnv/fnv_test.go

    	{[]byte{0x70, 0x77, 0x2d, 0x38}, "ab", "fnv\x01\x05\f]~"},
    	{[]byte{0x43, 0x9c, 0x2f, 0x4b}, "abc", "fnv\x01\x05\f]~"},
    }
    
    var golden32a = []golden{
    	{[]byte{0x81, 0x1c, 0x9d, 0xc5}, "", "fnv\x02\x81\x1c\x9d\xc5"},
    	{[]byte{0xe4, 0x0c, 0x29, 0x2c}, "a", "fnv\x02\x81\x1c\x9d\xc5"},
    	{[]byte{0x4d, 0x25, 0x05, 0xca}, "ab", "fnv\x02\xe4\f),"},
    	{[]byte{0x1a, 0x47, 0xe9, 0x0b}, "abc", "fnv\x02\xe4\f),"},
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 01 21:04:12 UTC 2017
    - 7.3K bytes
    - Viewed (0)
  8. src/internal/abi/testdata/x.go

    package x
    
    import "internal/abi"
    
    func Fn0() // defined in assembly
    
    func Fn1() {}
    
    var FnExpr func()
    
    func test() {
    	_ = abi.FuncPCABI0(Fn0)           // line 16, no error
    	_ = abi.FuncPCABIInternal(Fn0)    // line 17, error
    	_ = abi.FuncPCABI0(Fn1)           // line 18, error
    	_ = abi.FuncPCABIInternal(Fn1)    // line 19, no error
    	_ = abi.FuncPCABI0(FnExpr)        // line 20, error
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 23 21:05:39 UTC 2021
    - 606 bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/authentication/token/cache/cache_striped.go

    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package cache
    
    import (
    	"hash/fnv"
    	"time"
    )
    
    // split cache lookups across N striped caches
    type stripedCache struct {
    	stripeCount uint32
    	hashFunc    func(string) uint32
    	caches      []cache
    }
    
    type hashFunc func(string) uint32
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 22 17:16:59 UTC 2018
    - 1.6K bytes
    - Viewed (0)
  10. 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)
Back to top