changed project to use CLion to be cross platform
This commit is contained in:
parent
6fb3ffcfed
commit
dcc5871929
463 changed files with 69347 additions and 296 deletions
33
vendor/glm/gtc/integer.inl
vendored
Normal file
33
vendor/glm/gtc/integer.inl
vendored
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
/// @ref gtc_integer
|
||||
|
||||
namespace glm{
|
||||
namespace detail
|
||||
{
|
||||
template<length_t L, typename T, qualifier Q, bool Aligned>
|
||||
struct compute_log2<L, T, Q, false, Aligned>
|
||||
{
|
||||
GLM_FUNC_QUALIFIER static vec<L, T, Q> call(vec<L, T, Q> const& v)
|
||||
{
|
||||
//Equivalent to return findMSB(vec); but save one function call in ASM with VC
|
||||
//return findMSB(vec);
|
||||
return vec<L, T, Q>(detail::compute_findMSB_vec<L, T, Q, sizeof(T) * 8>::call(v));
|
||||
}
|
||||
};
|
||||
|
||||
# if GLM_HAS_BITSCAN_WINDOWS
|
||||
template<qualifier Q, bool Aligned>
|
||||
struct compute_log2<4, int, Q, false, Aligned>
|
||||
{
|
||||
GLM_FUNC_QUALIFIER static vec<4, int, Q> call(vec<4, int, Q> const& v)
|
||||
{
|
||||
vec<4, int, Q> Result;
|
||||
_BitScanReverse(reinterpret_cast<unsigned long*>(&Result.x), v.x);
|
||||
_BitScanReverse(reinterpret_cast<unsigned long*>(&Result.y), v.y);
|
||||
_BitScanReverse(reinterpret_cast<unsigned long*>(&Result.z), v.z);
|
||||
_BitScanReverse(reinterpret_cast<unsigned long*>(&Result.w), v.w);
|
||||
return Result;
|
||||
}
|
||||
};
|
||||
# endif//GLM_HAS_BITSCAN_WINDOWS
|
||||
}//namespace detail
|
||||
}//namespace glm
|
||||
Loading…
Add table
Add a link
Reference in a new issue