We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49bbcbf commit fd59777Copy full SHA for fd59777
sycl/test-e2e/ESIMD/bfn.cpp
@@ -58,12 +58,12 @@ template <class T, experimental::esimd::bfn_t Op> struct HostFunc;
58
T operator()(T X0, T X1, T X2) { \
59
T res = 0; \
60
for (unsigned i = 0; i < sizeof(X0) * 8; i++) { \
61
- T mask = 0x1UL << i; \
+ T mask = T(0x1) << i; \
62
res = (res & ~mask) | \
63
((static_cast<uint8_t>(FUNC_CTRL) >> \
64
- ((((X0 >> i) & 0x1UL)) + (((X1 >> i) & 0x1UL) << 1) + \
65
- (((X2 >> i) & 0x1UL) << 2)) & \
66
- 0x1UL) \
+ ((((X0 >> i) & T(0x1))) + (((X1 >> i) & T(0x1)) << 1) + \
+ (((X2 >> i) & T(0x1)) << 2)) & \
+ T(0x1)) \
67
<< i); \
68
} \
69
return res; \
0 commit comments