@@ -62,7 +62,7 @@ template <MathOp Op> float HostMathFunc(float X);
62
62
63
63
// --- Specializations per each extended math operation
64
64
65
- #define DEFINE_OP (Op, HostOp ) \
65
+ #define DEFINE_ESIMD_OP (Op, HostOp ) \
66
66
template <> float HostMathFunc<MathOp::Op>(float X) { return HostOp (X); } \
67
67
template <int VL> struct DeviceMathFunc <VL, MathOp::Op> { \
68
68
simd<float , VL> \
@@ -71,7 +71,7 @@ template <MathOp Op> float HostMathFunc(float X);
71
71
} \
72
72
}
73
73
74
- #define DEFINE_OP_REUSE_SCALAR (Op, HostOp ) \
74
+ #define DEFINE_SIMD_OVERLOADED_STD_SYCL_OP (Op, HostOp ) \
75
75
template <> float HostMathFunc<MathOp::Op>(float X) { return HostOp (X); } \
76
76
template <int VL> struct DeviceMathFunc <VL, MathOp::Op> { \
77
77
simd<float , VL> \
@@ -80,13 +80,13 @@ template <MathOp Op> float HostMathFunc(float X);
80
80
} \
81
81
}
82
82
83
- DEFINE_OP_REUSE_SCALAR (sin, sin);
84
- DEFINE_OP_REUSE_SCALAR (cos, cos);
85
- DEFINE_OP_REUSE_SCALAR (exp, exp);
86
- DEFINE_OP_REUSE_SCALAR (log, log);
87
- DEFINE_OP (inv, 1 .0f /);
88
- DEFINE_OP (sqrt, sqrt);
89
- DEFINE_OP (rsqrt, 1 .0f / sqrt);
83
+ DEFINE_SIMD_OVERLOADED_STD_SYCL_OP (sin, sin);
84
+ DEFINE_SIMD_OVERLOADED_STD_SYCL_OP (cos, cos);
85
+ DEFINE_SIMD_OVERLOADED_STD_SYCL_OP (exp, exp);
86
+ DEFINE_SIMD_OVERLOADED_STD_SYCL_OP (log, log);
87
+ DEFINE_ESIMD_OP (inv, 1 .0f /);
88
+ DEFINE_ESIMD_OP (sqrt, sqrt);
89
+ DEFINE_ESIMD_OP (rsqrt, 1 .0f / sqrt);
90
90
91
91
// --- Generic kernel calculating an extended math operation on array elements
92
92
0 commit comments