libdpf/thirdparty/simde/test/arm/sve/test-sve.h
Ryan Henry 3f10e05176 Update googletest to 1.18.0 and SIMDe to 0.8.2.
Googletest 1.18 asks for CMake 3.13 or newer, so configuring the tests no longer warns that CMake compatibility below 3.10 is deprecated.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-24 14:30:19 -06:00

24 lines
746 B
C

#if !defined(SIMDE_TEST_ARM_SVE_TEST_SVE_H)
#define SIMDE_TEST_ARM_SVE_TEST_SVE_H
#include "../../test.h"
HEDLEY_DIAGNOSTIC_PUSH
HEDLEY_DIAGNOSTIC_DISABLE_UNUSED_FUNCTION
static int32_t
simde_test_arm_sve_random_length(size_t buf_size, size_t elem_size) {
return
(simde_test_codegen_random_i32() & HEDLEY_STATIC_CAST(int32_t, (buf_size / elem_size) - 1)) |
HEDLEY_STATIC_CAST(int32_t, (buf_size / 2) / elem_size);
}
HEDLEY_DIAGNOSTIC_POP
#if !defined(SIMDE_TEST_BARE)
#define SIMDE_TEST_DECLARE_SUITE(name) SIMDE_TEST_SUITE_DECLARE_GETTERS(HEDLEY_CONCAT(simde_test_arm_sve_get_suite_,name))
#include <test/arm/sve/declare-suites.h>
#undef SIMDE_TEST_DECLARE_SUITE
#endif
#endif /* !defined(SIMDE_TEST_ARM_SVE_TEST_SVE_H) */