|
|
@@ -737,11 +737,15 @@ namespace detail
|
|
|
return reinterpret_cast<vec<L, float, Q>&>(const_cast<vec<L, uint, Q>&>(v));
|
|
|
}
|
|
|
|
|
|
- template<typename genType>
|
|
|
- GLM_FUNC_QUALIFIER genType fma(genType const& a, genType const& b, genType const& c)
|
|
|
- {
|
|
|
- return a * b + c;
|
|
|
- }
|
|
|
+# if GLM_HAS_CXX11_STL
|
|
|
+ using std::fma;
|
|
|
+# else
|
|
|
+ template<typename genType>
|
|
|
+ GLM_FUNC_QUALIFIER genType fma(genType const& a, genType const& b, genType const& c)
|
|
|
+ {
|
|
|
+ return a * b + c;
|
|
|
+ }
|
|
|
+# endif
|
|
|
|
|
|
template<typename genType>
|
|
|
GLM_FUNC_QUALIFIER genType frexp(genType x, int& exp)
|