MCPcopy Create free account
hub / github.com/OpenPathGuidingLibrary/openpgl / divideByTwo

Function divideByTwo

third-party/embreeSrc/common/math/bbox.h:13–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11 namespace internal {
12
13 template <typename T> __forceinline T divideByTwo(const T& v) { return v / T(2); }
14 template <> __forceinline float divideByTwo<float>(const float& v) { return v * 0.5f; }
15 template <> __forceinline double divideByTwo<double>(const double& v) { return v * 0.5; }
16

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected