MCPcopy Create free account
hub / github.com/NVlabs/nvbio / width

Function width

nvbio/basic/priority_queue_inline.h:146–149  ·  view source on GitHub ↗

returns the width of the tree at the level of node i

Source from the content-addressed store, hash-verified

144
145 // returns the width of the tree at the level of node i
146 NVBIO_HOST_DEVICE NVBIO_FORCEINLINE uint32 width(uint32 i)
147 {
148 return 1u << (sizeof(i) * 8u - lzc(i) - 1u);
149 }
150
151 // returns the parent node of i
152 NVBIO_HOST_DEVICE NVBIO_FORCEINLINE uint32 parent(uint32 i)

Callers 1

upper_boundMethod · 0.85

Calls 1

lzcFunction · 0.85

Tested by

no test coverage detected