Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. 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)
  2. 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)
  3. pkg/kubelet/cm/devicemanager/pod_devices_test.go

    				resource1: newContainerAllocateResponse(
    					withDevices(map[string]string{"/dev/r1": "/dev/r1"}),
    					withMounts(map[string]string{"/home/lib1": "/home/lib1"}),
    					withEnvs(map[string]string{"ENV1": "VALUE1"}),
    					withCDIDevices("vendor1.com/class1=device1", "vendor2.com/class2=device2"),
    				),
    			},
    			expected: &DeviceRunContainerOptions{
    				Devices: []kubecontainer.DeviceInfo{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  4. src/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 integers more directly)
    // and to avoid importing hash/fnv.
    
    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: Fri May 03 17:28:43 UTC 2024
    - 22.9K bytes
    - Viewed (0)
  5. pilot/pkg/model/extensions_test.go

    			vm: &extensions.VmConfig{
    				Env: []*extensions.EnvVar{
    					{
    						Name:      "POD_NAME",
    						ValueFrom: extensions.EnvValueSource_HOST,
    					},
    					{
    						Name:  "ENV1",
    						Value: "VAL1",
    					},
    				},
    			},
    			policy: extensions.PullPolicy_UNSPECIFIED_POLICY,
    			expected: &wasmextensions.PluginConfig_VmConfig{
    				VmConfig: &wasmextensions.VmConfig{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 22:20:44 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  6. pkg/controller/history/controller_history.go

    	return cr, nil
    }
    
    // HashControllerRevision hashes the contents of revision's Data using FNV hashing. If probe is not nil, the byte value
    // of probe is added written to the hash as well. The returned hash will be a safe encoded string to avoid bad words.
    func HashControllerRevision(revision *apps.ControllerRevision, probe *int32) string {
    	hf := fnv.New32()
    	if len(revision.Data.Raw) > 0 {
    		hf.Write(revision.Data.Raw)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 05 13:33:52 UTC 2021
    - 18.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tfrt/ir/tfrt_fallback_async.td

        op_name: The tensorflow op name. eg. "tf.AddV2"
    
        Example:
          %out_ch = tfrt_fallback_async.createop(%in_ch) key(0) device("/CPU:0")
            "some.op"() {attr1 = value, attr2 = value2} {f_attr1 = "fn1", f_attr2 = "fn2"} num_args(1)
      }];
    
      let arguments = (ins
        TFRT_ChainType:$in_ch,
        I64Attr:$num_args,
        StrAttr:$device,
        ArrayAttr:$op_attrs,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 18 15:01:21 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  8. pkg/kubelet/container/helpers.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package container
    
    import (
    	"context"
    	"encoding/json"
    	"fmt"
    	"hash/fnv"
    	"strings"
    
    	"k8s.io/klog/v2"
    
    	v1 "k8s.io/api/core/v1"
    	"k8s.io/apimachinery/pkg/runtime"
    	"k8s.io/apimachinery/pkg/types"
    	"k8s.io/apimachinery/pkg/util/sets"
    	"k8s.io/client-go/tools/record"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  9. operator/pkg/tpath/tree_test.go

        name: n2
    `,
    		},
    		{
    			desc: "ModifyListEntryMapValue",
    			path: `a.b.[name:n2]`,
    			value: `name: n2
    list: 
      - nk1: nv1
      - nk2: nv2`,
    			wantFound: true,
    			want: `
    a:
      b:
      - name: n1
        value: v1
      - name: n2
        list:
        - nk1: nv1
        - nk2: nv2
    `,
    		},
    		{
    			desc:      "ModifyNthListEntry",
    			path:      `a.b.[1].list.[:v2]`,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 25 19:30:47 UTC 2022
    - 15.6K bytes
    - Viewed (0)
  10. src/internal/reflectlite/all_test.go

    	y float32
    }
    
    type NotBasic Basic
    
    type DeepEqualTest struct {
    	a, b any
    	eq   bool
    }
    
    // Simple functions for DeepEqual tests.
    var (
    	fn1 func()             // nil.
    	fn2 func()             // nil.
    	fn3 = func() { fn1() } // Not nil.
    )
    
    type self struct{}
    
    type Loop *Loop
    type Loopy any
    
    var loop1, loop2 Loop
    var loopy1, loopy2 Loopy
    
    func init() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 16 19:26:08 UTC 2023
    - 24.2K bytes
    - Viewed (0)
Back to top