mirror of
https://github.com/fumiama/base16384-sycl.git
synced 2026-06-05 08:40:34 +08:00
optimize(test): move test kernels into test class
This commit is contained in:
14
libs/test_kernels.cpp
Normal file
14
libs/test_kernels.cpp
Normal file
@@ -0,0 +1,14 @@
|
||||
#include <stdint.h>
|
||||
|
||||
#include <sycl/sycl.hpp>
|
||||
|
||||
#include "test.hpp"
|
||||
|
||||
SYCL_EXTERNAL uint8_t base16384::test::kernels_basic(uint8_t in) {
|
||||
in *= in;
|
||||
in %= 251;
|
||||
in ^= in >> 2;
|
||||
in += 17;
|
||||
in *= 3;
|
||||
return in ^ (in << 1);
|
||||
}
|
||||
Reference in New Issue
Block a user