MCPcopy Create free account
hub / github.com/KnowingNothing/MatmulTutorial / shiftr

Function shiftr

include/common.h:88–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86// Computes the result of bitwise right-shift
87template <class T>
88HOST_DEVICE constexpr T shiftr(T x, int s) {
89 return s >= 0 ? (x >> s) : (x << -s);
90}
91
92// Short name for fast compilation
93template <auto v>

Callers 1

applyMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected