@@ -36,7 +36,7 @@ inline _LIBCUDACXX_INLINE_VISIBILITY __half sin(__half __v)
36
36
{
37
37
NV_IF_ELSE_TARGET (NV_PROVIDES_SM_53, (return ::hsin (__v);), ({
38
38
float __vf = __half2float (__v);
39
- __vf = ::sin (__vf);
39
+ __vf = ::sinf (__vf);
40
40
__half_raw __ret_repr = ::__float2half_rn (__vf);
41
41
42
42
uint16_t __repr = __half_raw (__v).x ;
@@ -61,7 +61,7 @@ inline _LIBCUDACXX_INLINE_VISIBILITY __half sin(__half __v)
61
61
62
62
inline _LIBCUDACXX_INLINE_VISIBILITY __half sinh (__half __v)
63
63
{
64
- return __float2half (::sinh (__half2float (__v)));
64
+ return __float2half (::sinhf (__half2float (__v)));
65
65
}
66
66
67
67
// clang-format off
@@ -72,7 +72,7 @@ inline _LIBCUDACXX_INLINE_VISIBILITY __half cos(__half __v)
72
72
), (
73
73
{
74
74
float __vf = __half2float (__v);
75
- __vf = ::cos (__vf);
75
+ __vf = ::cosf (__vf);
76
76
__half_raw __ret_repr = ::__float2half_rn (__vf);
77
77
78
78
uint16_t __repr = __half_raw (__v).x ;
@@ -94,7 +94,7 @@ inline _LIBCUDACXX_INLINE_VISIBILITY __half cos(__half __v)
94
94
95
95
inline _LIBCUDACXX_INLINE_VISIBILITY __half cosh (__half __v)
96
96
{
97
- return __float2half (::cosh (__half2float (__v)));
97
+ return __float2half (::coshf (__half2float (__v)));
98
98
}
99
99
100
100
// clang-format off
@@ -105,7 +105,7 @@ inline _LIBCUDACXX_INLINE_VISIBILITY __half exp(__half __v)
105
105
), (
106
106
{
107
107
float __vf = __half2float (__v);
108
- __vf = ::exp (__vf);
108
+ __vf = ::expf (__vf);
109
109
__half_raw __ret_repr = ::__float2half_rn (__vf);
110
110
111
111
uint16_t __repr = __half_raw (__v).x ;
@@ -127,12 +127,12 @@ inline _LIBCUDACXX_INLINE_VISIBILITY __half exp(__half __v)
127
127
128
128
inline _LIBCUDACXX_INLINE_VISIBILITY __half hypot (__half __x, __half __y)
129
129
{
130
- return __float2half (::hypot (__half2float (__x), __half2float (__y)));
130
+ return __float2half (::hypotf (__half2float (__x), __half2float (__y)));
131
131
}
132
132
133
133
inline _LIBCUDACXX_INLINE_VISIBILITY __half atan2 (__half __x, __half __y)
134
134
{
135
- return __float2half (::atan2 (__half2float (__x), __half2float (__y)));
135
+ return __float2half (::atan2f (__half2float (__x), __half2float (__y)));
136
136
}
137
137
138
138
// clang-format off
@@ -143,7 +143,7 @@ inline _LIBCUDACXX_INLINE_VISIBILITY __half log(__half __x)
143
143
), (
144
144
{
145
145
float __vf = __half2float (__x);
146
- __vf = ::log (__vf);
146
+ __vf = ::logf (__vf);
147
147
__half_raw __ret_repr = ::__float2half_rn (__vf);
148
148
149
149
uint16_t __repr = __half_raw (__x).x ;
@@ -164,7 +164,7 @@ inline _LIBCUDACXX_INLINE_VISIBILITY __half log(__half __x)
164
164
165
165
inline _LIBCUDACXX_INLINE_VISIBILITY __half sqrt (__half __x)
166
166
{
167
- NV_IF_ELSE_TARGET (NV_IS_DEVICE, (return ::hsqrt (__x);), (return __float2half (::sqrt (__half2float (__x)));))
167
+ NV_IF_ELSE_TARGET (NV_IS_DEVICE, (return ::hsqrt (__x);), (return __float2half (::sqrtf (__half2float (__x)));))
168
168
}
169
169
170
170
// floating point helper
0 commit comments