mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-04-30 15:54:13 +08:00
Fixed the signature of the plset primitives for AVX512
This commit is contained in:
parent
67f44365ea
commit
3cfd16f3af
@ -136,14 +136,14 @@ EIGEN_STRONG_INLINE Packet8d pload1<Packet8d>(const double* from) {
|
||||
}
|
||||
|
||||
template <>
|
||||
EIGEN_STRONG_INLINE Packet16f plset<float>(const float& a) {
|
||||
EIGEN_STRONG_INLINE Packet16f plset<Packet16f>(const float& a) {
|
||||
return _mm512_add_ps(
|
||||
_mm512_set1_ps(a),
|
||||
_mm512_set_ps(15.0f, 14.0f, 13.0f, 12.0f, 11.0f, 10.0f, 9.0f, 8.0f, 7.0f, 6.0f, 5.0f,
|
||||
4.0f, 3.0f, 2.0f, 1.0f, 0.0f));
|
||||
}
|
||||
template <>
|
||||
EIGEN_STRONG_INLINE Packet8d plset<double>(const double& a) {
|
||||
EIGEN_STRONG_INLINE Packet8d plset<Packet8d>(const double& a) {
|
||||
return _mm512_add_pd(_mm512_set1_pd(a),
|
||||
_mm512_set_pd(7.0, 6.0, 5.0, 4.0, 3.0, 2.0, 1.0, 0.0));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user