Skip to content

Commit 8445ee8

Browse files
author
Alexander Batashev
authored
[SYCL] Fix conflicting visibility attributes (#1571)
Signed-off-by: Alexander Batashev <alexander.batashev@intel.com>
1 parent 0614e9a commit 8445ee8

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

sycl/source/detail/builtins_common.cpp

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,35 +26,32 @@ __SYCL_INLINE_NAMESPACE(cl) {
2626
namespace __host_std {
2727
namespace {
2828

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) {
3030
return std::fmin(std::fmax(x, minval), maxval);
3131
}
3232

33-
template <typename T> __SYCL_EXPORT inline T __degrees(T radians) {
33+
template <typename T> inline T __degrees(T radians) {
3434
return (180 / M_PI) * radians;
3535
}
3636

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; }
4038

41-
template <typename T> __SYCL_EXPORT inline T __radians(T degrees) {
39+
template <typename T> inline T __radians(T degrees) {
4240
return (M_PI / 180) * degrees;
4341
}
4442

45-
template <typename T> __SYCL_EXPORT inline T __step(T edge, T x) {
43+
template <typename T> inline T __step(T edge, T x) {
4644
return (x < edge) ? 0.0 : 1.0;
4745
}
4846

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) {
5148
T t;
5249
T v = (x - edge0) / (edge1 - edge0);
5350
t = __fclamp(v, T(0), T(1));
5451
return t * t * (3 - 2 * t);
5552
}
5653

57-
template <typename T> __SYCL_EXPORT inline T __sign(T x) {
54+
template <typename T> inline T __sign(T x) {
5855
if (std::isnan(d::cast_if_host_half(x)))
5956
return T(0.0);
6057
if (x > 0)

0 commit comments

Comments
 (0)