From ddf668fe683b06e7c0a1b40af06772848b15af12 Mon Sep 17 00:00:00 2001 From: Christophe Date: Tue, 5 Mar 2024 15:47:05 +0100 Subject: [PATCH] Disable unit tests by default to avoid C.I. time out --- .github/workflows/ci.yml | 50 +++++++++++++++++------------------ CMakeLists.txt | 2 +- glm/detail/setup.hpp | 5 ++-- readme.md | 7 ++++- test/CMakeLists.txt | 4 +++ test/gtc/gtc_bitfield.cpp | 55 ++++++++++++++++++++++++++++++++++++++- 6 files changed, 92 insertions(+), 31 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0453873e78..a7f3bf4a9e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -50,55 +50,55 @@ jobs: - name: Run with automagic detection run: | - cmake -S. -B ./build_auto -T ${{matrix.toolkit}} + cmake -S. -B ./build_auto -T ${{matrix.toolkit}} -DGLM_BUILD_TESTS=ON cmake --build ./build_auto --config ${{matrix.config}} ctest --verbose -C ${{matrix.config}} --test-dir ./build_auto - name: Run with GLM_FORCE_PURE run: | - cmake -S. -B ./build_pure_std -T ${{matrix.toolkit}} -DGLM_FORCE_PURE=ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON + cmake -S. -B ./build_pure_std -T ${{matrix.toolkit}} -DGLM_BUILD_TESTS=ON -DGLM_FORCE_PURE=ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON cmake --build ./build_pure_std --config ${{matrix.config}} ctest --verbose -C ${{matrix.config}} --test-dir ./build_pure_std - name: Run with GLM_FORCE_PURE and language extensions run: | - cmake -S. -B ./build_pure_ext -T ${{matrix.toolkit}} -DGLM_FORCE_PURE=ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON -DGLM_ENABLE_LANG_EXTENSIONS=ON + cmake -S. -B ./build_pure_ext -T ${{matrix.toolkit}} -DGLM_BUILD_TESTS=ON -DGLM_FORCE_PURE=ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON -DGLM_ENABLE_LANG_EXTENSIONS=ON cmake --build ./build_pure_ext --config ${{matrix.config}} ctest --verbose -C ${{matrix.config}} --test-dir ./build_pure_ext - name: Run with GLM_ENABLE_SIMD_SSE2 run: | - cmake -S. -B ./build_sse2_std -T ${{matrix.toolkit}} -DGLM_FORCE_PURE=ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON + cmake -S. -B ./build_sse2_std -T ${{matrix.toolkit}} -DGLM_BUILD_TESTS=ON -DGLM_FORCE_PURE=ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON cmake --build ./build_sse2_std --config ${{matrix.config}} ctest --verbose -C ${{matrix.config}} --test-dir ./build_sse2_std - name: Run with GLM_ENABLE_SIMD_SSE2 and language extensions run: | - cmake -S. -B ./build_sse2_ext -T ${{matrix.toolkit}} -DGLM_ENABLE_SIMD_SSE2=ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON -DGLM_ENABLE_LANG_EXTENSIONS=ON + cmake -S. -B ./build_sse2_ext -T ${{matrix.toolkit}} -DGLM_BUILD_TESTS=ON -DGLM_ENABLE_SIMD_SSE2=ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON -DGLM_ENABLE_LANG_EXTENSIONS=ON cmake --build ./build_sse2_ext --config ${{matrix.config}} ctest --verbose -C ${{matrix.config}} --test-dir ./build_sse2_ext - name: Run with GLM_ENABLE_SIMD_AVX run: | - cmake -S. -B ./build_avx1_std -T ${{matrix.toolkit}} -DGLM_ENABLE_SIMD_AVX=ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON + cmake -S. -B ./build_avx1_std -T ${{matrix.toolkit}} -DGLM_BUILD_TESTS=ON -DGLM_ENABLE_SIMD_AVX=ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON cmake --build ./build_avx1_std --config ${{matrix.config}} ctest --verbose -C ${{matrix.config}} --test-dir ./build_avx1_std - name: Run with GLM_ENABLE_SIMD_AVX and language extensions run: | - cmake -S. -B ./build_avx1_ext -T ${{matrix.toolkit}} -DGLM_ENABLE_SIMD_AVX=ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON -DGLM_ENABLE_LANG_EXTENSIONS=ON + cmake -S. -B ./build_avx1_ext -T ${{matrix.toolkit}} -DGLM_BUILD_TESTS=ON -DGLM_ENABLE_SIMD_AVX=ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON -DGLM_ENABLE_LANG_EXTENSIONS=ON cmake --build ./build_avx1_ext --config ${{matrix.config}} ctest --verbose -C ${{matrix.config}} --test-dir ./build_avx1_ext - name: Run with GLM_ENABLE_SIMD_AVX2 run: | - cmake -S. -B ./build_avx2_std -T ${{matrix.toolkit}} -DGLM_ENABLE_SIMD_AVX2=ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON + cmake -S. -B ./build_avx2_std -T ${{matrix.toolkit}} -DGLM_BUILD_TESTS=ON -DGLM_ENABLE_SIMD_AVX2=ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON cmake --build ./build_avx2_std --config ${{matrix.config}} ctest --verbose -C ${{matrix.config}} --test-dir ./build_avx2_std - name: Run with GLM_ENABLE_SIMD_AVX2 and language extensions run: | - cmake -S. -B ./build_avx2_ext -T ${{matrix.toolkit}} -DGLM_ENABLE_SIMD_AVX2=ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON -DGLM_ENABLE_LANG_EXTENSIONS=ON + cmake -S. -B ./build_avx2_ext -T ${{matrix.toolkit}} -DGLM_BUILD_TESTS=ON -DGLM_ENABLE_SIMD_AVX2=ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON -DGLM_ENABLE_LANG_EXTENSIONS=ON cmake --build ./build_avx2_ext --config ${{matrix.config}} ctest --verbose -C ${{matrix.config}} --test-dir ./build_avx2_ext @@ -130,51 +130,51 @@ jobs: run: cmake --version - name: Run with automagic detection run: | - cmake -S. -B ./build_auto + cmake -S. -B ./build_auto -DGLM_BUILD_TESTS=ON cmake --build ./build_auto --config ${{matrix.config}} ctest --verbose -C ${{matrix.config}} --test-dir ./build_auto - name: Run with GLM_FORCE_PURE run: | - cmake -S. -B ./build_pure_std -DGLM_FORCE_PURE=ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON + cmake -S. -B ./build_pure_std -DGLM_BUILD_TESTS=ON -DGLM_FORCE_PURE=ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON cmake --build ./build_pure_std --config ${{matrix.config}} ctest --verbose -C ${{matrix.config}} --test-dir ./build_pure_std - name: Run with GLM_FORCE_PURE and language extensions run: | - cmake -S. -B ./build_pure_ext -DGLM_FORCE_PURE=ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON -DGLM_ENABLE_LANG_EXTENSIONS=ON + cmake -S. -B ./build_pure_ext -DGLM_BUILD_TESTS=ON -DGLM_FORCE_PURE=ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON -DGLM_ENABLE_LANG_EXTENSIONS=ON cmake --build ./build_pure_ext --config ${{matrix.config}} ctest --verbose -C ${{matrix.config}} --test-dir ./build_pure_ext - name: Run with GLM_ENABLE_SIMD_SSE2 run: | - cmake -S. -B ./build_sse2_std -DGLM_FORCE_PURE=ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON + cmake -S. -B ./build_sse2_std -DGLM_BUILD_TESTS=ON -DGLM_FORCE_PURE=ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON cmake --build ./build_sse2_std --config ${{matrix.config}} ctest --verbose -C ${{matrix.config}} --test-dir ./build_sse2_std - name: Run with GLM_ENABLE_SIMD_SSE2 and language extensions run: | - cmake -S. -B ./build_sse2_ext -DGLM_ENABLE_SIMD_SSE2=ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON -DGLM_ENABLE_LANG_EXTENSIONS=ON + cmake -S. -B ./build_sse2_ext -DGLM_BUILD_TESTS=ON -DGLM_ENABLE_SIMD_SSE2=ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON -DGLM_ENABLE_LANG_EXTENSIONS=ON cmake --build ./build_sse2_ext --config ${{matrix.config}} ctest --verbose -C ${{matrix.config}} --test-dir ./build_sse2_ext - name: Run with GLM_ENABLE_SIMD_AVX run: | - cmake -S. -B ./build_avx1_std -DGLM_ENABLE_SIMD_AVX=ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON + cmake -S. -B ./build_avx1_std -DGLM_BUILD_TESTS=ON -DGLM_ENABLE_SIMD_AVX=ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON cmake --build ./build_avx1_std --config ${{matrix.config}} ctest --verbose -C ${{matrix.config}} --test-dir ./build_avx1_std - name: Run with GLM_ENABLE_SIMD_AVX and language extensions run: | - cmake -S. -B ./build_avx1_ext -DGLM_ENABLE_SIMD_AVX=ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON -DGLM_ENABLE_LANG_EXTENSIONS=ON + cmake -S. -B ./build_avx1_ext -DGLM_BUILD_TESTS=ON -DGLM_ENABLE_SIMD_AVX=ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON -DGLM_ENABLE_LANG_EXTENSIONS=ON cmake --build ./build_avx1_ext --config ${{matrix.config}} ctest --verbose -C ${{matrix.config}} --test-dir ./build_avx1_ext - name: Run with GLM_ENABLE_SIMD_AVX2 run: | - cmake -S. -B ./build_avx2_std -DGLM_ENABLE_SIMD_AVX2=ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON + cmake -S. -B ./build_avx2_std -DGLM_BUILD_TESTS=ON -DGLM_ENABLE_SIMD_AVX2=ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON cmake --build ./build_avx2_std --config ${{matrix.config}} ctest --verbose -C ${{matrix.config}} --test-dir ./build_avx2_std - name: Run with GLM_ENABLE_SIMD_AVX2 and language extensions run: | - cmake -S. -B ./build_avx2_ext -DGLM_ENABLE_SIMD_AVX2=ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON -DGLM_ENABLE_LANG_EXTENSIONS=ON + cmake -S. -B ./build_avx2_ext -DGLM_BUILD_TESTS=ON -DGLM_ENABLE_SIMD_AVX2=ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON -DGLM_ENABLE_LANG_EXTENSIONS=ON cmake --build ./build_avx2_ext --config ${{matrix.config}} ctest --verbose -C ${{matrix.config}} --test-dir ./build_avx2_ext @@ -206,40 +206,40 @@ jobs: run: cmake --version - name: Run with automagic detection run: | - cmake -S. -B ./build_auto + cmake -S. -B ./build_auto -DGLM_BUILD_TESTS=ON cmake --build ./build_auto --config ${{matrix.config}} ctest --verbose -C ${{matrix.config}} --test-dir ./build_auto - name: Run with GLM_FORCE_PURE run: | - cmake -S. -B ./build_pure_std -DGLM_FORCE_PURE=ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON + cmake -S. -B ./build_pure_std -DGLM_BUILD_TESTS=ON -DGLM_FORCE_PURE=ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON cmake --build ./build_pure_std --config ${{matrix.config}} ctest --verbose -C ${{matrix.config}} --test-dir ./build_pure_std - name: Run with GLM_FORCE_PURE and language extensions run: | - cmake -S. -B ./build_pure_ext -DGLM_FORCE_PURE=ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON -DGLM_ENABLE_LANG_EXTENSIONS=ON + cmake -S. -B ./build_pure_ext -DGLM_BUILD_TESTS=ON -DGLM_FORCE_PURE=ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON -DGLM_ENABLE_LANG_EXTENSIONS=ON cmake --build ./build_pure_ext --config ${{matrix.config}} ctest --verbose -C ${{matrix.config}} --test-dir ./build_pure_ext - name: Run with GLM_ENABLE_SIMD_SSE2 run: | - cmake -S. -B ./build_sse2_std -DGLM_FORCE_PURE=ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON + cmake -S. -B ./build_sse2_std -DGLM_BUILD_TESTS=ON -DGLM_FORCE_PURE=ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON cmake --build ./build_sse2_std --config ${{matrix.config}} ctest --verbose -C ${{matrix.config}} --test-dir ./build_sse2_std - name: Run with GLM_ENABLE_SIMD_SSE2 and language extensions run: | - cmake -S. -B ./build_sse2_ext -DGLM_ENABLE_SIMD_SSE2=ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON -DGLM_ENABLE_LANG_EXTENSIONS=ON + cmake -S. -B ./build_sse2_ext -DGLM_BUILD_TESTS=ON -DGLM_ENABLE_SIMD_SSE2=ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON -DGLM_ENABLE_LANG_EXTENSIONS=ON cmake --build ./build_sse2_ext --config ${{matrix.config}} ctest --verbose -C ${{matrix.config}} --test-dir ./build_sse2_ext - name: Run with GLM_ENABLE_SIMD_AVX run: | - cmake -S. -B ./build_avx1_std -DGLM_ENABLE_SIMD_AVX=ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON + cmake -S. -B ./build_avx1_std -DGLM_BUILD_TESTS=ON -DGLM_ENABLE_SIMD_AVX=ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON cmake --build ./build_avx1_std --config ${{matrix.config}} ctest --verbose -C ${{matrix.config}} --test-dir ./build_avx1_std - name: Run with GLM_ENABLE_SIMD_AVX and language extensions run: | - cmake -S. -B ./build_avx1_ext -DGLM_ENABLE_SIMD_AVX=ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON -DGLM_ENABLE_LANG_EXTENSIONS=ON + cmake -S. -B ./build_avx1_ext -DGLM_BUILD_TESTS=ON -DGLM_ENABLE_SIMD_AVX=ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON -DGLM_ENABLE_LANG_EXTENSIONS=ON cmake --build ./build_avx1_ext --config ${{matrix.config}} ctest --verbose -C ${{matrix.config}} --test-dir ./build_avx1_ext \ No newline at end of file diff --git a/CMakeLists.txt b/CMakeLists.txt index 034177220a..5bfcc3f75e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -21,7 +21,7 @@ if (${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR}) endif() option(GLM_BUILD_LIBRARY "Build dynamic/static library" ON) -option(GLM_BUILD_TESTS "Build the test programs" ${GLM_IS_MASTER_PROJECT}) +option(GLM_BUILD_TESTS "Build the test programs" OFF) option(GLM_BUILD_INSTALL "Generate the install target" ${GLM_IS_MASTER_PROJECT}) include(GNUInstallDirs) diff --git a/glm/detail/setup.hpp b/glm/detail/setup.hpp index 315eb3466e..68ff489b16 100644 --- a/glm/detail/setup.hpp +++ b/glm/detail/setup.hpp @@ -5,10 +5,9 @@ #define GLM_VERSION_MAJOR 1 #define GLM_VERSION_MINOR 0 -#define GLM_VERSION_PATCH 1 +#define GLM_VERSION_PATCH 2 #define GLM_VERSION_REVISION 0 // Deprecated #define GLM_VERSION 1000 // Deprecated -#define GLM_VERSION_MESSAGE "GLM: version 1.0.1" #define GLM_MAKE_API_VERSION(variant, major, minor, patch) \ ((((uint32_t)(variant)) << 29U) | (((uint32_t)(major)) << 22U) | (((uint32_t)(minor)) << 12U) | ((uint32_t)(patch))) @@ -977,7 +976,7 @@ namespace detail # define GLM_STR(x) GLM_STR_HELPER(x) // Report GLM version -# pragma message (GLM_STR(GLM_VERSION_MESSAGE)) +# pragma message ("GLM: version " GLM_STR(GLM_VERSION_MAJOR) "." GLM_STR(GLM_VERSION_MINOR) "." GLM_STR(GLM_VERSION_PATCH)) // Report C++ language # if (GLM_LANG & GLM_LANG_CXX20_FLAG) && (GLM_LANG & GLM_LANG_EXT) diff --git a/readme.md b/readme.md index 4bcfefa736..4b75318944 100644 --- a/readme.md +++ b/readme.md @@ -95,7 +95,7 @@ include(FetchContent) FetchContent_Declare( glm GIT_REPOSITORY https://github.com/g-truc/glm.git - GIT_TAG bf71a834948186f4097caa076cd2663c69a10e1e #refs/tags/0.9.9.8 + GIT_TAG bf71a834948186f4097caa076cd2663c69a10e1e #refs/tags/1.0.1 ) FetchContent_MakeAvailable(glm) @@ -105,6 +105,11 @@ target_link_libraries(main PRIVATE glm::glm) ## Release notes +### [GLM 1.0.2](https://github.com/g-truc/glm/tree/master) - 2024-0X-XX + +#### Improvements: +- Unit tests are not build by default, `GLM_BUILD_TESTS` set to `ON` required. + ### [GLM 1.0.1](https://github.com/g-truc/glm/releases/tag/1.0.1) - 2024-02-26 #### Features: diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 4ed1403f18..274cbd7a67 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -3,6 +3,10 @@ option(GLM_QUIET "No CMake Message" OFF) option(GLM_TEST_ENABLE "Build unit tests" ON) option(GLM_PERF_TEST_ENABLE "Build perf tests" OFF) +if(GLM_PERF_TEST_ENABLE) + add_definitions(-DGLM_TEST_PERF) +endif() + # Compiler and default options if(CMAKE_CXX_COMPILER_ID MATCHES "Clang") diff --git a/test/gtc/gtc_bitfield.cpp b/test/gtc/gtc_bitfield.cpp index 27725b2d91..08a59f3b90 100644 --- a/test/gtc/gtc_bitfield.cpp +++ b/test/gtc/gtc_bitfield.cpp @@ -60,6 +60,7 @@ namespace mask return Mask; } +#ifdef GLM_TEST_PERF static int perf() { int const Count = 1000; @@ -125,6 +126,7 @@ namespace mask return TimeDefault <= TimeLoop ? 0 : 1; } +#endif//GLM_TEST_PERF #if GLM_COMPILER & GLM_COMPILER_CLANG # pragma clang diagnostic pop @@ -208,6 +210,7 @@ namespace mask } }//namespace mask +#ifdef GLM_TEST_PERF namespace bitfieldInterleave3 { template @@ -227,6 +230,8 @@ namespace bitfieldInterleave3 { int Error(0); + std::clock_t const LastTime = std::clock(); + glm::uint16 const test_max = 5; // previously 11 glm::uint16 x_max = 1 << test_max; @@ -242,6 +247,10 @@ namespace bitfieldInterleave3 Error += ResultA == ResultB ? 0 : 1; } + std::clock_t const Time = std::clock() - LastTime; + + std::printf("glm::bitfieldInterleave3 Test %d clocks\n", static_cast(Time)); + return Error; } } @@ -267,6 +276,8 @@ namespace bitfieldInterleave4 { int Error(0); + std::clock_t const LastTime = std::clock(); + glm::uint16 const test_max = 5; // previously 11 glm::uint16 x_max = 1 << test_max; @@ -284,9 +295,14 @@ namespace bitfieldInterleave4 Error += ResultA == ResultB ? 0 : 1; } + std::clock_t const Time = std::clock() - LastTime; + + std::printf("glm::bitfieldInterleave4 Test %d clocks\n", static_cast(Time)); + return Error; } } +#endif//GLM_TEST_PERF namespace bitfieldInterleave { @@ -500,6 +516,8 @@ namespace bitfieldInterleave { int Error = 0; + std::clock_t const LastTime = std::clock(); + glm::uint8 const test_loop = 15; // 127 ideally /* @@ -560,9 +578,14 @@ namespace bitfieldInterleave } } + std::clock_t const Time = std::clock() - LastTime; + + std::printf("glm::bitfieldInterleave Test %d clocks\n", static_cast(Time)); + return Error; } +#ifdef GLM_TEST_PERF static int perf() { glm::uint32 x_max = 1 << 4; @@ -677,8 +700,10 @@ namespace bitfieldInterleave return 0; } +#endif//GLM_TEST_PERF }//namespace bitfieldInterleave +#ifdef GLM_TEST_PERF namespace bitfieldInterleave5 { GLM_FUNC_QUALIFIER @@ -764,6 +789,8 @@ namespace bitfieldInterleave5 { int Error = 0; + std::clock_t const LastTime = std::clock(); + glm::size_t count = 256 / divider; for(glm::size_t j = 0; j < count; ++j) @@ -803,6 +830,10 @@ namespace bitfieldInterleave5 Error += A == B ? 0 : 1; } */ + std::clock_t const Time = std::clock() - LastTime; + + std::printf("glm::bitfieldInterleave4 Test %d clocks\n", static_cast(Time)); + return Error; } @@ -962,22 +993,34 @@ namespace bitfieldInterleave5 return Error; } - }//namespace bitfieldInterleave5 +#endif//GLM_TEST_PERF static int test_bitfieldRotateRight() { + std::clock_t const LastTime = std::clock(); + glm::ivec4 const A = glm::bitfieldRotateRight(glm::ivec4(2), 1); glm::ivec4 const B = glm::ivec4(2) >> 1; + std::clock_t const Time = std::clock() - LastTime; + + std::printf("glm::bitfieldRotateRight Test %d clocks\n", static_cast(Time)); + return A == B; } static int test_bitfieldRotateLeft() { + std::clock_t const LastTime = std::clock(); + glm::ivec4 const A = glm::bitfieldRotateLeft(glm::ivec4(2), 1); glm::ivec4 const B = glm::ivec4(2) << 1; + std::clock_t const Time = std::clock() - LastTime; + + std::printf("glm::bitfieldRotateLeft Test %d clocks\n", static_cast(Time)); + return A == B; } @@ -986,6 +1029,9 @@ int main() int Error = 0; Error += ::bitfieldInterleave::test(); + +#ifdef GLM_TEST_PERF + Error += ::bitfieldInterleave3::test(); Error += ::bitfieldInterleave4::test(); @@ -995,9 +1041,16 @@ int main() Error += ::bitfieldInterleave::perf(); +#endif//GLM_TEST_PERF + Error += ::mask::test(); + +#ifdef GLM_TEST_PERF + Error += ::mask::perf(); +#endif//GLM_TEST_PERF + Error += test_bitfieldRotateRight(); Error += test_bitfieldRotateLeft();