Home
last modified time | relevance | path

Searched refs:ARRAY_LEN (Results 1 – 5 of 5) sorted by relevance

/openbmc/linux/tools/testing/selftests/openat2/
H A Dopenat2_test.c86 BUILD_BUG_ON(ARRAY_LEN(misalignments) != NUM_OPENAT2_STRUCT_VARIATIONS); in test_openat2_struct()
87 BUILD_BUG_ON(ARRAY_LEN(tests) != NUM_OPENAT2_STRUCT_TESTS); in test_openat2_struct()
89 for (int i = 0; i < ARRAY_LEN(tests); i++) { in test_openat2_struct()
93 for (int j = 0; j < ARRAY_LEN(misalignments); j++) { in test_openat2_struct()
244 BUILD_BUG_ON(ARRAY_LEN(tests) != NUM_OPENAT2_FLAG_TESTS); in test_openat2_flags()
246 for (int i = 0; i < ARRAY_LEN(tests); i++) { in test_openat2_flags()
H A Dhelpers.h17 #define ARRAY_LEN(X) (sizeof (X) / sizeof (*(X))) macro
H A Dresolve_test.c439 BUILD_BUG_ON(ARRAY_LEN(tests) != NUM_OPENAT2_OPATH_TESTS); in test_openat2_opath_tests()
441 for (int i = 0; i < ARRAY_LEN(tests); i++) { in test_openat2_opath_tests()
/openbmc/qemu/tests/tcg/i386/
H A Dtest-avx.c223 #define ARRAY_LEN(x) (sizeof(x) / sizeof(x[0])) macro
262 if (n == ARRAY_LEN(val_f32)) { in init_f32reg()
276 if (n == ARRAY_LEN(val_f64)) { in init_f64reg()
293 if (n == ARRAY_LEN(val_i64)) { in init_intreg()
304 s->r[4] = (uint64_t)&gather_mem[ARRAY_LEN(gather_mem) / 2]; /* rsi */ in init_all()
364 for (i = 0; i < ARRAY_LEN(gather_mem); i++) { in main()
H A Dtest-mmx.c228 #define ARRAY_LEN(x) (sizeof(x) / sizeof(x[0])) macro
246 if (n == ARRAY_LEN(val_f32)) { in init_f32reg()
260 if (n == ARRAY_LEN(val_i64)) { in init_intreg()