MCPcopy Create free account
hub / github.com/NVlabs/tiny-cuda-nn / next_pot

Function next_pot

include/tiny-cuda-nn/common.h:227–235  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

225}
226
227inline constexpr TCNN_HOST_DEVICE uint32_t next_pot(uint32_t v) {
228 --v;
229 v |= v >> 1;
230 v |= v >> 2;
231 v |= v >> 4;
232 v |= v >> 8;
233 v |= v >> 16;
234 return v+1;
235}
236
237template <typename T> constexpr TCNN_HOST_DEVICE float default_loss_scale();
238template <> constexpr TCNN_HOST_DEVICE float default_loss_scale<float>() { return 1.0f; }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected