Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/AdaptiveCpp/AdaptiveCpp
/ ref_normalize
Function
ref_normalize
tests/sycl/math.cpp:197–199 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
195
196
template<typename T>
197
auto ref_normalize(T v) {
198
return v / ref_length(v);
199
}
200
201
template<class T, std::enable_if_t<std::is_integral_v<T>,int> = 0>
202
inline T ref_ctz(T x) noexcept {
Callers
1
BOOST_AUTO_TEST_CASE_TEMPLATE
Function · 0.85
Calls
1
ref_length
Function · 0.85
Tested by
no test coverage detected