MCPcopy Create free account
hub / github.com/ARM-software/astc-encoder / TEST

Function TEST

Source/UnitTest/test_simd.cpp:92–104  ·  view source on GitHub ↗

@brief Test VLA loop limit round down. */

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 15

round_downFunction · 0.85
round_upFunction · 0.85
change_signFunction · 0.85
atanFunction · 0.85
atan2Function · 0.85
vfloat8_litFunction · 0.85
hmin_rgb_sFunction · 0.85
hadd_rgb_sFunction · 0.85
normalizeFunction · 0.85
normalize_safeFunction · 0.85

Tested by

no test coverage detected