MCPcopy Create free account
hub / github.com/ModelEngine-Group/flexai / DivCeil

Function DivCeil

GPU-Virtual-Service/gpu-remoting/include/define.h:123–130  ·  view source on GitHub ↗

* @brief get the ceil of the division * * @param a * @param b * @return uint32_t */

Source from the content-addressed store, hash-verified

121 * @return uint32_t
122 */
123 inline uint32_t DivCeil(uint32_t a, uint32_t b) {
124 uint32_t tmp = a / b;
125 if (a % b == 0) {
126 return tmp;
127 } else {
128 return (tmp + 1);
129 }
130 }
131
132 /**
133 * @brief print the binary buffer

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected