mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-09-10 00:03:17 +08:00
Add inline/device-function attributes to fma.
This commit is contained in:
parent
da1a34a6ba
commit
f426eff949
@ -968,7 +968,7 @@ struct fma_impl {
|
|||||||
// STD or ADL version if it exists.
|
// STD or ADL version if it exists.
|
||||||
template <typename T>
|
template <typename T>
|
||||||
struct fma_impl<T, std::enable_if_t<has_fma<T>::value>> {
|
struct fma_impl<T, std::enable_if_t<has_fma<T>::value>> {
|
||||||
static T run(const T& a, const T& b, const T& c) {
|
static EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE T run(const T& a, const T& b, const T& c) {
|
||||||
using std::fma;
|
using std::fma;
|
||||||
return fma(a, b, c);
|
return fma(a, b, c);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user