Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 58 for extractInts (0.16 sec)

  1. src/text/scanner/scanner_test.go

    		{"1_2", "1_2", ScanInts},
    		{"xxx1.0yyy2e3ee", "1 0 2 3", ScanInts},
    		{"xxx1.0yyy2e3ee", "1.0 2e3", ScanFloats},
    	} {
    		got := extractInts(test.in, test.mode)
    		if got != test.want {
    			t.Errorf("%q: got %q; want %q", test.in, got, test.want)
    		}
    	}
    }
    
    func extractInts(t string, mode uint) (res string) {
    	var s Scanner
    	s.Init(strings.NewReader(t))
    	s.Mode = mode
    	for {
    		switch tok := s.Scan(); tok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 17 03:41:50 UTC 2022
    - 25.3K bytes
    - Viewed (0)
  2. src/internal/cpu/cpu_arm64.go

    func getMIDR() uint64
    
    func extractBits(data uint64, start, end uint) uint {
    	return (uint)(data>>start) & ((1 << (end - start + 1)) - 1)
    }
    
    func parseARM64SystemRegisters(isar0 uint64) {
    	// ID_AA64ISAR0_EL1
    	switch extractBits(isar0, 4, 7) {
    	case 1:
    		ARM64.HasAES = true
    	case 2:
    		ARM64.HasAES = true
    		ARM64.HasPMULL = true
    	}
    
    	switch extractBits(isar0, 8, 11) {
    	case 1:
    		ARM64.HasSHA1 = true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 25 14:08:20 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  3. src/vendor/golang.org/x/sys/cpu/cpu_arm64.go

    	}
    
    	switch extractBits(isar0, 16, 19) {
    	case 1:
    		ARM64.HasCRC32 = true
    	}
    
    	switch extractBits(isar0, 20, 23) {
    	case 2:
    		ARM64.HasATOMICS = true
    	}
    
    	switch extractBits(isar0, 28, 31) {
    	case 1:
    		ARM64.HasASIMDRDM = true
    	}
    
    	switch extractBits(isar0, 32, 35) {
    	case 1:
    		ARM64.HasSHA3 = true
    	}
    
    	switch extractBits(isar0, 36, 39) {
    	case 1:
    		ARM64.HasSM3 = true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apimachinery/pkg/util/managedfields/extract.go

    	"k8s.io/apimachinery/pkg/api/meta"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
    	"k8s.io/apimachinery/pkg/runtime"
    )
    
    // ExtractInto extracts the applied configuration state from object for fieldManager
    // into applyConfiguration. If no managed fields are found for the given fieldManager,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 12 03:17:15 UTC 2022
    - 4.4K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apimachinery/pkg/util/managedfields/extract_test.go

    			out := map[string]interface{}{}
    			accessor, err := meta.Accessor(tc.obj)
    			if err != nil {
    				t.Fatalf("Error accessing object: %v", err)
    			}
    			accessor.SetManagedFields(tc.managedFields)
    			err = ExtractInto(tc.obj, tc.objType, tc.fieldManager, &out, tc.subresource)
    			if err != nil {
    				t.Fatalf("Unexpected extract error: %v", err)
    			}
    			if !equality.Semantic.DeepEqual(out, tc.expectedOut) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 22 22:32:45 UTC 2021
    - 8.3K bytes
    - Viewed (0)
  6. hack/golangci.yaml.in

          settings:
            config: |
              {{include "hack/logcheck.conf" | indent 10 | trim}}
      forbidigo:
        analyze-types: true
        forbid:
        - p: ^managedfields\.ExtractInto$
          pkg: ^k8s\.io/apimachinery/pkg/util/managedfields$
          msg: should not be used because managedFields was removed
        - p: \.Extract
          pkg: ^k8s\.io/client-go/applyconfigurations/
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 13 13:12:04 UTC 2024
    - 8K bytes
    - Viewed (0)
  7. hack/golangci-strict.yaml

              # this restriction. Whether we then do a global search/replace remains
              # to be decided.
              with-helpers .*
      forbidigo:
        analyze-types: true
        forbid:
        - p: ^managedfields\.ExtractInto$
          pkg: ^k8s\.io/apimachinery/pkg/util/managedfields$
          msg: should not be used because managedFields was removed
        - p: \.Extract
          pkg: ^k8s\.io/client-go/applyconfigurations/
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 15 12:10:09 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  8. hack/golangci-hints.yaml

              # this restriction. Whether we then do a global search/replace remains
              # to be decided.
              with-helpers .*
      forbidigo:
        analyze-types: true
        forbid:
        - p: ^managedfields\.ExtractInto$
          pkg: ^k8s\.io/apimachinery/pkg/util/managedfields$
          msg: should not be used because managedFields was removed
        - p: \.Extract
          pkg: ^k8s\.io/client-go/applyconfigurations/
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 15 12:10:09 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  9. hack/golangci.yaml

              # this restriction. Whether we then do a global search/replace remains
              # to be decided.
              with-helpers .*
      forbidigo:
        analyze-types: true
        forbid:
        - p: ^managedfields\.ExtractInto$
          pkg: ^k8s\.io/apimachinery/pkg/util/managedfields$
          msg: should not be used because managedFields was removed
        - p: \.Extract
          pkg: ^k8s\.io/client-go/applyconfigurations/
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 15 12:10:09 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  10. staging/src/k8s.io/client-go/applyconfigurations/admissionregistration/v1alpha1/validatingadmissionpolicy.go

    	b := &ValidatingAdmissionPolicyApplyConfiguration{}
    	err := managedfields.ExtractInto(validatingAdmissionPolicy, internal.Parser().Type("io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicy"), fieldManager, b, subresource)
    	if err != nil {
    		return nil, err
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 02:44:28 UTC 2023
    - 13.4K bytes
    - Viewed (0)
Back to top