Sha256: d2b969067c3b055915d3feae693eae9fb01b5bfd68da2bd0324a7dc02f185a6c

Contents?: true

Size: 888 Bytes

Versions: 21

Compression:

Stored size: 888 Bytes

Contents

#include <glm/glm.hpp>

int test_int_size()
{
	return
		sizeof(glm::int_t) != sizeof(glm::lowp_int) &&
		sizeof(glm::int_t) != sizeof(glm::mediump_int) && 
		sizeof(glm::int_t) != sizeof(glm::highp_int);
}

int test_uint_size()
{
	return
		sizeof(glm::uint_t) != sizeof(glm::lowp_uint) &&
		sizeof(glm::uint_t) != sizeof(glm::mediump_uint) && 
		sizeof(glm::uint_t) != sizeof(glm::highp_uint);
}

int test_int_precision()
{
	return (
		sizeof(glm::lowp_int) <= sizeof(glm::mediump_int) && 
		sizeof(glm::mediump_int) <= sizeof(glm::highp_int)) ? 0 : 1;
}

int test_uint_precision()
{
	return (
		sizeof(glm::lowp_uint) <= sizeof(glm::mediump_uint) && 
		sizeof(glm::mediump_uint) <= sizeof(glm::highp_uint)) ? 0 : 1;
}

int main()
{
	int Error = 0;

	Error += test_int_size();
	Error += test_int_precision();
	Error += test_uint_size();
	Error += test_uint_precision();

	return Error;
}

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
pixo-0.4.5 ext/pixo/ext/glm/test/core/core_type_int.cpp
pixo-0.4.4 ext/pixo/ext/glm/test/core/core_type_int.cpp
pixo-0.4.3 ext/pixo/ext/glm/test/core/core_type_int.cpp
pixo-0.4.2 ext/pixo/ext/glm/test/core/core_type_int.cpp
pixo-0.4.1 ext/pixo/ext/glm/test/core/core_type_int.cpp
pixo-0.4.0 ext/pixo/ext/glm/test/core/core_type_int.cpp
pixo-0.3.2 ext/pixo/ext/glm/test/core/core_type_int.cpp
pixo-0.3.1 ext/pixo/ext/glm/test/core/core_type_int.cpp
pixo-0.3.0 ext/pixo/ext/glm/test/core/core_type_int.cpp
pixo-0.2.6 ext/pixo/ext/glm/test/core/core_type_int.cpp
pixo-0.2.5 ext/pixo/ext/glm/test/core/core_type_int.cpp
pixo-0.2.4 ext/pixo/ext/glm/test/core/core_type_int.cpp
pixo-0.2.3 ext/pixo/ext/glm/test/core/core_type_int.cpp
pixo-0.2.2 ext/pixo/ext/glm/test/core/core_type_int.cpp
pixo-0.2.1 ext/pixo/ext/glm/test/core/core_type_int.cpp
pixo-0.2.0 ext/pixo/ext/glm/test/core/core_type_int.cpp
pixo-0.1.4 ext/pixo/ext/glm/test/core/core_type_int.cpp
pixo-0.1.3 ext/pixo/ext/glm/test/core/core_type_int.cpp
pixo-0.1.2 ext/pixo/ext/glm/test/core/core_type_int.cpp
pixo-0.1.1 ext/pixo/ext/glm/test/core/core_type_int.cpp