Skip to content

Commit b9a6bde

Browse files
Update sycl/test/devicelib/std_complex_math_test.cpp
Signed-off-by: haonanya [email protected] Define constant using C++ const expression. Co-authored-by: Alexander Batashev <[email protected]>
1 parent 95966cc commit b9a6bde

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sycl/test/devicelib/std_complex_math_test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ bool approx_equal_cmplx(complex<T> x, complex<T> y) {
2222
approx_equal_fp(x.imag(), y.imag());
2323
}
2424

25-
#define TEST_NUM1 57
26-
#define TEST_NUM2 10
25+
static constexpr auto TestArraySize1 = 57;
26+
static constexpr auto TestArraySize2 = 10;
2727

2828
complex<float> ref1_results[TEST_NUM1] = {
2929
complex<float>(-1.f, 1.f),

0 commit comments

Comments
 (0)