|
|
@ -99,7 +99,7 @@ namespace log2_ |
|
|
|
|
|
|
|
|
|
|
|
std::clock_t End = clock(); |
|
|
|
std::clock_t End = clock(); |
|
|
|
|
|
|
|
|
|
|
|
printf("glm::log2<int>: %d clocks\n", End - Begin); |
|
|
|
printf("glm::log2<int>: %ld clocks\n", End - Begin); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
{ |
|
|
|
{ |
|
|
@ -113,7 +113,7 @@ namespace log2_ |
|
|
|
|
|
|
|
|
|
|
|
std::clock_t End = clock(); |
|
|
|
std::clock_t End = clock(); |
|
|
|
|
|
|
|
|
|
|
|
printf("glm::log2<ivec4>: %d clocks\n", End - Begin); |
|
|
|
printf("glm::log2<ivec4>: %ld clocks\n", End - Begin); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
# if GLM_HAS_BITSCAN_WINDOWS |
|
|
|
# if GLM_HAS_BITSCAN_WINDOWS |
|
|
@ -135,7 +135,7 @@ namespace log2_ |
|
|
|
|
|
|
|
|
|
|
|
std::clock_t End = clock(); |
|
|
|
std::clock_t End = clock(); |
|
|
|
|
|
|
|
|
|
|
|
printf("glm::log2<ivec4> inlined: %d clocks\n", End - Begin); |
|
|
|
printf("glm::log2<ivec4> inlined: %ld clocks\n", End - Begin); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -155,7 +155,7 @@ namespace log2_ |
|
|
|
|
|
|
|
|
|
|
|
std::clock_t End = clock(); |
|
|
|
std::clock_t End = clock(); |
|
|
|
|
|
|
|
|
|
|
|
printf("glm::log2<ivec4> inlined no cast: %d clocks\n", End - Begin); |
|
|
|
printf("glm::log2<ivec4> inlined no cast: %ld clocks\n", End - Begin); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -175,7 +175,7 @@ namespace log2_ |
|
|
|
|
|
|
|
|
|
|
|
std::clock_t End = clock(); |
|
|
|
std::clock_t End = clock(); |
|
|
|
|
|
|
|
|
|
|
|
printf("glm::log2<ivec4> reinterpret: %d clocks\n", End - Begin); |
|
|
|
printf("glm::log2<ivec4> reinterpret: %ld clocks\n", End - Begin); |
|
|
|
} |
|
|
|
} |
|
|
|
# endif//GLM_HAS_BITSCAN_WINDOWS
|
|
|
|
# endif//GLM_HAS_BITSCAN_WINDOWS
|
|
|
|
|
|
|
|
|
|
|
@ -190,7 +190,7 @@ namespace log2_ |
|
|
|
|
|
|
|
|
|
|
|
std::clock_t End = clock(); |
|
|
|
std::clock_t End = clock(); |
|
|
|
|
|
|
|
|
|
|
|
printf("glm::log2<float>: %d clocks\n", End - Begin); |
|
|
|
printf("glm::log2<float>: %ld clocks\n", End - Begin); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
{ |
|
|
|
{ |
|
|
@ -204,7 +204,7 @@ namespace log2_ |
|
|
|
|
|
|
|
|
|
|
|
std::clock_t End = clock(); |
|
|
|
std::clock_t End = clock(); |
|
|
|
|
|
|
|
|
|
|
|
printf("glm::log2<vec4>: %d clocks\n", End - Begin); |
|
|
|
printf("glm::log2<vec4>: %ld clocks\n", End - Begin); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return Error; |
|
|
|
return Error; |
|
|
|