Skip to content

Commit 2f145ae

Browse files
authored
BUG: Add missing execution space annotations (#43)
1 parent e329269 commit 2f145ae

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

include/xsf/trig.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,14 +151,14 @@ XSF_HOST_DEVICE inline float cotdg(float x) {
151151
return cotdg(static_cast<double>(x));
152152
}
153153

154-
inline double radian(double d, double m, double s) { return cephes::radian(d, m, s); }
154+
XSF_HOST_DEVICE inline double radian(double d, double m, double s) { return cephes::radian(d, m, s); }
155155

156-
inline float radian(float d, float m, float s) {
156+
XSF_HOST_DEVICE inline float radian(float d, float m, float s) {
157157
return radian(static_cast<double>(d), static_cast<double>(m), static_cast<double>(s));
158158
}
159159

160-
inline double cosm1(double x) { return cephes::cosm1(x); }
160+
XSF_HOST_DEVICE inline double cosm1(double x) { return cephes::cosm1(x); }
161161

162-
inline float cosm1(float x) { return cosm1(static_cast<double>(x)); }
162+
XSF_HOST_DEVICE inline float cosm1(float x) { return cosm1(static_cast<double>(x)); }
163163

164164
} // namespace xsf

0 commit comments

Comments
 (0)