MCPcopy Create free account
hub / github.com/KhronosGroup/KTX-Software / TEST

Function TEST

external/astc-encoder/Source/UnitTest/test_simd.cpp:86–98  ·  view source on GitHub ↗

@brief Test VLA loop limit round down. */

Source from the content-addressed store, hash-verified

84
85/** @brief Test VLA loop limit round down. */
86TEST(SuiteMisc, RoundDownVLA)
87{
88 // Static ones which are valid for all VLA widths
89 EXPECT_EQ(round_down_to_simd_multiple_vla(0), 0u);
90 EXPECT_EQ(round_down_to_simd_multiple_vla(8), 8u);
91 EXPECT_EQ(round_down_to_simd_multiple_vla(16), 16u);
92
93 // Variable ones which depend on VLA width
94 EXPECT_EQ(round_down_to_simd_multiple_vla(3), round_down(3));
95 EXPECT_EQ(round_down_to_simd_multiple_vla(5), round_down(5));
96 EXPECT_EQ(round_down_to_simd_multiple_vla(7), round_down(7));
97 EXPECT_EQ(round_down_to_simd_multiple_vla(231), round_down(231));
98}
99
100/** @brief Test VLA loop limit round up. */
101TEST(SuiteMisc, RoundUpVLA)

Callers

nothing calls this directly

Calls 15

round_downFunction · 0.85
round_upFunction · 0.85
change_signFunction · 0.85
atanFunction · 0.85
vfloat8_litFunction · 0.85
hmin_rgb_sFunction · 0.85
hadd_rgb_sFunction · 0.85
normalize_safeFunction · 0.85
isnanFunction · 0.85
two_to_the_nFunction · 0.85

Tested by

no test coverage detected