mirror of
https://github.com/g-truc/glm.git
synced 2024-11-26 18:24:35 +00:00
Fixed space
This commit is contained in:
parent
a4aa39f9bd
commit
7848efdba9
@ -11,42 +11,42 @@
|
|||||||
|
|
||||||
int test_int_size()
|
int test_int_size()
|
||||||
{
|
{
|
||||||
return
|
return
|
||||||
sizeof(glm::int_t) != sizeof(glm::lowp_int) &&
|
sizeof(glm::int_t) != sizeof(glm::lowp_int) &&
|
||||||
sizeof(glm::int_t) != sizeof(glm::mediump_int) &&
|
sizeof(glm::int_t) != sizeof(glm::mediump_int) &&
|
||||||
sizeof(glm::int_t) != sizeof(glm::highp_int);
|
sizeof(glm::int_t) != sizeof(glm::highp_int);
|
||||||
}
|
}
|
||||||
|
|
||||||
int test_uint_size()
|
int test_uint_size()
|
||||||
{
|
{
|
||||||
return
|
return
|
||||||
sizeof(glm::uint_t) != sizeof(glm::lowp_uint) &&
|
sizeof(glm::uint_t) != sizeof(glm::lowp_uint) &&
|
||||||
sizeof(glm::uint_t) != sizeof(glm::mediump_uint) &&
|
sizeof(glm::uint_t) != sizeof(glm::mediump_uint) &&
|
||||||
sizeof(glm::uint_t) != sizeof(glm::highp_uint);
|
sizeof(glm::uint_t) != sizeof(glm::highp_uint);
|
||||||
}
|
}
|
||||||
|
|
||||||
int test_int_precision()
|
int test_int_precision()
|
||||||
{
|
{
|
||||||
return (
|
return (
|
||||||
sizeof(glm::lowp_int) <= sizeof(glm::mediump_int) &&
|
sizeof(glm::lowp_int) <= sizeof(glm::mediump_int) &&
|
||||||
sizeof(glm::mediump_int) <= sizeof(glm::highp_int)) ? 0 : 1;
|
sizeof(glm::mediump_int) <= sizeof(glm::highp_int)) ? 0 : 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int test_uint_precision()
|
int test_uint_precision()
|
||||||
{
|
{
|
||||||
return (
|
return (
|
||||||
sizeof(glm::lowp_uint) <= sizeof(glm::mediump_uint) &&
|
sizeof(glm::lowp_uint) <= sizeof(glm::mediump_uint) &&
|
||||||
sizeof(glm::mediump_uint) <= sizeof(glm::highp_uint)) ? 0 : 1;
|
sizeof(glm::mediump_uint) <= sizeof(glm::highp_uint)) ? 0 : 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
int Error = 0;
|
int Error = 0;
|
||||||
|
|
||||||
Error += test_int_size();
|
Error += test_int_size();
|
||||||
Error += test_int_precision();
|
Error += test_int_precision();
|
||||||
Error += test_uint_size();
|
Error += test_uint_size();
|
||||||
Error += test_uint_precision();
|
Error += test_uint_precision();
|
||||||
|
|
||||||
return Error;
|
return Error;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user