mirror of
https://github.com/g-truc/glm.git
synced 2026-11-03 14:35:50 +00:00
@@ -17,6 +17,11 @@
|
||||
|
||||
namespace isPowerOfTwo
|
||||
{
|
||||
#if GLM_COMPILER & GLM_COMPILER_CLANG
|
||||
# pragma clang diagnostic push
|
||||
# pragma clang diagnostic ignored "-Wpadded"
|
||||
#endif
|
||||
|
||||
template<typename genType>
|
||||
struct type
|
||||
{
|
||||
@@ -24,8 +29,12 @@ namespace isPowerOfTwo
|
||||
bool Return;
|
||||
};
|
||||
|
||||
#if GLM_COMPILER & GLM_COMPILER_CLANG
|
||||
# pragma clang diagnostic pop
|
||||
#endif
|
||||
|
||||
template <glm::length_t L>
|
||||
int test_int16()
|
||||
static int test_int16()
|
||||
{
|
||||
type<glm::int16> const Data[] =
|
||||
{
|
||||
@@ -49,7 +58,7 @@ namespace isPowerOfTwo
|
||||
}
|
||||
|
||||
template <glm::length_t L>
|
||||
int test_uint16()
|
||||
static int test_uint16()
|
||||
{
|
||||
type<glm::uint16> const Data[] =
|
||||
{
|
||||
@@ -73,7 +82,7 @@ namespace isPowerOfTwo
|
||||
}
|
||||
|
||||
template <glm::length_t L>
|
||||
int test_int32()
|
||||
static int test_int32()
|
||||
{
|
||||
type<int> const Data[] =
|
||||
{
|
||||
@@ -97,7 +106,7 @@ namespace isPowerOfTwo
|
||||
}
|
||||
|
||||
template <glm::length_t L>
|
||||
int test_uint32()
|
||||
static int test_uint32()
|
||||
{
|
||||
type<glm::uint> const Data[] =
|
||||
{
|
||||
@@ -120,7 +129,7 @@ namespace isPowerOfTwo
|
||||
return Error;
|
||||
}
|
||||
|
||||
int test()
|
||||
static int test()
|
||||
{
|
||||
int Error = 0;
|
||||
|
||||
@@ -151,7 +160,7 @@ namespace isPowerOfTwo
|
||||
namespace prevPowerOfTwo
|
||||
{
|
||||
template <glm::length_t L, typename T>
|
||||
int run()
|
||||
static int run()
|
||||
{
|
||||
int Error = 0;
|
||||
|
||||
@@ -170,7 +179,7 @@ namespace prevPowerOfTwo
|
||||
return Error;
|
||||
}
|
||||
|
||||
int test()
|
||||
static int test()
|
||||
{
|
||||
int Error = 0;
|
||||
|
||||
@@ -221,7 +230,7 @@ namespace prevPowerOfTwo
|
||||
namespace nextPowerOfTwo
|
||||
{
|
||||
template <glm::length_t L, typename T>
|
||||
int run()
|
||||
static int run()
|
||||
{
|
||||
int Error = 0;
|
||||
|
||||
@@ -240,7 +249,7 @@ namespace nextPowerOfTwo
|
||||
return Error;
|
||||
}
|
||||
|
||||
int test()
|
||||
static int test()
|
||||
{
|
||||
int Error = 0;
|
||||
|
||||
@@ -299,7 +308,7 @@ namespace prevMultiple
|
||||
};
|
||||
|
||||
template <glm::length_t L, typename T>
|
||||
int run()
|
||||
static int run()
|
||||
{
|
||||
type<T> const Data[] =
|
||||
{
|
||||
@@ -321,7 +330,7 @@ namespace prevMultiple
|
||||
return Error;
|
||||
}
|
||||
|
||||
int test()
|
||||
static int test()
|
||||
{
|
||||
int Error = 0;
|
||||
|
||||
@@ -380,7 +389,7 @@ namespace nextMultiple
|
||||
};
|
||||
|
||||
template <glm::length_t L, typename T>
|
||||
int run()
|
||||
static int run()
|
||||
{
|
||||
type<T> const Data[] =
|
||||
{
|
||||
@@ -406,7 +415,7 @@ namespace nextMultiple
|
||||
return Error;
|
||||
}
|
||||
|
||||
int test()
|
||||
static int test()
|
||||
{
|
||||
int Error = 0;
|
||||
|
||||
@@ -456,6 +465,11 @@ namespace nextMultiple
|
||||
|
||||
namespace findNSB
|
||||
{
|
||||
#if GLM_COMPILER & GLM_COMPILER_CLANG
|
||||
# pragma clang diagnostic push
|
||||
# pragma clang diagnostic ignored "-Wpadded"
|
||||
#endif
|
||||
|
||||
template<typename T>
|
||||
struct type
|
||||
{
|
||||
@@ -464,8 +478,12 @@ namespace findNSB
|
||||
int Return;
|
||||
};
|
||||
|
||||
#if GLM_COMPILER & GLM_COMPILER_CLANG
|
||||
# pragma clang diagnostic pop
|
||||
#endif
|
||||
|
||||
template <glm::length_t L, typename T>
|
||||
int run()
|
||||
static int run()
|
||||
{
|
||||
type<T> const Data[] =
|
||||
{
|
||||
@@ -493,7 +511,7 @@ namespace findNSB
|
||||
return Error;
|
||||
}
|
||||
|
||||
int test()
|
||||
static int test()
|
||||
{
|
||||
int Error = 0;
|
||||
|
||||
@@ -542,6 +560,11 @@ namespace findNSB
|
||||
}
|
||||
}//namespace findNSB
|
||||
|
||||
#if GLM_COMPILER & GLM_COMPILER_CLANG
|
||||
# pragma clang diagnostic push
|
||||
# pragma clang diagnostic ignored "-Wpadded"
|
||||
#endif
|
||||
|
||||
template<typename T, typename B>
|
||||
struct test_mix_entry
|
||||
{
|
||||
@@ -551,6 +574,10 @@ struct test_mix_entry
|
||||
T Result;
|
||||
};
|
||||
|
||||
#if GLM_COMPILER & GLM_COMPILER_CLANG
|
||||
# pragma clang diagnostic pop
|
||||
#endif
|
||||
|
||||
static int test_mix()
|
||||
{
|
||||
test_mix_entry<int, bool> const TestBool[] =
|
||||
|
||||
Reference in New Issue
Block a user