Skip to content

Commit

Permalink
Merge pull request #886 from Zuzu-Typ/master
Browse files Browse the repository at this point in the history
Forward declaration of frexp and ldexp #886
  • Loading branch information
Groovounet authored Apr 1, 2019
2 parents d92e83c + b76297c commit 3de80d2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions glm/common.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,9 @@ namespace glm
/// @see <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.3 Common Functions</a>
template<typename genType, typename genIType>
GLM_FUNC_DECL genType frexp(genType const& x, genIType& exp);

template<length_t L, typename T, qualifier Q>
GLM_FUNC_DECL vec<L, T, Q> frexp(vec<L, T, Q> const& v, vec<L, int, Q>& exp);

/// Builds a floating-point number from x and the
/// corresponding integral exponent of two in exp, returning:
Expand All @@ -525,6 +528,9 @@ namespace glm
/// @see <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.3 Common Functions</a>
template<typename genType, typename genIType>
GLM_FUNC_DECL genType ldexp(genType const& x, genIType const& exp);

template<length_t L, typename T, qualifier Q>
GLM_FUNC_DECL vec<L, T, Q> ldexp(vec<L, T, Q> const& v, vec<L, int, Q> const& exp);

/// @}
}//namespace glm
Expand Down

0 comments on commit 3de80d2

Please sign in to comment.