Skip to content

Commit fd59777

Browse files
authored
[SYCL][ESIMD][E2E] Fix BFN test on Windows (#10061)
'long' is 4 bytes on Windows.
1 parent 49bbcbf commit fd59777

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sycl/test-e2e/ESIMD/bfn.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,12 @@ template <class T, experimental::esimd::bfn_t Op> struct HostFunc;
5858
T operator()(T X0, T X1, T X2) { \
5959
T res = 0; \
6060
for (unsigned i = 0; i < sizeof(X0) * 8; i++) { \
61-
T mask = 0x1UL << i; \
61+
T mask = T(0x1) << i; \
6262
res = (res & ~mask) | \
6363
((static_cast<uint8_t>(FUNC_CTRL) >> \
64-
((((X0 >> i) & 0x1UL)) + (((X1 >> i) & 0x1UL) << 1) + \
65-
(((X2 >> i) & 0x1UL) << 2)) & \
66-
0x1UL) \
64+
((((X0 >> i) & T(0x1))) + (((X1 >> i) & T(0x1)) << 1) + \
65+
(((X2 >> i) & T(0x1)) << 2)) & \
66+
T(0x1)) \
6767
<< i); \
6868
} \
6969
return res; \

0 commit comments

Comments
 (0)