diff --git a/glm/core/_detail.hpp b/glm/core/_detail.hpp index 9c826409..7cdc2ed0 100644 --- a/glm/core/_detail.hpp +++ b/glm/core/_detail.hpp @@ -327,7 +327,7 @@ namespace detail # define GLM_RESTRICT_VAR __restrict #elif((GLM_COMPILER & GLM_COMPILER_GCC) && (GLM_COMPILER >= GLM_COMPILER_GCC31)) # define GLM_DEPRECATED __attribute__((__deprecated__)) -# define GLM_ALIGN(x) __attribute__(aligned(x)) +# define GLM_ALIGN(x) __attribute__((aligned(x))) # if(GLM_COMPILER >= GLM_COMPILER_GCC33) # define GLM_RESTRICT __restrict__ # define GLM_RESTRICT_VAR __restrict__ diff --git a/test/gtx/gtx-simd-mat4.cpp b/test/gtx/gtx-simd-mat4.cpp index e9a56aae..5e9ce139 100644 --- a/test/gtx/gtx-simd-mat4.cpp +++ b/test/gtx/gtx-simd-mat4.cpp @@ -28,7 +28,7 @@ std::vector test_detA(std::vector const & Data) Test[i] = glm::determinant(Data[i]); std::clock_t TimeEnd = clock(); - printf("Det A: %d\n", TimeEnd - TimeStart); + printf("Det A: %ld\n", TimeEnd - TimeStart); return Test; } @@ -49,7 +49,7 @@ std::vector test_detB(std::vector const & Data) } std::clock_t TimeEnd = clock(); - printf("Det B: %d\n", TimeEnd - TimeStart); + printf("Det B: %ld\n", TimeEnd - TimeStart); return Test; } @@ -70,7 +70,7 @@ std::vector test_detC(std::vector const & Data) } std::clock_t TimeEnd = clock(); - printf("Det C: %d\n", TimeEnd - TimeStart); + printf("Det C: %ld\n", TimeEnd - TimeStart); return Test; } @@ -91,7 +91,7 @@ std::vector test_detD(std::vector const & Data) } std::clock_t TimeEnd = clock(); - printf("Det D: %d\n", TimeEnd - TimeStart); + printf("Det D: %ld\n", TimeEnd - TimeStart); return Test; } @@ -109,7 +109,7 @@ void test_invA(std::vector const & Data, std::vector & Out } std::clock_t TimeEnd = clock(); - printf("Inv A: %d\n", TimeEnd - TimeStart); + printf("Inv A: %ld\n", TimeEnd - TimeStart); } void test_invC(std::vector const & Data, std::vector & Out) @@ -129,7 +129,7 @@ void test_invC(std::vector const & Data, std::vector & Out } std::clock_t TimeEnd = clock(); - printf("Inv C: %d\n", TimeEnd - TimeStart); + printf("Inv C: %ld\n", TimeEnd - TimeStart); } void test_invD(std::vector const & Data, std::vector & Out) @@ -149,7 +149,7 @@ void test_invD(std::vector const & Data, std::vector & Out } std::clock_t TimeEnd = clock(); - printf("Inv D: %d\n", TimeEnd - TimeStart); + printf("Inv D: %ld\n", TimeEnd - TimeStart); } void test_mulA(std::vector const & Data, std::vector & Out) @@ -165,7 +165,7 @@ void test_mulA(std::vector const & Data, std::vector & Out } std::clock_t TimeEnd = clock(); - printf("Mul A: %d\n", TimeEnd - TimeStart); + printf("Mul A: %ld\n", TimeEnd - TimeStart); } void test_mulD(std::vector const & Data, std::vector & Out) @@ -183,7 +183,7 @@ void test_mulD(std::vector const & Data, std::vector & Out } std::clock_t TimeEnd = clock(); - printf("Mul D: %d\n", TimeEnd - TimeStart); + printf("Mul D: %ld\n", TimeEnd - TimeStart); } int test_compute_glm() @@ -222,7 +222,7 @@ int test_compute_gtx() } std::clock_t TimeEnd = clock(); - printf("test_compute_gtx: %d\n", TimeEnd - TimeStart); + printf("test_compute_gtx: %ld\n", TimeEnd - TimeStart); return Output.size() != 0; }