MCPcopy 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

Calls 1

ref_lengthFunction · 0.85

Tested by

no test coverage detected