Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 48 for bitIsSet (0.15 sec)

  1. src/internal/cpu/cpu_s390x.go

    // license that can be found in the LICENSE file.
    
    package cpu
    
    const CacheLinePadSize = 256
    
    var HWCap uint
    
    // bitIsSet reports whether the bit at index is set. The bit index
    // is in big endian order, so bit index 0 is the leftmost bit.
    func bitIsSet(bits []uint64, index uint) bool {
    	return bits[index/64]&((1<<63)>>(index%64)) != 0
    }
    
    // function is the function code for the named function.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 22 17:11:03 UTC 2020
    - 5.9K bytes
    - Viewed (0)
  2. src/vendor/golang.org/x/sys/cpu/cpu_s390x.go

    		{Name: "sha512", Feature: &S390X.HasSHA512},
    		{Name: "vx", Feature: &S390X.HasVX},
    		{Name: "vxe", Feature: &S390X.HasVXE},
    	}
    }
    
    // bitIsSet reports whether the bit at index is set. The bit index
    // is in big endian order, so bit index 0 is the leftmost bit.
    func bitIsSet(bits []uint64, index uint) bool {
    	return bits[index/64]&((1<<63)>>(index%64)) != 0
    }
    
    // facility is a bit index for the named facility.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 02 15:41:00 UTC 2020
    - 4.9K bytes
    - Viewed (0)
  3. pkg/ledger/smt_tools.go

    	if err != nil {
    		return nil, err
    	}
    	if isShortcut {
    		if bytes.Equal(lnode[:hashLength], key) {
    			return rnode[:hashLength], nil
    		}
    		return nil, nil
    	}
    	if bitIsSet(key, s.trieHeight-height) {
    		// visit right node
    		return s.get(rnode, key, batch, 2*iBatch+2, height-1)
    	}
    	// visit left node
    	return s.get(lnode, key, batch, 2*iBatch+1, height-1)
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  4. pkg/ledger/util.go

    	"github.com/spaolacci/murmur3"
    )
    
    // defaultLeaf is the Trie default value : hash of 0x0
    var defaultLeaf = hasher([]byte{0x0})
    
    const (
    	hashLength = 8
    )
    
    type hash [hashLength]byte
    
    func bitIsSet(bits []byte, i int) bool {
    	return bits[i/8]&(1<<uint(7-i%8)) != 0
    }
    
    func hasher(data ...[]byte) []byte {
    	hasher := murmur3.New64()
    	for i := 0; i < len(data); i++ {
    		_, _ = hasher.Write(data[i])
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  5. pkg/ledger/smt.go

    }
    
    // splitKeys divides the array of keys into 2 so they can update left and right branches in parallel
    func (s *smt) splitKeys(keys [][]byte, height int) ([][]byte, [][]byte) {
    	for i, key := range keys {
    		if bitIsSet(key, height) {
    			return keys[:i], keys[i:]
    		}
    	}
    	return keys, nil
    }
    
    // maybeAddShortcutToKV adds a shortcut key to the keys array to be updated.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Aug 08 16:43:05 UTC 2023
    - 14K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ir/bitset.go

    cuiweixie <******@****.***> 1664452800 +0800
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 29 22:03:56 UTC 2022
    - 734 bytes
    - Viewed (0)
  7. android/guava-tests/benchmark/com/google/common/base/WhitespaceMatcherBenchmark.java

      @BeforeExperiment
      protected void setUp() {
        BitSet bitSet = new BitSet();
        for (int i = 0; i < OLD_WHITESPACE_TABLE.length(); i++) {
          bitSet.set(OLD_WHITESPACE_TABLE.charAt(i));
        }
        bitSet.clear(0);
        bitSet.clear(1);
        matcher = useNew ? CharMatcher.whitespace() : OLD_WHITESPACE;
        teststring = newTestString(new Random(1), bitSet, percentMatching);
      }
    
      @Benchmark
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 16 22:49:59 UTC 2018
    - 3.9K bytes
    - Viewed (0)
  8. guava-tests/benchmark/com/google/common/base/WhitespaceMatcherBenchmark.java

      @BeforeExperiment
      protected void setUp() {
        BitSet bitSet = new BitSet();
        for (int i = 0; i < OLD_WHITESPACE_TABLE.length(); i++) {
          bitSet.set(OLD_WHITESPACE_TABLE.charAt(i));
        }
        bitSet.clear(0);
        bitSet.clear(1);
        matcher = useNew ? CharMatcher.whitespace() : OLD_WHITESPACE;
        teststring = newTestString(new Random(1), bitSet, percentMatching);
      }
    
      @Benchmark
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 16 22:49:59 UTC 2018
    - 3.9K bytes
    - Viewed (0)
  9. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/collections/ImmutableFilteredList.java

     * to keep track of which items are filtered out of the source list.
     */
    public class ImmutableFilteredList<T> extends AbstractList<T> {
    
        private final List<T> source;
        private final BitSet filter;
    
        private ImmutableFilteredList(List<T> source, BitSet filter) {
            this.source = source;
            this.filter = filter;
        }
    
        /**
         * Creates an {@code ImmutableFilteredList} which contains all the elements of {@code source}.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  10. platforms/software/dependency-management/src/main/java/org/gradle/internal/component/model/MultipleCandidateMatcher.java

                // Because they are EXTRA attributes, we consider that a
                // candidate which does NOT provide this value is a better match
                int candidateCount = candidateAttributeSets.length;
                BitSet any = new BitSet(candidateCount);
                for (int c = 0; c < candidateCount; c++) {
                    ImmutableAttributes candidateAttributeSet = candidateAttributeSets[c];
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 19.4K bytes
    - Viewed (0)
Back to top