Fixed declaration and definition mismatch
This commit is contained in:
parent
7ce6df4078
commit
2b17a90859
@ -128,10 +128,7 @@ namespace detail
|
|||||||
|
|
||||||
//exp2, ln2 = 0.69314718055994530941723212145818f
|
//exp2, ln2 = 0.69314718055994530941723212145818f
|
||||||
template <typename genType>
|
template <typename genType>
|
||||||
GLM_FUNC_QUALIFIER genType exp2
|
GLM_FUNC_QUALIFIER genType exp2(genType const & x)
|
||||||
(
|
|
||||||
genType const & x
|
|
||||||
)
|
|
||||||
{
|
{
|
||||||
GLM_STATIC_ASSERT(
|
GLM_STATIC_ASSERT(
|
||||||
std::numeric_limits<genType>::is_iec559,
|
std::numeric_limits<genType>::is_iec559,
|
||||||
@ -144,10 +141,7 @@ namespace detail
|
|||||||
|
|
||||||
// log2, ln2 = 0.69314718055994530941723212145818f
|
// log2, ln2 = 0.69314718055994530941723212145818f
|
||||||
template <typename genType>
|
template <typename genType>
|
||||||
GLM_FUNC_QUALIFIER genType log2
|
GLM_FUNC_QUALIFIER genType log2(genType x)
|
||||||
(
|
|
||||||
genType const & x
|
|
||||||
)
|
|
||||||
{
|
{
|
||||||
GLM_STATIC_ASSERT(std::numeric_limits<genType>::is_iec559 || std::numeric_limits<genType>::is_integer,
|
GLM_STATIC_ASSERT(std::numeric_limits<genType>::is_iec559 || std::numeric_limits<genType>::is_integer,
|
||||||
"GLM core 'log2' only accept floating-point inputs. Include <glm/gtx/integer.hpp> for additional integer support.");
|
"GLM core 'log2' only accept floating-point inputs. Include <glm/gtx/integer.hpp> for additional integer support.");
|
||||||
|
@ -61,7 +61,7 @@ namespace glm
|
|||||||
//! Returns the log2 of x. Can be reliably using to compute mipmap count from the texture size.
|
//! Returns the log2 of x. Can be reliably using to compute mipmap count from the texture size.
|
||||||
//! From GLM_GTX_integer extension.
|
//! From GLM_GTX_integer extension.
|
||||||
template <typename genIUType>
|
template <typename genIUType>
|
||||||
genIUType log2(genIUType const & x);
|
genIUType log2(genIUType x);
|
||||||
|
|
||||||
//! Returns the floor log2 of x.
|
//! Returns the floor log2 of x.
|
||||||
//! From GLM_GTX_integer extension.
|
//! From GLM_GTX_integer extension.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user