Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 28 for fnv (0.02 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. pkg/kubelet/checkpointmanager/checksum/checksum.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 checksum
    
    import (
    	"hash/fnv"
    
    	"k8s.io/kubernetes/pkg/kubelet/checkpointmanager/errors"
    	hashutil "k8s.io/kubernetes/pkg/util/hash"
    )
    
    // Checksum is the data to be stored as checkpoint
    type Checksum uint64
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 01:56:43 UTC 2019
    - 1.3K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. pkg/registry/rbac/validation/rule_test.go

    */
    
    package validation
    
    import (
    	"hash/fnv"
    	"io"
    	"reflect"
    	"sort"
    	"testing"
    
    	"github.com/google/go-cmp/cmp"
    	rbacv1 "k8s.io/api/rbac/v1"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/apiserver/pkg/authentication/user"
    )
    
    // compute a hash of a policy rule so we can sort in a deterministic order
    func hashOf(p rbacv1.PolicyRule) string {
    	hash := fnv.New32()
    	writeStrings := func(slis ...[]string) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:46:12 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  10. 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)
Back to top