Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
87
template <class T>
88
HOST_DEVICE constexpr T shiftr(T x, int s) {
89
return s >= 0 ? (x >> s) : (x << -s);
90
}
91
92
// Short name for fast compilation
93
template <auto v>
Callers
1
apply
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected