MCPcopy Create free account
hub / github.com/bitsandbytes-foundation/bitsandbytes / Unroll

Class Unroll

csrc/cpu_ops.h:45–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43#endif
44
45template <int n> struct Unroll {
46 template <typename Func, typename... Args> ALWAYS_INLINE void operator()(const Func& f, Args... args) const {
47 Unroll<n - 1>{}(f, args...);
48 f(std::integral_constant<int, n - 1>{}, args...);
49 }
50};
51
52template <> struct Unroll<1> {
53 template <typename Func, typename... Args> ALWAYS_INLINE void operator()(const Func& f, Args... args) const {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected