Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for OnesCount64 (0.24 sec)

  1. src/runtime/mpallocbits.go

    	}
    	_ = b[i/64]
    	j := i + n - 1
    	if i/64 == j/64 {
    		return uint(sys.OnesCount64((b[i/64] >> (i % 64)) & ((1 << n) - 1)))
    	}
    	_ = b[j/64]
    	s += uint(sys.OnesCount64(b[i/64] >> (i % 64)))
    	for k := i/64 + 1; k < j/64; k++ {
    		s += uint(sys.OnesCount64(b[k]))
    	}
    	s += uint(sys.OnesCount64(b[j/64] & ((1 << (j%64 + 1)) - 1)))
    	return
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 18 15:13:43 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  2. test/codegen/mathbits.go

    	// ppc64x:"POPCNTD"
    	// wasm:"I64Popcnt"
    	return bits.OnesCount(n)
    }
    
    func OnesCount64(n uint64) int {
    	// amd64/v2:-".*x86HasPOPCNT" amd64/v3:-".*x86HasPOPCNT"
    	// amd64:"POPCNTQ"
    	// arm64:"VCNT","VUADDLV"
    	// s390x:"POPCNT"
    	// ppc64x:"POPCNTD"
    	// wasm:"I64Popcnt"
    	return bits.OnesCount64(n)
    }
    
    func OnesCount32(n uint32) int {
    	// amd64/v2:-".*x86HasPOPCNT" amd64/v3:-".*x86HasPOPCNT"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:51:17 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  3. src/runtime/gc_test.go

    		// This is a serious bug - an object is live (due to the KeepAlive
    		// call below), but isn't reported as such.
    		t.Fatalf("live object not in reachable set; want %b, got %b", want, got)
    	}
    	if bits.OnesCount64(got&^want) > 1 {
    		// Note: we can occasionally have a value that is retained even though
    		// it isn't live, due to conservative scanning of stack frames.
    		// See issue 67204. For now, we allow a "slop" of 1 unintentionally
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 05 22:33:52 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  4. src/runtime/export_test.go

    			if chunk == nil {
    				continue
    			}
    			pg := chunk.scavenged.popcntRange(0, pallocChunkPages)
    			slow.HeapReleased += uint64(pg) * pageSize
    		}
    		for _, p := range allp {
    			pg := sys.OnesCount64(p.pcache.scav)
    			slow.HeapReleased += uint64(pg) * pageSize
    		}
    
    		getg().m.mallocing--
    	})
    
    	startTheWorld(stw)
    	return
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:50:53 UTC 2024
    - 46.1K bytes
    - Viewed (0)
Back to top