MCPcopy Create free account
hub / github.com/apache/tvm-ffi / CalcNumBlocks

Method CalcNumBlocks

include/tvm/ffi/container/map_base.h:910–910  ·  view source on GitHub ↗

! \brief Construct the number of blocks in the hash table */

Source from the content-addressed store, hash-verified

908 }
909 /*! \brief Construct the number of blocks in the hash table */
910 static uint64_t CalcNumBlocks(uint64_t n_slots) { return (n_slots + kBlockCap - 1) / kBlockCap; }
911 /*!
912 * \brief Calculate the power-of-2 table size given the lower-bound of required capacity.
913 * \param cap The lower-bound of the required capacity

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected