@@ -26,35 +26,32 @@ __SYCL_INLINE_NAMESPACE(cl) {
26
26
namespace __host_std {
27
27
namespace {
28
28
29
- template <typename T> __SYCL_EXPORT inline T __fclamp (T x, T minval, T maxval) {
29
+ template <typename T> inline T __fclamp (T x, T minval, T maxval) {
30
30
return std::fmin (std::fmax (x, minval), maxval);
31
31
}
32
32
33
- template <typename T> __SYCL_EXPORT inline T __degrees (T radians) {
33
+ template <typename T> inline T __degrees (T radians) {
34
34
return (180 / M_PI) * radians;
35
35
}
36
36
37
- template <typename T> __SYCL_EXPORT inline T __mix (T x, T y, T a) {
38
- return x + (y - x) * a;
39
- }
37
+ template <typename T> inline T __mix (T x, T y, T a) { return x + (y - x) * a; }
40
38
41
- template <typename T> __SYCL_EXPORT inline T __radians (T degrees) {
39
+ template <typename T> inline T __radians (T degrees) {
42
40
return (M_PI / 180 ) * degrees;
43
41
}
44
42
45
- template <typename T> __SYCL_EXPORT inline T __step (T edge, T x) {
43
+ template <typename T> inline T __step (T edge, T x) {
46
44
return (x < edge) ? 0.0 : 1.0 ;
47
45
}
48
46
49
- template <typename T>
50
- __SYCL_EXPORT inline T __smoothstep (T edge0, T edge1, T x) {
47
+ template <typename T> inline T __smoothstep (T edge0, T edge1, T x) {
51
48
T t;
52
49
T v = (x - edge0) / (edge1 - edge0);
53
50
t = __fclamp (v, T (0 ), T (1 ));
54
51
return t * t * (3 - 2 * t);
55
52
}
56
53
57
- template <typename T> __SYCL_EXPORT inline T __sign (T x) {
54
+ template <typename T> inline T __sign (T x) {
58
55
if (std::isnan (d::cast_if_host_half (x)))
59
56
return T (0.0 );
60
57
if (x > 0 )
0 commit comments