~mir-team/mir/in-process-egl+input-conglomeration

« back to all changes in this revision

Viewing changes to 3rd_party/glm/glm/gtx/log_base.inl

Merged trunk and fixed issues

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
///////////////////////////////////////////////////////////////////////////////////////////////////
2
 
// OpenGL Mathematics Copyright (c) 2005 - 2012 G-Truc Creation (www.g-truc.net)
3
 
///////////////////////////////////////////////////////////////////////////////////////////////////
4
 
// Created : 2008-10-24
5
 
// Updated : 2008-10-24
6
 
// Licence : This source is under MIT License
7
 
// File    : glm/gtx/log_base.inl
8
 
///////////////////////////////////////////////////////////////////////////////////////////////////
9
 
 
10
 
#include "../core/_vectorize.hpp"
11
 
 
12
 
namespace glm
13
 
{
14
 
        template <typename genType> 
15
 
        GLM_FUNC_QUALIFIER genType log(
16
 
                genType const & x, 
17
 
                genType const & base)
18
 
        {
19
 
                assert(x != genType(0));
20
 
 
21
 
                return glm::log(x) / glm::log(base);
22
 
        }
23
 
 
24
 
        VECTORIZE_VEC_SCA(log)
25
 
        VECTORIZE_VEC_VEC(log)
26
 
}//namespace glm