10 #ifndef EIGEN_PACKET_MATH_ALTIVEC_H
11 #define EIGEN_PACKET_MATH_ALTIVEC_H
14 #include "../../InternalHeaderCheck.h"
20 #ifndef EIGEN_CACHEFRIENDLY_PRODUCT_THRESHOLD
21 #define EIGEN_CACHEFRIENDLY_PRODUCT_THRESHOLD 4
24 #ifndef EIGEN_HAS_SINGLE_INSTRUCTION_MADD
25 #define EIGEN_HAS_SINGLE_INSTRUCTION_MADD
29 #ifndef EIGEN_ARCH_DEFAULT_NUMBER_OF_REGISTERS
30 #define EIGEN_ARCH_DEFAULT_NUMBER_OF_REGISTERS 32
46 #define EIGEN_DECLARE_CONST_FAST_Packet4f(NAME, X) Packet4f p4f_##NAME = {X, X, X, X}
48 #define EIGEN_DECLARE_CONST_FAST_Packet4i(NAME, X) Packet4i p4i_##NAME = vec_splat_s32(X)
50 #define EIGEN_DECLARE_CONST_FAST_Packet4ui(NAME, X) Packet4ui p4ui_##NAME = {X, X, X, X}
52 #define EIGEN_DECLARE_CONST_FAST_Packet8us(NAME, X) Packet8us p8us_##NAME = {X, X, X, X, X, X, X, X}
54 #define EIGEN_DECLARE_CONST_FAST_Packet16uc(NAME, X) \
55 Packet16uc p16uc_##NAME = {X, X, X, X, X, X, X, X, X, X, X, X, X, X, X, X}
57 #define EIGEN_DECLARE_CONST_Packet4f(NAME, X) Packet4f p4f_##NAME = pset1<Packet4f>(X)
59 #define EIGEN_DECLARE_CONST_Packet4i(NAME, X) Packet4i p4i_##NAME = pset1<Packet4i>(X)
61 #define EIGEN_DECLARE_CONST_Packet2d(NAME, X) Packet2d p2d_##NAME = pset1<Packet2d>(X)
63 #define EIGEN_DECLARE_CONST_Packet2l(NAME, X) Packet2l p2l_##NAME = pset1<Packet2l>(X)
65 #define EIGEN_DECLARE_CONST_Packet4f_FROM_INT(NAME, X) \
66 const Packet4f p4f_##NAME = reinterpret_cast<Packet4f>(pset1<Packet4i>(X))
69 #define DST_CTRL(size, count, stride) (((size) << 24) | ((count) << 16) | (stride))
70 #define __UNPACK_TYPE__(PACKETNAME) typename unpacket_traits<PACKETNAME>::type
92 static Packet16c p16c_COUNTDOWN = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15};
93 static Packet16uc p16uc_COUNTDOWN = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15};
95 static Packet16uc p16uc_REVERSE32 = {12, 13, 14, 15, 8, 9, 10, 11, 4, 5, 6, 7, 0, 1, 2, 3};
96 static Packet16uc p16uc_REVERSE16 = {14, 15, 12, 13, 10, 11, 8, 9, 6, 7, 4, 5, 2, 3, 0, 1};
97 static Packet16uc p16uc_REVERSE8 = {15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0};
100 static Packet16uc p16uc_DUPLICATE32_HI = {0, 1, 2, 3, 0, 1, 2, 3, 4, 5, 6, 7, 4, 5, 6, 7};
102 static const Packet16uc p16uc_DUPLICATE16_EVEN = {0, 1, 0, 1, 4, 5, 4, 5, 8, 9, 8, 9, 12, 13, 12, 13};
103 static const Packet16uc p16uc_DUPLICATE16_ODD = {2, 3, 2, 3, 6, 7, 6, 7, 10, 11, 10, 11, 14, 15, 14, 15};
105 static Packet16uc p16uc_QUADRUPLICATE16_HI = {0, 1, 0, 1, 0, 1, 0, 1, 2, 3, 2, 3, 2, 3, 2, 3};
106 static Packet16uc p16uc_QUADRUPLICATE16 = {0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3};
108 static Packet16uc p16uc_MERGEE16 = {0, 1, 16, 17, 4, 5, 20, 21, 8, 9, 24, 25, 12, 13, 28, 29};
109 static Packet16uc p16uc_MERGEO16 = {2, 3, 18, 19, 6, 7, 22, 23, 10, 11, 26, 27, 14, 15, 30, 31};
111 static Packet16uc p16uc_MERGEH16 = {0, 1, 4, 5, 8, 9, 12, 13, 16, 17, 20, 21, 24, 25, 28, 29};
113 static Packet16uc p16uc_MERGEL16 = {2, 3, 6, 7, 10, 11, 14, 15, 18, 19, 22, 23, 26, 27, 30, 31};
151 #if EIGEN_HAS_BUILTIN(__builtin_prefetch) || EIGEN_COMP_GNUC
152 #define EIGEN_PPC_PREFETCH(ADDR) __builtin_prefetch(ADDR);
154 #define EIGEN_PPC_PREFETCH(ADDR) asm(" dcbt [%[addr]]\n" ::[addr] "r"(ADDR) : "cc");
158 #define LOAD_STORE_UNROLL_16 _Pragma("unroll 16")
160 #define LOAD_STORE_UNROLL_16 _Pragma("GCC unroll(16)")
187 #ifdef EIGEN_VECTORIZE_VSX
189 #if !EIGEN_COMP_CLANG
227 #ifdef EIGEN_VECTORIZE_VSX
229 #if !EIGEN_COMP_CLANG
258 #if defined(_ARCH_PWR10) && (EIGEN_COMP_LLVM || EIGEN_GNUC_STRICT_AT_LEAST(11, 0, 0))
379 typedef unsigned short int type;
433 for (
int i = 0;
i < 16;
i++)
s << vt.n[
i] <<
", ";
443 for (
int i = 0;
i < 16;
i++)
s << vt.n[
i] <<
", ";
453 s << vt.n[0] <<
", " << vt.n[1] <<
", " << vt.n[2] <<
", " << vt.n[3];
463 s << vt.n[0] <<
", " << vt.n[1] <<
", " << vt.n[2] <<
", " << vt.n[3];
473 s << vt.n[0] <<
", " << vt.n[1] <<
", " << vt.n[2] <<
", " << vt.n[3];
477 template <
typename Packet>
483 #ifdef EIGEN_VECTORIZE_VSX
486 return vec_ld(0, from);
493 return pload_common<Packet4f>(from);
498 return pload_common<Packet4i>(from);
503 return pload_common<Packet8s>(from);
508 return pload_common<Packet8us>(from);
513 return pload_common<Packet16c>(from);
518 return pload_common<Packet16uc>(from);
523 return pload_common<Packet8us>(
reinterpret_cast<const unsigned short int*
>(from));
526 template <
typename Packet>
534 #pragma GCC diagnostic push
535 #pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
537 #ifdef EIGEN_VECTORIZE_VSX
540 return vec_ld(0, from);
543 #pragma GCC diagnostic pop
549 return pload_ignore<Packet8us>(
reinterpret_cast<const unsigned short int*
>(from));
552 template <
typename Packet>
554 const Index offset) {
558 eigen_internal_assert(
n + offset <= packet_size &&
"number of elements plus offset will read past end of packet");
577 unsigned char* load2 =
reinterpret_cast<unsigned char*
>(
load + offset);
583 memcpy((
void*)load2, (
void*)from2, n2);
585 return pload_ignore<Packet>(
load);
594 return pload_partial_common<Packet4f>(from,
n, offset);
599 return pload_partial_common<Packet4i>(from,
n, offset);
604 return pload_partial_common<Packet8s>(from,
n, offset);
609 const Index offset) {
610 return pload_partial_common<Packet8us>(from,
n, offset);
615 return pload_partial_common<Packet8us>(
reinterpret_cast<const unsigned short int*
>(from),
n, offset);
620 return pload_partial_common<Packet16c>(from,
n, offset);
625 return pload_partial_common<Packet16uc>(from,
n, offset);
628 template <
typename Packet>
634 #ifdef EIGEN_VECTORIZE_VSX
635 vec_xst(from, 0, to);
643 pstore_common<Packet4f>(to, from);
648 pstore_common<Packet4i>(to, from);
653 pstore_common<Packet8s>(to, from);
658 pstore_common<Packet8us>(to, from);
663 pstore_common<Packet8us>(
reinterpret_cast<unsigned short int*
>(to), from.
m_val);
668 pstore_common<Packet16c>(to, from);
673 pstore_common<Packet16uc>(to, from);
676 template <
typename Packet>
678 const Index offset) {
682 eigen_internal_assert(
n + offset <= packet_size &&
"number of elements plus offset will write past end of packet");
697 vec_xst_len(store, to,
n *
size);
702 unsigned char* store2 =
reinterpret_cast<unsigned char*
>(store + offset);
703 unsigned char* to2 =
reinterpret_cast<unsigned char*
>(to);
708 memcpy((
void*)to2, (
void*)store2, n2);
716 pstore_partial_common<Packet4f>(to, from,
n, offset);
721 pstore_partial_common<Packet4i>(to, from,
n, offset);
726 const Index offset) {
727 pstore_partial_common<Packet8s>(to, from,
n, offset);
733 pstore_partial_common<Packet8us>(to, from,
n, offset);
738 const Index offset) {
739 pstore_partial_common<Packet8us>(
reinterpret_cast<unsigned short int*
>(to), from.
m_val,
n, offset);
744 const Index offset) {
745 pstore_partial_common<Packet16c>(to, from,
n, offset);
750 const Index offset) {
751 pstore_partial_common<Packet16uc>(to, from,
n, offset);
754 template <
typename Packet>
756 Packet v = {from, from, from, from};
760 template <
typename Packet>
762 Packet v = {from, from, from, from, from, from, from, from};
766 template <
typename Packet>
768 Packet v = {from, from, from, from, from, from, from, from, from, from, from, from, from, from, from, from};
774 return pset1_size4<Packet4f>(from);
779 return pset1_size4<Packet4i>(from);
784 return pset1_size8<Packet8s>(from);
789 return pset1_size8<Packet8us>(from);
794 return pset1_size16<Packet16c>(from);
799 return pset1_size16<Packet16uc>(from);
809 return pset1_size8<Packet8us>(
reinterpret_cast<const unsigned short int&
>(from));
812 template <
typename Packet>
815 a3 = pload<Packet>(
a);
816 a0 = vec_splat(a3, 0);
817 a1 = vec_splat(a3, 1);
818 a2 = vec_splat(a3, 2);
819 a3 = vec_splat(a3, 3);
824 pbroadcast4_common<Packet4f>(
a, a0, a1, a2, a3);
828 pbroadcast4_common<Packet4i>(
a, a0, a1, a2, a3);
831 template <
typename Packet>
838 return ploadu<Packet>(from);
840 return ploadu_partial<Packet>(from,
n);
845 a[
i] = from[
i * stride];
848 return pload_ignore<Packet>(
a);
854 return pgather_common<Packet4f>(from, stride);
859 return pgather_common<Packet4i>(from, stride);
864 return pgather_common<Packet8s>(from, stride);
870 return pgather_common<Packet8us>(from, stride);
875 return pgather_common<Packet8bf>(from, stride);
880 return pgather_common<Packet16c>(from, stride);
886 return pgather_common<Packet16uc>(from, stride);
892 return pgather_common<Packet4f>(from, stride,
n);
898 return pgather_common<Packet4i>(from, stride,
n);
904 return pgather_common<Packet8s>(from, stride,
n);
910 return pgather_common<Packet8us>(from, stride,
n);
916 return pgather_common<Packet8bf>(from, stride,
n);
922 return pgather_common<Packet16c>(from, stride,
n);
929 return pgather_common<Packet16uc>(from, stride,
n);
932 template <
typename Packet>
945 pstore<__UNPACK_TYPE__(Packet)>(
a, from);
948 to[
i * stride] =
a[
i];
955 pscatter_common<Packet4f>(to, from, stride);
960 pscatter_common<Packet4i>(to, from, stride);
966 pscatter_common<Packet8s>(to, from, stride);
973 pscatter_common<Packet8us>(to, from, stride);
979 pscatter_common<Packet8bf>(to, from, stride);
985 pscatter_common<Packet16c>(to, from, stride);
991 pscatter_common<Packet16uc>(to, from, stride);
997 pscatter_common<Packet4f>(to, from, stride,
n);
1003 pscatter_common<Packet4i>(to, from, stride,
n);
1009 pscatter_common<Packet8s>(to, from, stride,
n);
1017 pscatter_common<Packet8us>(to, from, stride,
n);
1023 pscatter_common<Packet8bf>(to, from, stride,
n);
1030 pscatter_common<Packet16c>(to, from, stride,
n);
1037 pscatter_common<Packet16uc>(to, from, stride,
n);
1121 #ifdef __POWER8_VECTOR__
1129 #ifdef __POWER8_VECTOR__
1132 return reinterpret_cast<Packet16c>(p4i_ZERO) -
a;
1137 #ifdef __POWER8_VECTOR__
1140 return reinterpret_cast<Packet8s>(p4i_ZERO) -
a;
1145 #ifdef __POWER8_VECTOR__
1148 return p4i_ZERO -
a;
1171 return vec_mul(
a,
b);
1175 return vec_mul(
a,
b);
1179 return vec_mul(
a,
b);
1183 return vec_mul(
a,
b);
1196 y_1 = vec_madd(y_0,
t, y_0);
1200 return vec_div(
a,
b);
1206 #if defined(_ARCH_PWR10) && (EIGEN_COMP_LLVM || EIGEN_GNUC_STRICT_AT_LEAST(11, 0, 0))
1207 return vec_div(
a,
b);
1211 eigen_assert(
false &&
"packet integer division are not supported by AltiVec");
1219 return vec_madd(
a,
b,
c);
1227 return vec_madd(
a,
b,
c);
1231 return vec_madd(
a,
b,
c);
1234 #ifdef EIGEN_VECTORIZE_VSX
1237 return vec_msub(
a,
b,
c);
1241 return vec_nmsub(
a,
b,
c);
1245 return vec_nmadd(
a,
b,
c);
1251 #ifdef EIGEN_VECTORIZE_VSX
1254 __asm__(
"xvcmpgesp %x0,%x1,%x2\n\txxsel %x0,%x1,%x2,%x0" :
"=&wa"(
ret) :
"wa"(
a),
"wa"(
b));
1257 return vec_min(
a,
b);
1262 return vec_min(
a,
b);
1266 return vec_min(
a,
b);
1270 return vec_min(
a,
b);
1274 return vec_min(
a,
b);
1278 return vec_min(
a,
b);
1283 #ifdef EIGEN_VECTORIZE_VSX
1286 __asm__(
"xvcmpgtsp %x0,%x2,%x1\n\txxsel %x0,%x1,%x2,%x0" :
"=&wa"(
ret) :
"wa"(
a),
"wa"(
b));
1289 return vec_max(
a,
b);
1294 return vec_max(
a,
b);
1298 return vec_max(
a,
b);
1302 return vec_max(
a,
b);
1306 return vec_max(
a,
b);
1310 return vec_max(
a,
b);
1315 return reinterpret_cast<Packet4f>(vec_cmple(
a,
b));
1318 #ifdef EIGEN_VECTORIZE_VSX
1321 return reinterpret_cast<Packet4f>(vec_cmplt(
a,
b));
1326 return reinterpret_cast<Packet4f>(vec_cmpeq(
a,
b));
1331 return vec_nor(
c,
c);
1334 #ifdef EIGEN_VECTORIZE_VSX
1337 return reinterpret_cast<Packet4i>(vec_cmple(
a,
b));
1342 return reinterpret_cast<Packet4i>(vec_cmplt(
a,
b));
1346 return reinterpret_cast<Packet4i>(vec_cmpeq(
a,
b));
1348 #ifdef EIGEN_VECTORIZE_VSX
1351 return reinterpret_cast<Packet8s>(vec_cmple(
a,
b));
1356 return reinterpret_cast<Packet8s>(vec_cmplt(
a,
b));
1360 return reinterpret_cast<Packet8s>(vec_cmpeq(
a,
b));
1362 #ifdef EIGEN_VECTORIZE_VSX
1365 return reinterpret_cast<Packet8us>(vec_cmple(
a,
b));
1370 return reinterpret_cast<Packet8us>(vec_cmplt(
a,
b));
1374 return reinterpret_cast<Packet8us>(vec_cmpeq(
a,
b));
1376 #ifdef EIGEN_VECTORIZE_VSX
1379 return reinterpret_cast<Packet16c>(vec_cmple(
a,
b));
1384 return reinterpret_cast<Packet16c>(vec_cmplt(
a,
b));
1388 return reinterpret_cast<Packet16c>(vec_cmpeq(
a,
b));
1390 #ifdef EIGEN_VECTORIZE_VSX
1407 return vec_and(
a,
b);
1411 return vec_and(
a,
b);
1415 return vec_and(
a,
b);
1419 return vec_and(
a,
b);
1428 return vec_or(
a,
b);
1432 return vec_or(
a,
b);
1436 return vec_or(
a,
b);
1440 return vec_or(
a,
b);
1449 return vec_xor(
a,
b);
1453 return vec_xor(
a,
b);
1457 return vec_xor(
a,
b);
1466 return vec_andc(
a,
b);
1470 return vec_andc(
a,
b);
1475 return vec_sel(
b,
a,
reinterpret_cast<Packet4ui>(mask));
1481 reinterpret_cast<Packet4f>(vec_or(vec_and(
reinterpret_cast<Packet4ui>(
a), p4ui_SIGN), p4ui_PREV0DOT5)),
a);
1484 #ifdef EIGEN_VECTORIZE_VSX
1485 __asm__(
"xvrspiz %x0, %x1\n\t" :
"=&wa"(
res) :
"wa"(
t));
1487 __asm__(
"vrfiz %0, %1\n\t" :
"=v"(
res) :
"v"(
t));
1498 return vec_floor(
a);
1502 return vec_trunc(
a);
1504 #ifdef EIGEN_VECTORIZE_VSX
1509 __asm__(
"xvrspic %x0, %x1\n\t" :
"=&wa"(
res) :
"wa"(
a));
1515 template <
typename Packet>
1518 #if defined(EIGEN_VECTORIZE_VSX) || !defined(_BIG_ENDIAN)
1524 MSQ = vec_ld(0, (
unsigned char*)from);
1525 LSQ = vec_ld(15, (
unsigned char*)from);
1526 mask = vec_lvsl(0, from);
1528 return (
Packet)vec_perm(MSQ, LSQ, mask);
1534 return ploadu_common<Packet4f>(from);
1538 return ploadu_common<Packet4i>(from);
1542 return ploadu_common<Packet8s>(from);
1546 return ploadu_common<Packet8us>(from);
1550 return ploadu_common<Packet8us>(
reinterpret_cast<const unsigned short int*
>(from));
1554 return ploadu_common<Packet16c>(from);
1558 return ploadu_common<Packet16uc>(from);
1561 template <
typename Packet>
1563 const Index offset) {
1565 eigen_internal_assert(
n + offset <= packet_size &&
"number of elements plus offset will read past end of packet");
1584 unsigned char* load2 =
reinterpret_cast<unsigned char*
>(
load + offset);
1585 unsigned char* from2 =
reinterpret_cast<unsigned char*
>(
const_cast<__UNPACK_TYPE__(
Packet)*
>(from));
1590 memcpy((
void*)load2, (
void*)from2, n2);
1592 return pload_ignore<Packet>(
load);
1601 return ploadu_partial_common<Packet4f>(from,
n, offset);
1605 return ploadu_partial_common<Packet4i>(from,
n, offset);
1609 return ploadu_partial_common<Packet8s>(from,
n, offset);
1613 const Index offset) {
1614 return ploadu_partial_common<Packet8us>(from,
n, offset);
1618 return ploadu_partial_common<Packet8us>(
reinterpret_cast<const unsigned short int*
>(from),
n, offset);
1622 return ploadu_partial_common<Packet16c>(from,
n, offset);
1626 const Index offset) {
1627 return ploadu_partial_common<Packet16uc>(from,
n, offset);
1630 template <
typename Packet>
1633 if ((std::ptrdiff_t(from) % 16) == 0)
1634 p = pload<Packet>(from);
1636 p = ploadu<Packet>(from);
1637 return vec_mergeh(
p,
p);
1641 return ploaddup_common<Packet4f>(from);
1645 return ploaddup_common<Packet4i>(from);
1651 if ((std::ptrdiff_t(from) % 16) == 0)
1655 return vec_mergeh(
p,
p);
1661 if ((std::ptrdiff_t(from) % 16) == 0)
1665 return vec_mergeh(
p,
p);
1671 if ((std::ptrdiff_t(from) % 16) == 0)
1681 if ((std::ptrdiff_t(from) % 16) == 0)
1696 if ((std::ptrdiff_t(from) % 16) == 0)
1700 return vec_mergeh(
p,
p);
1706 if ((std::ptrdiff_t(from) % 16) == 0)
1710 return vec_mergeh(
p,
p);
1716 if ((std::ptrdiff_t(from) % 16) == 0)
1726 if ((std::ptrdiff_t(from) % 16) == 0)
1733 template <
typename Packet>
1736 #if defined(EIGEN_VECTORIZE_VSX) || !defined(_BIG_ENDIAN)
1737 vec_xst(from, 0, to);
1744 MSQ = vec_ld(0, (
unsigned char*)to);
1745 LSQ = vec_ld(15, (
unsigned char*)to);
1746 edgeAlign = vec_lvsl(0, to);
1747 edges = vec_perm(LSQ, MSQ, edgeAlign);
1748 align = vec_lvsr(0, to);
1749 MSQ = vec_perm(edges, (
Packet16uc)from, align);
1750 LSQ = vec_perm((
Packet16uc)from, edges, align);
1751 vec_st(LSQ, 15, (
unsigned char*)to);
1752 vec_st(MSQ, 0, (
unsigned char*)to);
1757 pstoreu_common<Packet4f>(to, from);
1761 pstoreu_common<Packet4i>(to, from);
1765 pstoreu_common<Packet8s>(to, from);
1769 pstoreu_common<Packet8us>(to, from);
1773 pstoreu_common<Packet8us>(
reinterpret_cast<unsigned short int*
>(to), from.
m_val);
1777 pstoreu_common<Packet16c>(to, from);
1781 pstoreu_common<Packet16uc>(to, from);
1784 template <
typename Packet>
1786 const Index offset) {
1788 eigen_internal_assert(
n + offset <= packet_size &&
"number of elements plus offset will write past end of packet");
1802 vec_xst_len(store, to,
n *
size);
1807 unsigned char* store2 =
reinterpret_cast<unsigned char*
>(store + offset);
1808 unsigned char* to2 =
reinterpret_cast<unsigned char*
>(to);
1813 memcpy((
void*)to2, (
void*)store2, n2);
1821 pstoreu_partial_common<Packet4f>(to, from,
n, offset);
1825 pstoreu_partial_common<Packet4i>(to, from,
n, offset);
1829 const Index offset) {
1830 pstoreu_partial_common<Packet8s>(to, from,
n, offset);
1835 pstoreu_partial_common<Packet8us>(to, from,
n, offset);
1839 const Index offset) {
1840 pstoreu_partial_common<Packet8us>(
reinterpret_cast<unsigned short int*
>(to), from,
n, offset);
1844 const Index offset) {
1845 pstoreu_partial_common<Packet16c>(to, from,
n, offset);
1849 const Index offset) {
1850 pstoreu_partial_common<Packet16uc>(to, from,
n, offset);
1875 template <
typename Packet>
1884 return pfirst_common<Packet8s>(
a);
1889 return pfirst_common<Packet8us>(
a);
1894 return pfirst_common<Packet16c>(
a);
1899 return pfirst_common<Packet16uc>(
a);
1932 return preverse<Packet8us>(
a);
1967 return vec_sra(
a.m_val, vec_splat_u16(15));
2003 return vec_sr(
a, p4ui_mask);
2009 return vec_sl(
a, p4ui_mask);
2015 return vec_sl(
a, p8us_mask);
2020 return vec_sr(
a, p8us_mask);
2024 return plogical_shift_left<16>(
reinterpret_cast<Packet4f>(bf.
m_val));
2048 #ifndef __VEC_CLASS_FP_NAN
2049 #define __VEC_CLASS_FP_NAN (1 << 6)
2052 #if defined(SUPPORT_BF16_SUBNORMALS) && !defined(__VEC_CLASS_FP_SUBNORMAL)
2053 #define __VEC_CLASS_FP_SUBNORMAL_P (1 << 1)
2054 #define __VEC_CLASS_FP_SUBNORMAL_N (1 << 0)
2056 #define __VEC_CLASS_FP_SUBNORMAL (__VEC_CLASS_FP_SUBNORMAL_P | __VEC_CLASS_FP_SUBNORMAL_N)
2061 return reinterpret_cast<Packet8us>(__builtin_vsx_xvcvspbf16(
reinterpret_cast<Packet16uc>(p4f)));
2064 Packet4ui lsb = plogical_shift_right<16>(input);
2074 input = vec_sel(input, p4ui_nan, nan_selector);
2076 #ifdef SUPPORT_BF16_SUBNORMALS
2077 Packet4bi subnormal_selector = vec_test_data_class(p4f, __VEC_CLASS_FP_SUBNORMAL);
2078 input = vec_sel(input,
reinterpret_cast<Packet4ui>(p4f), subnormal_selector);
2081 #ifdef SUPPORT_BF16_SUBNORMALS
2100 input = vec_sel(input, p4ui_nan, nan_selector);
2101 input = vec_sel(input,
reinterpret_cast<Packet4ui>(p4f), subnormal_selector);
2104 Packet4bi nan_selector = vec_cmpeq(p4f, p4f);
2106 input = vec_sel(p4ui_nan, input, nan_selector);
2110 input = plogical_shift_right<16>(input);
2111 return reinterpret_cast<Packet8us>(input);
2121 template <
bool lohi>
2124 return vec_perm(
reinterpret_cast<Packet8us>(lo),
reinterpret_cast<Packet8us>(hi), p16uc_MERGEH16);
2135 template <
bool lohi>
2144 template <
bool lohi>
2153 template <
bool lohi>
2168 template <
bool lohi = true>
2170 Packet8us p4f = Bf16PackHigh<lohi>(lo, hi);
2171 Packet8us p4f2 = Bf16PackLow<lohi>(lo, hi);
2178 Packet8bi rounding_bias = vec_cmplt(lsb, p4f2);
2185 Bf16PackLow<lohi>(
reinterpret_cast<Packet4f>(nan_selector_lo),
reinterpret_cast<Packet4f>(nan_selector_hi));
2187 input = vec_sel(input, p8us_BIAS, nan_selector);
2189 #ifdef SUPPORT_BF16_SUBNORMALS
2190 Packet4bi subnormal_selector_lo = vec_test_data_class(lo, __VEC_CLASS_FP_SUBNORMAL);
2191 Packet4bi subnormal_selector_hi = vec_test_data_class(hi, __VEC_CLASS_FP_SUBNORMAL);
2192 Packet8us subnormal_selector = Bf16PackLow<lohi>(
reinterpret_cast<Packet4f>(subnormal_selector_lo),
2193 reinterpret_cast<Packet4f>(subnormal_selector_hi));
2195 input = vec_sel(input,
reinterpret_cast<Packet8us>(p4f), subnormal_selector);
2198 #ifdef SUPPORT_BF16_SUBNORMALS
2218 input = vec_sel(input, p8us_BIAS, nan_selector);
2219 input = vec_sel(input,
reinterpret_cast<Packet8us>(p4f), subnormal_selector);
2222 Packet4bi nan_selector_lo = vec_cmpeq(lo, lo);
2223 Packet4bi nan_selector_hi = vec_cmpeq(hi, hi);
2225 Bf16PackLow<lohi>(
reinterpret_cast<Packet4f>(nan_selector_lo),
reinterpret_cast<Packet4f>(nan_selector_hi));
2227 input = vec_sel(p8us_BIAS, input, nan_selector);
2254 return F32ToBf16Two<false>(even, odd);
2257 #define BF16_TO_F32_UNARY_OP_WRAPPER(OP, A) \
2258 Packet4f a_even = Bf16ToF32Even(A); \
2259 Packet4f a_odd = Bf16ToF32Odd(A); \
2260 Packet4f op_even = OP(a_even); \
2261 Packet4f op_odd = OP(a_odd); \
2262 return F32ToBf16(op_even, op_odd);
2264 #define BF16_TO_F32_BINARY_OP_WRAPPER(OP, A, B) \
2265 Packet4f a_even = Bf16ToF32Even(A); \
2266 Packet4f a_odd = Bf16ToF32Odd(A); \
2267 Packet4f b_even = Bf16ToF32Even(B); \
2268 Packet4f b_odd = Bf16ToF32Odd(B); \
2269 Packet4f op_even = OP(a_even, b_even); \
2270 Packet4f op_odd = OP(a_odd, b_odd); \
2271 return F32ToBf16(op_even, op_odd);
2273 #define BF16_TO_F32_BINARY_OP_WRAPPER_BOOL(OP, A, B) \
2274 Packet4f a_even = Bf16ToF32Even(A); \
2275 Packet4f a_odd = Bf16ToF32Odd(A); \
2276 Packet4f b_even = Bf16ToF32Even(B); \
2277 Packet4f b_odd = Bf16ToF32Odd(B); \
2278 Packet4f op_even = OP(a_even, b_even); \
2279 Packet4f op_odd = OP(a_odd, b_odd); \
2280 return F32ToBf16Bool(op_even, op_odd);
2371 #ifdef EIGEN_VECTORIZE_VSX
2385 Packet4f pmadd_even = pmadd<Packet4f>(a_even, b_even, c_even);
2386 Packet4f pmadd_odd = pmadd<Packet4f>(a_odd, b_odd, c_odd);
2387 return F32ToBf16(pmadd_even, pmadd_odd);
2437 b = vec_sld(
a,
a, 8);
2439 b = vec_sld(sum, sum, 4);
2447 b = vec_sld(
a,
a, 8);
2449 b = vec_sld(sum, sum, 4);
2458 float f32_result = redux_even + redux_odd;
2461 template <
typename Packet>
2469 EIGEN_ALIGN16 int first_loader[4] = {vt.n[0], vt.n[1], vt.n[2], vt.n[3]};
2470 EIGEN_ALIGN16 int second_loader[4] = {vt.n[4], vt.n[5], vt.n[6], vt.n[7]};
2479 return predux_size8<Packet8s>(
a);
2484 return predux_size8<Packet8us>(
a);
2487 template <
typename Packet>
2495 EIGEN_ALIGN16 int first_loader[4] = {vt.n[0], vt.n[1], vt.n[2], vt.n[3]};
2496 EIGEN_ALIGN16 int second_loader[4] = {vt.n[4], vt.n[5], vt.n[6], vt.n[7]};
2497 EIGEN_ALIGN16 int third_loader[4] = {vt.n[8], vt.n[9], vt.n[10], vt.n[11]};
2498 EIGEN_ALIGN16 int fourth_loader[4] = {vt.n[12], vt.n[13], vt.n[14], vt.n[15]};
2511 return predux_size16<Packet16c>(
a);
2516 return predux_size16<Packet16uc>(
a);
2532 return aux[0] * aux[1] * aux[2] * aux[3];
2539 pair = vec_mul(
a, vec_sld(
a,
a, 8));
2540 quad = vec_mul(pair, vec_sld(pair, pair, 4));
2541 octo = vec_mul(quad, vec_sld(quad, quad, 2));
2550 pair = vec_mul(
a, vec_sld(
a,
a, 8));
2551 quad = vec_mul(pair, vec_sld(pair, pair, 4));
2552 octo = vec_mul(quad, vec_sld(quad, quad, 2));
2561 float f32_result = redux_even * redux_odd;
2569 pair = vec_mul(
a, vec_sld(
a,
a, 8));
2570 quad = vec_mul(pair, vec_sld(pair, pair, 4));
2571 octo = vec_mul(quad, vec_sld(quad, quad, 2));
2572 result = vec_mul(octo, vec_sld(octo, octo, 1));
2581 pair = vec_mul(
a, vec_sld(
a,
a, 8));
2582 quad = vec_mul(pair, vec_sld(pair, pair, 4));
2583 octo = vec_mul(quad, vec_sld(quad, quad, 2));
2584 result = vec_mul(octo, vec_sld(octo, octo, 1));
2590 template <
typename Packet>
2593 b = vec_min(
a, vec_sld(
a,
a, 8));
2594 res = vec_min(
b, vec_sld(
b,
b, 4));
2600 return predux_min4<Packet4f>(
a);
2605 return predux_min4<Packet4i>(
a);
2612 float f32_result = (
std::min)(redux_even, redux_odd);
2621 pair = vec_min(
a, vec_sld(
a,
a, 8));
2624 quad = vec_min(pair, vec_sld(pair, pair, 4));
2627 octo = vec_min(quad, vec_sld(quad, quad, 2));
2636 pair = vec_min(
a, vec_sld(
a,
a, 8));
2639 quad = vec_min(pair, vec_sld(pair, pair, 4));
2642 octo = vec_min(quad, vec_sld(quad, quad, 2));
2650 pair = vec_min(
a, vec_sld(
a,
a, 8));
2651 quad = vec_min(pair, vec_sld(pair, pair, 4));
2652 octo = vec_min(quad, vec_sld(quad, quad, 2));
2653 result = vec_min(octo, vec_sld(octo, octo, 1));
2662 pair = vec_min(
a, vec_sld(
a,
a, 8));
2663 quad = vec_min(pair, vec_sld(pair, pair, 4));
2664 octo = vec_min(quad, vec_sld(quad, quad, 2));
2665 result = vec_min(octo, vec_sld(octo, octo, 1));
2670 template <
typename Packet>
2673 b = vec_max(
a, vec_sld(
a,
a, 8));
2674 res = vec_max(
b, vec_sld(
b,
b, 4));
2680 return predux_max4<Packet4f>(
a);
2685 return predux_max4<Packet4i>(
a);
2692 float f32_result = (
std::max)(redux_even, redux_odd);
2701 pair = vec_max(
a, vec_sld(
a,
a, 8));
2704 quad = vec_max(pair, vec_sld(pair, pair, 4));
2707 octo = vec_max(quad, vec_sld(quad, quad, 2));
2716 pair = vec_max(
a, vec_sld(
a,
a, 8));
2719 quad = vec_max(pair, vec_sld(pair, pair, 4));
2722 octo = vec_max(quad, vec_sld(quad, quad, 2));
2730 pair = vec_max(
a, vec_sld(
a,
a, 8));
2731 quad = vec_max(pair, vec_sld(pair, pair, 4));
2732 octo = vec_max(quad, vec_sld(quad, quad, 2));
2733 result = vec_max(octo, vec_sld(octo, octo, 1));
2742 pair = vec_max(
a, vec_sld(
a,
a, 8));
2743 quad = vec_max(pair, vec_sld(pair, pair, 4));
2744 octo = vec_max(quad, vec_sld(quad, quad, 2));
2745 result = vec_max(octo, vec_sld(octo, octo, 1));
2752 return vec_any_ne(
x,
pzero(
x));
2755 template <
typename T>
2762 kernel.
packet[0] = vec_mergeh(t0, t2);
2763 kernel.
packet[1] = vec_mergel(t0, t2);
2764 kernel.
packet[2] = vec_mergeh(t1, t3);
2765 kernel.
packet[3] = vec_mergel(t1, t3);
2778 kernel.
packet[0] = vec_mergeh(t0, t2);
2779 kernel.
packet[1] = vec_mergel(t0, t2);
2780 kernel.
packet[2] = vec_mergeh(t1, t3);
2781 kernel.
packet[3] = vec_mergel(t1, t3);
2790 kernel.
packet[0] = vec_mergeh(t0, t2);
2791 kernel.
packet[1] = vec_mergel(t0, t2);
2792 kernel.
packet[2] = vec_mergeh(t1, t3);
2793 kernel.
packet[3] = vec_mergel(t1, t3);
2799 t0 = vec_mergeh(kernel.
packet[0].m_val, kernel.
packet[2].m_val);
2800 t1 = vec_mergel(kernel.
packet[0].m_val, kernel.
packet[2].m_val);
2801 t2 = vec_mergeh(kernel.
packet[1].m_val, kernel.
packet[3].m_val);
2802 t3 = vec_mergel(kernel.
packet[1].m_val, kernel.
packet[3].m_val);
2803 kernel.
packet[0] = vec_mergeh(t0, t2);
2804 kernel.
packet[1] = vec_mergel(t0, t2);
2805 kernel.
packet[2] = vec_mergeh(t1, t3);
2806 kernel.
packet[3] = vec_mergel(t1, t3);
2815 kernel.
packet[0] = vec_mergeh(t0, t2);
2816 kernel.
packet[1] = vec_mergel(t0, t2);
2817 kernel.
packet[2] = vec_mergeh(t1, t3);
2818 kernel.
packet[3] = vec_mergel(t1, t3);
2827 kernel.
packet[0] = vec_mergeh(t0, t2);
2828 kernel.
packet[1] = vec_mergel(t0, t2);
2829 kernel.
packet[2] = vec_mergeh(t1, t3);
2830 kernel.
packet[3] = vec_mergel(t1, t3);
2844 sum[0] = vec_mergeh(
v[0],
v[4]);
2845 sum[1] = vec_mergel(
v[0],
v[4]);
2846 sum[2] = vec_mergeh(
v[1],
v[5]);
2847 sum[3] = vec_mergel(
v[1],
v[5]);
2848 sum[4] = vec_mergeh(
v[2],
v[6]);
2849 sum[5] = vec_mergel(
v[2],
v[6]);
2850 sum[6] = vec_mergeh(
v[3],
v[7]);
2851 sum[7] = vec_mergel(
v[3],
v[7]);
2853 kernel.
packet[0] = vec_mergeh(sum[0], sum[4]);
2854 kernel.
packet[1] = vec_mergel(sum[0], sum[4]);
2855 kernel.
packet[2] = vec_mergeh(sum[1], sum[5]);
2856 kernel.
packet[3] = vec_mergel(sum[1], sum[5]);
2857 kernel.
packet[4] = vec_mergeh(sum[2], sum[6]);
2858 kernel.
packet[5] = vec_mergel(sum[2], sum[6]);
2859 kernel.
packet[6] = vec_mergeh(sum[3], sum[7]);
2860 kernel.
packet[7] = vec_mergel(sum[3], sum[7]);
2874 sum[0] = vec_mergeh(
v[0],
v[4]);
2875 sum[1] = vec_mergel(
v[0],
v[4]);
2876 sum[2] = vec_mergeh(
v[1],
v[5]);
2877 sum[3] = vec_mergel(
v[1],
v[5]);
2878 sum[4] = vec_mergeh(
v[2],
v[6]);
2879 sum[5] = vec_mergel(
v[2],
v[6]);
2880 sum[6] = vec_mergeh(
v[3],
v[7]);
2881 sum[7] = vec_mergel(
v[3],
v[7]);
2883 kernel.
packet[0] = vec_mergeh(sum[0], sum[4]);
2884 kernel.
packet[1] = vec_mergel(sum[0], sum[4]);
2885 kernel.
packet[2] = vec_mergeh(sum[1], sum[5]);
2886 kernel.
packet[3] = vec_mergel(sum[1], sum[5]);
2887 kernel.
packet[4] = vec_mergeh(sum[2], sum[6]);
2888 kernel.
packet[5] = vec_mergel(sum[2], sum[6]);
2889 kernel.
packet[6] = vec_mergeh(sum[3], sum[7]);
2890 kernel.
packet[7] = vec_mergel(sum[3], sum[7]);
2896 v[0] = vec_mergeh(kernel.
packet[0].m_val, kernel.
packet[4].m_val);
2897 v[1] = vec_mergel(kernel.
packet[0].m_val, kernel.
packet[4].m_val);
2898 v[2] = vec_mergeh(kernel.
packet[1].m_val, kernel.
packet[5].m_val);
2899 v[3] = vec_mergel(kernel.
packet[1].m_val, kernel.
packet[5].m_val);
2900 v[4] = vec_mergeh(kernel.
packet[2].m_val, kernel.
packet[6].m_val);
2901 v[5] = vec_mergel(kernel.
packet[2].m_val, kernel.
packet[6].m_val);
2902 v[6] = vec_mergeh(kernel.
packet[3].m_val, kernel.
packet[7].m_val);
2903 v[7] = vec_mergel(kernel.
packet[3].m_val, kernel.
packet[7].m_val);
2904 sum[0] = vec_mergeh(
v[0].m_val,
v[4].m_val);
2905 sum[1] = vec_mergel(
v[0].m_val,
v[4].m_val);
2906 sum[2] = vec_mergeh(
v[1].m_val,
v[5].m_val);
2907 sum[3] = vec_mergel(
v[1].m_val,
v[5].m_val);
2908 sum[4] = vec_mergeh(
v[2].m_val,
v[6].m_val);
2909 sum[5] = vec_mergel(
v[2].m_val,
v[6].m_val);
2910 sum[6] = vec_mergeh(
v[3].m_val,
v[7].m_val);
2911 sum[7] = vec_mergel(
v[3].m_val,
v[7].m_val);
2913 kernel.
packet[0] = vec_mergeh(sum[0].m_val, sum[4].m_val);
2914 kernel.
packet[1] = vec_mergel(sum[0].m_val, sum[4].m_val);
2915 kernel.
packet[2] = vec_mergeh(sum[1].m_val, sum[5].m_val);
2916 kernel.
packet[3] = vec_mergel(sum[1].m_val, sum[5].m_val);
2917 kernel.
packet[4] = vec_mergeh(sum[2].m_val, sum[6].m_val);
2918 kernel.
packet[5] = vec_mergel(sum[2].m_val, sum[6].m_val);
2919 kernel.
packet[6] = vec_mergeh(sum[3].m_val, sum[7].m_val);
2920 kernel.
packet[7] = vec_mergel(sum[3].m_val, sum[7].m_val);
2924 Packet16c step1[16], step2[16], step3[16];
2926 step1[0] = vec_mergeh(kernel.
packet[0], kernel.
packet[8]);
2927 step1[1] = vec_mergel(kernel.
packet[0], kernel.
packet[8]);
2928 step1[2] = vec_mergeh(kernel.
packet[1], kernel.
packet[9]);
2929 step1[3] = vec_mergel(kernel.
packet[1], kernel.
packet[9]);
2930 step1[4] = vec_mergeh(kernel.
packet[2], kernel.
packet[10]);
2931 step1[5] = vec_mergel(kernel.
packet[2], kernel.
packet[10]);
2932 step1[6] = vec_mergeh(kernel.
packet[3], kernel.
packet[11]);
2933 step1[7] = vec_mergel(kernel.
packet[3], kernel.
packet[11]);
2934 step1[8] = vec_mergeh(kernel.
packet[4], kernel.
packet[12]);
2935 step1[9] = vec_mergel(kernel.
packet[4], kernel.
packet[12]);
2936 step1[10] = vec_mergeh(kernel.
packet[5], kernel.
packet[13]);
2937 step1[11] = vec_mergel(kernel.
packet[5], kernel.
packet[13]);
2938 step1[12] = vec_mergeh(kernel.
packet[6], kernel.
packet[14]);
2939 step1[13] = vec_mergel(kernel.
packet[6], kernel.
packet[14]);
2940 step1[14] = vec_mergeh(kernel.
packet[7], kernel.
packet[15]);
2941 step1[15] = vec_mergel(kernel.
packet[7], kernel.
packet[15]);
2943 step2[0] = vec_mergeh(step1[0], step1[8]);
2944 step2[1] = vec_mergel(step1[0], step1[8]);
2945 step2[2] = vec_mergeh(step1[1], step1[9]);
2946 step2[3] = vec_mergel(step1[1], step1[9]);
2947 step2[4] = vec_mergeh(step1[2], step1[10]);
2948 step2[5] = vec_mergel(step1[2], step1[10]);
2949 step2[6] = vec_mergeh(step1[3], step1[11]);
2950 step2[7] = vec_mergel(step1[3], step1[11]);
2951 step2[8] = vec_mergeh(step1[4], step1[12]);
2952 step2[9] = vec_mergel(step1[4], step1[12]);
2953 step2[10] = vec_mergeh(step1[5], step1[13]);
2954 step2[11] = vec_mergel(step1[5], step1[13]);
2955 step2[12] = vec_mergeh(step1[6], step1[14]);
2956 step2[13] = vec_mergel(step1[6], step1[14]);
2957 step2[14] = vec_mergeh(step1[7], step1[15]);
2958 step2[15] = vec_mergel(step1[7], step1[15]);
2960 step3[0] = vec_mergeh(step2[0], step2[8]);
2961 step3[1] = vec_mergel(step2[0], step2[8]);
2962 step3[2] = vec_mergeh(step2[1], step2[9]);
2963 step3[3] = vec_mergel(step2[1], step2[9]);
2964 step3[4] = vec_mergeh(step2[2], step2[10]);
2965 step3[5] = vec_mergel(step2[2], step2[10]);
2966 step3[6] = vec_mergeh(step2[3], step2[11]);
2967 step3[7] = vec_mergel(step2[3], step2[11]);
2968 step3[8] = vec_mergeh(step2[4], step2[12]);
2969 step3[9] = vec_mergel(step2[4], step2[12]);
2970 step3[10] = vec_mergeh(step2[5], step2[13]);
2971 step3[11] = vec_mergel(step2[5], step2[13]);
2972 step3[12] = vec_mergeh(step2[6], step2[14]);
2973 step3[13] = vec_mergel(step2[6], step2[14]);
2974 step3[14] = vec_mergeh(step2[7], step2[15]);
2975 step3[15] = vec_mergel(step2[7], step2[15]);
2977 kernel.
packet[0] = vec_mergeh(step3[0], step3[8]);
2978 kernel.
packet[1] = vec_mergel(step3[0], step3[8]);
2979 kernel.
packet[2] = vec_mergeh(step3[1], step3[9]);
2980 kernel.
packet[3] = vec_mergel(step3[1], step3[9]);
2981 kernel.
packet[4] = vec_mergeh(step3[2], step3[10]);
2982 kernel.
packet[5] = vec_mergel(step3[2], step3[10]);
2983 kernel.
packet[6] = vec_mergeh(step3[3], step3[11]);
2984 kernel.
packet[7] = vec_mergel(step3[3], step3[11]);
2985 kernel.
packet[8] = vec_mergeh(step3[4], step3[12]);
2986 kernel.
packet[9] = vec_mergel(step3[4], step3[12]);
2987 kernel.
packet[10] = vec_mergeh(step3[5], step3[13]);
2988 kernel.
packet[11] = vec_mergel(step3[5], step3[13]);
2989 kernel.
packet[12] = vec_mergeh(step3[6], step3[14]);
2990 kernel.
packet[13] = vec_mergel(step3[6], step3[14]);
2991 kernel.
packet[14] = vec_mergeh(step3[7], step3[15]);
2992 kernel.
packet[15] = vec_mergel(step3[7], step3[15]);
2998 step1[0] = vec_mergeh(kernel.
packet[0], kernel.
packet[8]);
2999 step1[1] = vec_mergel(kernel.
packet[0], kernel.
packet[8]);
3000 step1[2] = vec_mergeh(kernel.
packet[1], kernel.
packet[9]);
3001 step1[3] = vec_mergel(kernel.
packet[1], kernel.
packet[9]);
3002 step1[4] = vec_mergeh(kernel.
packet[2], kernel.
packet[10]);
3003 step1[5] = vec_mergel(kernel.
packet[2], kernel.
packet[10]);
3004 step1[6] = vec_mergeh(kernel.
packet[3], kernel.
packet[11]);
3005 step1[7] = vec_mergel(kernel.
packet[3], kernel.
packet[11]);
3006 step1[8] = vec_mergeh(kernel.
packet[4], kernel.
packet[12]);
3007 step1[9] = vec_mergel(kernel.
packet[4], kernel.
packet[12]);
3008 step1[10] = vec_mergeh(kernel.
packet[5], kernel.
packet[13]);
3009 step1[11] = vec_mergel(kernel.
packet[5], kernel.
packet[13]);
3010 step1[12] = vec_mergeh(kernel.
packet[6], kernel.
packet[14]);
3011 step1[13] = vec_mergel(kernel.
packet[6], kernel.
packet[14]);
3012 step1[14] = vec_mergeh(kernel.
packet[7], kernel.
packet[15]);
3013 step1[15] = vec_mergel(kernel.
packet[7], kernel.
packet[15]);
3015 step2[0] = vec_mergeh(step1[0], step1[8]);
3016 step2[1] = vec_mergel(step1[0], step1[8]);
3017 step2[2] = vec_mergeh(step1[1], step1[9]);
3018 step2[3] = vec_mergel(step1[1], step1[9]);
3019 step2[4] = vec_mergeh(step1[2], step1[10]);
3020 step2[5] = vec_mergel(step1[2], step1[10]);
3021 step2[6] = vec_mergeh(step1[3], step1[11]);
3022 step2[7] = vec_mergel(step1[3], step1[11]);
3023 step2[8] = vec_mergeh(step1[4], step1[12]);
3024 step2[9] = vec_mergel(step1[4], step1[12]);
3025 step2[10] = vec_mergeh(step1[5], step1[13]);
3026 step2[11] = vec_mergel(step1[5], step1[13]);
3027 step2[12] = vec_mergeh(step1[6], step1[14]);
3028 step2[13] = vec_mergel(step1[6], step1[14]);
3029 step2[14] = vec_mergeh(step1[7], step1[15]);
3030 step2[15] = vec_mergel(step1[7], step1[15]);
3032 step3[0] = vec_mergeh(step2[0], step2[8]);
3033 step3[1] = vec_mergel(step2[0], step2[8]);
3034 step3[2] = vec_mergeh(step2[1], step2[9]);
3035 step3[3] = vec_mergel(step2[1], step2[9]);
3036 step3[4] = vec_mergeh(step2[2], step2[10]);
3037 step3[5] = vec_mergel(step2[2], step2[10]);
3038 step3[6] = vec_mergeh(step2[3], step2[11]);
3039 step3[7] = vec_mergel(step2[3], step2[11]);
3040 step3[8] = vec_mergeh(step2[4], step2[12]);
3041 step3[9] = vec_mergel(step2[4], step2[12]);
3042 step3[10] = vec_mergeh(step2[5], step2[13]);
3043 step3[11] = vec_mergel(step2[5], step2[13]);
3044 step3[12] = vec_mergeh(step2[6], step2[14]);
3045 step3[13] = vec_mergel(step2[6], step2[14]);
3046 step3[14] = vec_mergeh(step2[7], step2[15]);
3047 step3[15] = vec_mergel(step2[7], step2[15]);
3049 kernel.
packet[0] = vec_mergeh(step3[0], step3[8]);
3050 kernel.
packet[1] = vec_mergel(step3[0], step3[8]);
3051 kernel.
packet[2] = vec_mergeh(step3[1], step3[9]);
3052 kernel.
packet[3] = vec_mergel(step3[1], step3[9]);
3053 kernel.
packet[4] = vec_mergeh(step3[2], step3[10]);
3054 kernel.
packet[5] = vec_mergel(step3[2], step3[10]);
3055 kernel.
packet[6] = vec_mergeh(step3[3], step3[11]);
3056 kernel.
packet[7] = vec_mergel(step3[3], step3[11]);
3057 kernel.
packet[8] = vec_mergeh(step3[4], step3[12]);
3058 kernel.
packet[9] = vec_mergel(step3[4], step3[12]);
3059 kernel.
packet[10] = vec_mergeh(step3[5], step3[13]);
3060 kernel.
packet[11] = vec_mergel(step3[5], step3[13]);
3061 kernel.
packet[12] = vec_mergeh(step3[6], step3[14]);
3062 kernel.
packet[13] = vec_mergel(step3[6], step3[14]);
3063 kernel.
packet[14] = vec_mergeh(step3[7], step3[15]);
3064 kernel.
packet[15] = vec_mergel(step3[7], step3[15]);
3067 template <
typename Packet>
3071 return vec_sel(elsePacket, thenPacket, mask);
3077 return pblend4<Packet4i>(ifPacket, thenPacket, elsePacket);
3083 return pblend4<Packet4f>(ifPacket, thenPacket, elsePacket);
3092 Packet8s result = vec_sel(elsePacket, thenPacket, mask);
3102 return vec_sel(elsePacket, thenPacket, mask);
3108 return pblend<Packet8us>(ifPacket, thenPacket, elsePacket);
3120 return vec_sel(elsePacket, thenPacket, mask);
3132 return vec_sel(elsePacket, thenPacket, mask);
3136 #ifdef EIGEN_VECTORIZE_VSX
3138 typedef __vector
unsigned long long Packet2ul;
3139 typedef __vector
long long Packet2l;
3140 #if EIGEN_COMP_CLANG
3143 typedef __vector __bool
long Packet2bl;
3147 static Packet2ul p2ul_SIGN = {0x8000000000000000ull, 0x8000000000000000ull};
3148 static Packet2ul p2ul_PREV0DOT5 = {0x3FDFFFFFFFFFFFFFull, 0x3FDFFFFFFFFFFFFFull};
3151 static Packet2d p2d_MZERO = {numext::bit_cast<double>(0x8000000000000000ull),
3152 numext::bit_cast<double>(0x8000000000000000ull)};
3162 template <
int index>
3164 return vec_splat(
a, index);
3168 struct packet_traits<
double> : default_packet_traits {
3193 #if !EIGEN_COMP_CLANG
3205 typedef double type;
3235 s << vt.n[0] <<
", " << vt.n[1];
3245 s << vt.n[0] <<
", " << vt.n[1];
3253 return vec_xl(0,
const_cast<double*
>(from));
3258 return pload_partial_common<Packet2d>(from,
n, offset);
3264 vec_xst(from, 0, to);
3269 pstore_partial_common<Packet2d>(to, from,
n, offset);
3285 Packet2l v = {
static_cast<long long>(from),
static_cast<long long>(from)};
3301 return pgather_common<Packet2d>(from, stride);
3306 return pgather_common<Packet2d>(from, stride,
n);
3310 pscatter_common<Packet2d>(to, from, stride);
3315 pscatter_common<Packet2d>(to, from, stride,
n);
3335 #ifdef __POWER8_VECTOR__
3338 return vec_xor(
a, p2d_MZERO);
3349 return vec_madd(
a,
b, p2d_MZERO);
3353 return vec_div(
a,
b);
3359 return vec_madd(
a,
b,
c);
3363 return vec_msub(
a,
b,
c);
3367 return vec_nmsub(
a,
b,
c);
3371 return vec_nmadd(
a,
b,
c);
3378 __asm__(
"xvcmpgedp %x0,%x1,%x2\n\txxsel %x0,%x1,%x2,%x0" :
"=&wa"(
ret) :
"wa"(
a),
"wa"(
b));
3386 __asm__(
"xvcmpgtdp %x0,%x2,%x1\n\txxsel %x0,%x1,%x2,%x0" :
"=&wa"(
ret) :
"wa"(
a),
"wa"(
b));
3392 return reinterpret_cast<Packet2d>(vec_cmple(
a,
b));
3396 return reinterpret_cast<Packet2d>(vec_cmplt(
a,
b));
3400 return reinterpret_cast<Packet2d>(vec_cmpeq(
a,
b));
3404 return reinterpret_cast<Packet2l>(vec_cmpeq(
a,
b));
3409 return vec_nor(
c,
c);
3414 return vec_and(
a,
b);
3419 return vec_or(
a,
b);
3424 return vec_xor(
a,
b);
3429 return vec_and(
a, vec_nor(
b,
b));
3435 reinterpret_cast<Packet2d>(vec_or(vec_and(
reinterpret_cast<Packet2ul>(
a), p2ul_SIGN), p2ul_PREV0DOT5)),
a);
3438 __asm__(
"xvrdpiz %x0, %x1\n\t" :
"=&wa"(
res) :
"wa"(
t));
3448 return vec_floor(
a);
3452 return vec_trunc(
a);
3458 __asm__(
"xvrdpic %x0, %x1\n\t" :
"=&wa"(
res) :
"wa"(
a));
3466 return vec_xl(0,
const_cast<double*
>(from));
3471 return ploadu_partial_common<Packet2d>(from,
n, offset);
3477 if ((std::ptrdiff_t(from) % 16) == 0)
3481 return vec_splat_dbl<0>(
p);
3487 vec_xst(from, 0, to);
3492 pstoreu_partial_common<Packet2d>(to, from,
n, offset);
3509 return vec_sld(
a,
a, 8);
3515 #ifdef __POWER8_VECTOR__
3522 static Packet16uc p16uc_DUPSIGN = {0, 0, 0, 0, 0, 0, 0, 0, 8, 8, 8, 8, 8, 8, 8, 8};
3524 static Packet16uc p16uc_DUPSIGN = {7, 7, 7, 7, 7, 7, 7, 7, 15, 15, 15, 15, 15, 15, 15, 15};
3530 return reinterpret_cast<Packet2d>(vec_perm(
tmp,
tmp, p16uc_DUPSIGN));
3546 #ifdef __POWER8_VECTOR__
3551 return vec_sl(
a, shift);
3557 return vec_sr(
a, shift);
3565 static const Packet16uc perm = {0x14, 0x15, 0x16, 0x17, 0x00, 0x01, 0x02, 0x03,
3566 0x1c, 0x1d, 0x1e, 0x1f, 0x08, 0x09, 0x0a, 0x0b};
3568 return vec_perm(p4i_ZERO,
a, perm);
3570 return vec_perm(
a, p4i_ZERO, perm);
3577 static const Packet16uc perm = {0x04, 0x05, 0x06, 0x07, 0x10, 0x11, 0x12, 0x13,
3578 0x0c, 0x0d, 0x0e, 0x0f, 0x18, 0x19, 0x1a, 0x1b};
3580 return vec_perm(p4i_ZERO,
a, perm);
3582 return vec_perm(
a, p4i_ZERO, perm);
3586 template <
int N,
typename EnableIf =
void>
3587 struct plogical_shift_left_impl;
3590 struct plogical_shift_left_impl<
N, std::enable_if_t<(N < 32) && (N >= 0)> > {
3592 static const unsigned n =
static_cast<unsigned>(
N);
3595 static const unsigned m =
static_cast<unsigned>(32 -
N);
3597 const Packet4i out_hi = vec_sl(ai, shift);
3598 const Packet4i out_lo = shift_even_left(vec_sr(ai, shift_right));
3604 struct plogical_shift_left_impl<
N, std::enable_if_t<(N >= 32)> > {
3606 static const unsigned m =
static_cast<unsigned>(
N - 32);
3609 return reinterpret_cast<Packet2l>(shift_even_left(vec_sl(ai, shift)));
3618 template <
int N,
typename EnableIf =
void>
3619 struct plogical_shift_right_impl;
3622 struct plogical_shift_right_impl<
N, std::enable_if_t<(N < 32) && (N >= 0)> > {
3624 static const unsigned n =
static_cast<unsigned>(
N);
3627 static const unsigned m =
static_cast<unsigned>(32 -
N);
3629 const Packet4i out_lo = vec_sr(ai, shift);
3630 const Packet4i out_hi = shift_odd_right(vec_sl(ai, shift_left));
3636 struct plogical_shift_right_impl<
N, std::enable_if_t<(N >= 32)> > {
3638 static const unsigned m =
static_cast<unsigned>(
N - 32);
3641 return reinterpret_cast<Packet2l>(shift_odd_right(vec_sr(ai, shift)));
3658 const Packet2l bias = {1023, 1023};
3663 c =
reinterpret_cast<Packet2d>(plogical_shift_left<52>(
b + bias));
3711 t0 = vec_mergeh(kernel.packet[0], kernel.packet[1]);
3712 t1 = vec_mergel(kernel.packet[0], kernel.packet[1]);
3713 kernel.packet[0] = t0;
3714 kernel.packet[1] = t1;
3720 Packet2l select = {ifPacket.select[0], ifPacket.select[1]};
3722 return vec_sel(elsePacket, thenPacket, mask);
#define EIGEN_PPC_PREFETCH(ADDR)
Definition: AltiVec/PacketMath.h:154
#define LOAD_STORE_UNROLL_16
Definition: AltiVec/PacketMath.h:160
#define BF16_TO_F32_UNARY_OP_WRAPPER(OP, A)
Definition: AltiVec/PacketMath.h:2257
#define __VEC_CLASS_FP_NAN
Definition: AltiVec/PacketMath.h:2049
#define BF16_TO_F32_BINARY_OP_WRAPPER_BOOL(OP, A, B)
Definition: AltiVec/PacketMath.h:2273
#define BF16_TO_F32_BINARY_OP_WRAPPER(OP, A, B)
Definition: AltiVec/PacketMath.h:2264
Array< int, Dynamic, 1 > v
Definition: Array_initializer_list_vector_cxx11.cpp:1
int i
Definition: BiCGSTAB_step_by_step.cpp:9
const unsigned n
Definition: CG3DPackingUnitTest.cpp:11
Array< double, 1, 3 > e(1./3., 0.5, 2.)
#define EIGEN_DEBUG_ALIGNED_STORE
Definition: GenericPacketMath.h:38
#define EIGEN_DEBUG_ALIGNED_LOAD
Definition: GenericPacketMath.h:30
#define EIGEN_DEBUG_UNALIGNED_STORE
Definition: GenericPacketMath.h:42
#define EIGEN_DEBUG_UNALIGNED_LOAD
Definition: GenericPacketMath.h:34
#define EIGEN_ALWAYS_INLINE
Definition: Macros.h:845
#define eigen_internal_assert(x)
Definition: Macros.h:916
#define EIGEN_UNUSED_VARIABLE(var)
Definition: Macros.h:966
#define EIGEN_DEVICE_FUNC
Definition: Macros.h:892
#define eigen_assert(x)
Definition: Macros.h:910
#define EIGEN_FAST_MATH
Definition: Macros.h:51
#define EIGEN_STRONG_INLINE
Definition: Macros.h:834
cout<< "Here is the matrix m:"<< endl<< m<< endl;Matrix< ptrdiff_t, 3, 1 > res
Definition: PartialRedux_count.cpp:3
void load(Archive &ar, ParticleHandler &handl)
Definition: Particles.h:21
float * p
Definition: Tutorial_Map_using.cpp:9
Scalar Scalar int size
Definition: benchVecAdd.cpp:17
Scalar * b
Definition: benchVecAdd.cpp:17
internal::packet_traits< Scalar >::type Packet
Definition: benchmark-blocking-sizes.cpp:54
@ N
Definition: constructor.cpp:22
#define min(a, b)
Definition: datatypes.h:22
#define max(a, b)
Definition: datatypes.h:23
@ Aligned16
Definition: Constants.h:237
RealScalar s
Definition: level1_cplx_impl.h:130
Eigen::DenseIndex ret
Definition: level1_cplx_impl.h:43
const Scalar * a
Definition: level2_cplx_impl.h:32
int * m
Definition: level2_cplx_impl.h:294
Eigen::Matrix< Scalar, Dynamic, Dynamic, ColMajor > tmp
Definition: level3_impl.h:365
EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR __bfloat16_raw raw_uint16_to_bfloat16(unsigned short value)
EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC bfloat16 exp(const bfloat16 &a)
Definition: BFloat16.h:615
EIGEN_STRONG_INLINE unsigned char predux< Packet16uc >(const Packet16uc &a)
Definition: AltiVec/PacketMath.h:2515
EIGEN_ALWAYS_INLINE Packet4f pload_partial< Packet4f >(const float *from, const Index n, const Index offset)
Definition: AltiVec/PacketMath.h:593
EIGEN_STRONG_INLINE Packet4f pandnot< Packet4f >(const Packet4f &a, const Packet4f &b)
Definition: AltiVec/PacketMath.h:1465
EIGEN_STRONG_INLINE Packet8bf ptrunc< Packet8bf >(const Packet8bf &a)
Definition: AltiVec/PacketMath.h:2368
std::ostream & operator<<(std::ostream &s, const Packet16c &v)
Definition: AltiVec/PacketMath.h:427
EIGEN_STRONG_INLINE Packet16c pmin< Packet16c >(const Packet16c &a, const Packet16c &b)
Definition: AltiVec/PacketMath.h:1273
EIGEN_ALWAYS_INLINE void pstore_partial< signed char >(signed char *to, const Packet16c &from, const Index n, const Index offset)
Definition: AltiVec/PacketMath.h:743
EIGEN_STRONG_INLINE Packet8us pand< Packet8us >(const Packet8us &a, const Packet8us &b)
Definition: AltiVec/PacketMath.h:1418
__m128d Packet2d
Definition: LSX/PacketMath.h:36
EIGEN_STRONG_INLINE void pstoreu< double >(double *to, const Packet4d &from)
Definition: AVX/PacketMath.h:1628
EIGEN_STRONG_INLINE Packet8s pmax< Packet8s >(const Packet8s &a, const Packet8s &b)
Definition: AltiVec/PacketMath.h:1297
EIGEN_ALWAYS_INLINE void pstore_partial< unsigned short int >(unsigned short int *to, const Packet8us &from, const Index n, const Index offset)
Definition: AltiVec/PacketMath.h:731
EIGEN_STRONG_INLINE short int pfirst< Packet8s >(const Packet8s &a)
Definition: AltiVec/PacketMath.h:1883
EIGEN_STRONG_INLINE double predux< Packet2d >(const Packet2d &a)
Definition: LSX/PacketMath.h:1965
EIGEN_STRONG_INLINE Packet2cf pconj(const Packet2cf &a)
Definition: AltiVec/Complex.h:268
eigen_packet_wrapper< __m128i, 3 > Packet2l
Definition: LSX/PacketMath.h:41
EIGEN_STRONG_INLINE Packet16c pmax< Packet16c >(const Packet16c &a, const Packet16c &b)
Definition: AltiVec/PacketMath.h:1305
EIGEN_STRONG_INLINE Packet8bf print< Packet8bf >(const Packet8bf &a)
Definition: AVX/PacketMath.h:2718
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE Packet8bf pgather< bfloat16, Packet8bf >(const bfloat16 *from, Index stride)
Definition: AltiVec/PacketMath.h:874
static Packet8us p8us_COUNTDOWN
Definition: AltiVec/PacketMath.h:90
EIGEN_STRONG_INLINE Packet4f pmin< Packet4f >(const Packet4f &a, const Packet4f &b)
Definition: AltiVec/PacketMath.h:1250
EIGEN_STRONG_INLINE Packet2d padd< Packet2d >(const Packet2d &a, const Packet2d &b)
Definition: LSX/PacketMath.h:605
EIGEN_ALWAYS_INLINE void pstore_partial< int >(int *to, const Packet4i &from, const Index n, const Index offset)
Definition: AltiVec/PacketMath.h:720
static Packet4i p4i_COUNTDOWN
Definition: AltiVec/PacketMath.h:88
EIGEN_STRONG_INLINE Packet2d pandnot< Packet2d >(const Packet2d &a, const Packet2d &b)
Definition: LSX/PacketMath.h:1003
EIGEN_STRONG_INLINE Packet8f pzero(const Packet8f &)
Definition: AVX/PacketMath.h:774
EIGEN_DEFINE_FUNCTION_ALLOWING_MULTIPLE_DEFINITIONS Packet psin_float(const Packet &x)
Definition: GenericPacketMathFunctions.h:820
EIGEN_STRONG_INLINE Packet8bf F32ToBf16Bool(Packet4f even, Packet4f odd)
Definition: AltiVec/PacketMath.h:2042
static Packet4f p4f_ONE
Definition: AltiVec/PacketMath.h:84
__vector int Packet4i
Definition: AltiVec/PacketMath.h:34
EIGEN_STRONG_INLINE Packet16uc ploadu< Packet16uc >(const unsigned char *from)
Definition: AltiVec/PacketMath.h:1557
EIGEN_ALWAYS_INLINE Packet16c pload_partial< Packet16c >(const signed char *from, const Index n, const Index offset)
Definition: AltiVec/PacketMath.h:619
EIGEN_STRONG_INLINE Packet4f padd< Packet4f >(const Packet4f &a, const Packet4f &b)
Definition: AltiVec/PacketMath.h:1066
EIGEN_STRONG_INLINE Packet16uc pmul< Packet16uc >(const Packet16uc &a, const Packet16uc &b)
Definition: AltiVec/PacketMath.h:1182
EIGEN_STRONG_INLINE bfloat16 predux_mul< Packet8bf >(const Packet8bf &a)
Definition: AltiVec/PacketMath.h:2558
EIGEN_STRONG_INLINE Packet4i por< Packet4i >(const Packet4i &a, const Packet4i &b)
Definition: AltiVec/PacketMath.h:1431
static Packet16uc p16uc_MERGEO16
Definition: AltiVec/PacketMath.h:109
static Packet8s p8s_COUNTDOWN
Definition: AltiVec/PacketMath.h:89
static Packet16uc p16uc_REVERSE8
Definition: AltiVec/PacketMath.h:97
EIGEN_STRONG_INLINE short int predux_min< Packet8s >(const Packet8s &a)
Definition: AltiVec/PacketMath.h:2617
EIGEN_STRONG_INLINE Packet ploadu_common(const __UNPACK_TYPE__(Packet) *from)
Definition: AltiVec/PacketMath.h:1516
EIGEN_STRONG_INLINE Packet8bf pmin< Packet8bf >(const Packet8bf &a, const Packet8bf &b)
Definition: AltiVec/PacketMath.h:2391
EIGEN_STRONG_INLINE Packet4f pcmp_eq< Packet4f >(const Packet4f &a, const Packet4f &b)
Definition: LSX/PacketMath.h:1131
static EIGEN_DECLARE_CONST_FAST_Packet4f(ZERO, 0)
EIGEN_DEVICE_FUNC void ptranpose_common(PacketBlock< T, 4 > &kernel)
Definition: AltiVec/PacketMath.h:2756
EIGEN_ALWAYS_INLINE Packet16uc pload_partial< Packet16uc >(const unsigned char *from, const Index n, const Index offset)
Definition: AltiVec/PacketMath.h:624
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE void pscatter_partial< int, Packet4i >(int *to, const Packet4i &from, Index stride, const Index n)
Definition: AltiVec/PacketMath.h:1001
__vector unsigned char Packet16uc
Definition: AltiVec/PacketMath.h:41
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE Packet8bf pgather_partial< bfloat16, Packet8bf >(const bfloat16 *from, Index stride, const Index n)
Definition: AltiVec/PacketMath.h:914
static Packet16uc p16uc_MERGEE16
Definition: AltiVec/PacketMath.h:108
EIGEN_STRONG_INLINE Packet4i pset1< Packet4i >(const int &from)
Definition: AltiVec/PacketMath.h:778
EIGEN_STRONG_INLINE Packet16c pload< Packet16c >(const signed char *from)
Definition: AltiVec/PacketMath.h:512
EIGEN_ALWAYS_INLINE void pstore_partial< unsigned char >(unsigned char *to, const Packet16uc &from, const Index n, const Index offset)
Definition: AltiVec/PacketMath.h:749
EIGEN_STRONG_INLINE Packet8bf pceil< Packet8bf >(const Packet8bf &a)
Definition: AltiVec/PacketMath.h:2360
static Packet16uc p16uc_REVERSE16
Definition: AltiVec/PacketMath.h:96
EIGEN_STRONG_INLINE Packet8us pmin< Packet8us >(const Packet8us &a, const Packet8us &b)
Definition: AltiVec/PacketMath.h:1269
EIGEN_ALWAYS_INLINE Packet pload_ignore(const __UNPACK_TYPE__(Packet) *from)
Definition: AltiVec/PacketMath.h:527
EIGEN_STRONG_INLINE Packet8bf pdiv< Packet8bf >(const Packet8bf &a, const Packet8bf &b)
Definition: AltiVec/PacketMath.h:2293
EIGEN_STRONG_INLINE Packet8bf pround< Packet8bf >(const Packet8bf &a)
Definition: AltiVec/PacketMath.h:2364
EIGEN_STRONG_INLINE Packet16c psub< Packet16c >(const Packet16c &a, const Packet16c &b)
Definition: AltiVec/PacketMath.h:1111
EIGEN_STRONG_INLINE short int predux_max< Packet8s >(const Packet8s &a)
Definition: AltiVec/PacketMath.h:2697
EIGEN_STRONG_INLINE Packet4f pcmp_le< Packet4f >(const Packet4f &a, const Packet4f &b)
Definition: LSX/PacketMath.h:1040
static Packet16c p16c_COUNTDOWN
Definition: AltiVec/PacketMath.h:92
EIGEN_STRONG_INLINE unsigned short int predux_max< Packet8us >(const Packet8us &a)
Definition: AltiVec/PacketMath.h:2712
EIGEN_STRONG_INLINE float pfirst< Packet4f >(const Packet4f &a)
Definition: AltiVec/PacketMath.h:1863
EIGEN_STRONG_INLINE Packet2d pand< Packet2d >(const Packet2d &a, const Packet2d &b)
Definition: LSX/PacketMath.h:880
EIGEN_STRONG_INLINE Packet pblend4(const Selector< 4 > &ifPacket, const Packet &thenPacket, const Packet &elsePacket)
Definition: AltiVec/PacketMath.h:3068
EIGEN_STRONG_INLINE Packet16uc pmax< Packet16uc >(const Packet16uc &a, const Packet16uc &b)
Definition: AltiVec/PacketMath.h:1309
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE void pscatter_partial< bfloat16, Packet8bf >(bfloat16 *to, const Packet8bf &from, Index stride, const Index n)
Definition: AltiVec/PacketMath.h:1021
EIGEN_STRONG_INLINE unsigned short int predux_min< Packet8us >(const Packet8us &a)
Definition: AltiVec/PacketMath.h:2632
EIGEN_STRONG_INLINE void pstoreu_common(__UNPACK_TYPE__(Packet) *to, const Packet &from)
Definition: AltiVec/PacketMath.h:1734
EIGEN_STRONG_INLINE Packet8s por< Packet8s >(const Packet8s &a, const Packet8s &b)
Definition: AltiVec/PacketMath.h:1435
EIGEN_ALWAYS_INLINE void pstoreu_partial< signed char >(signed char *to, const Packet16c &from, const Index n, const Index offset)
Definition: AltiVec/PacketMath.h:1843
EIGEN_STRONG_INLINE Packet8us psub< Packet8us >(const Packet8us &a, const Packet8us &b)
Definition: AltiVec/PacketMath.h:1107
EIGEN_STRONG_INLINE Packet4ui padd< Packet4ui >(const Packet4ui &a, const Packet4ui &b)
Definition: AltiVec/PacketMath.h:1074
EIGEN_STRONG_INLINE void ptranspose(PacketBlock< Packet2cf, 2 > &kernel)
Definition: AltiVec/Complex.h:339
EIGEN_STRONG_INLINE Packet16c plset< Packet16c >(const signed char &a)
Definition: AltiVec/PacketMath.h:1057
EIGEN_STRONG_INLINE Packet4ui pand< Packet4ui >(const Packet4ui &a, const Packet4ui &b)
Definition: AltiVec/PacketMath.h:1414
EIGEN_STRONG_INLINE Packet pset1_size8(const __UNPACK_TYPE__(Packet) &from)
Definition: AltiVec/PacketMath.h:761
EIGEN_STRONG_INLINE signed char pfirst< Packet16c >(const Packet16c &a)
Definition: AltiVec/PacketMath.h:1893
EIGEN_ALWAYS_INLINE Packet8bf F32ToBf16Two(Packet4f lo, Packet4f hi)
Definition: AltiVec/PacketMath.h:2169
EIGEN_ALWAYS_INLINE void pstoreu_partial< bfloat16 >(bfloat16 *to, const Packet8bf &from, const Index n, const Index offset)
Definition: AltiVec/PacketMath.h:1838
EIGEN_STRONG_INLINE Packet16uc pset1< Packet16uc >(const unsigned char &from)
Definition: AltiVec/PacketMath.h:798
EIGEN_ALWAYS_INLINE void pstoreu_partial_common(__UNPACK_TYPE__(Packet) *to, const Packet &from, const Index n, const Index offset)
Definition: AltiVec/PacketMath.h:1785
EIGEN_ALWAYS_INLINE Packet8us pmerge(Packet4ui even, Packet4ui odd)
Definition: AltiVec/PacketMath.h:2032
EIGEN_STRONG_INLINE signed char predux_mul< Packet16c >(const Packet16c &a)
Definition: AltiVec/PacketMath.h:2566
EIGEN_STRONG_INLINE Packet4i ploaddup< Packet4i >(const int *from)
Definition: AltiVec/PacketMath.h:1644
EIGEN_ALWAYS_INLINE void pstoreu_partial< int >(int *to, const Packet4i &from, const Index n, const Index offset)
Definition: AltiVec/PacketMath.h:1824
EIGEN_STRONG_INLINE bool predux_any(const Packet4f &x)
Definition: AltiVec/PacketMath.h:2751
EIGEN_ALWAYS_INLINE void pstore_partial< bfloat16 >(bfloat16 *to, const Packet8bf &from, const Index n, const Index offset)
Definition: AltiVec/PacketMath.h:737
static Packet16uc p16uc_TRANSPOSE64_LO
Definition: AltiVec/PacketMath.h:145
EIGEN_STRONG_INLINE float predux_max< Packet4f >(const Packet4f &a)
Definition: AltiVec/PacketMath.h:2679
EIGEN_STRONG_INLINE signed char predux_min< Packet16c >(const Packet16c &a)
Definition: AltiVec/PacketMath.h:2647
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE Packet16uc pgather< unsigned char, Packet16uc >(const unsigned char *from, Index stride)
Definition: AltiVec/PacketMath.h:884
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE void pscatter_partial< float, Packet4f >(float *to, const Packet4f &from, Index stride, const Index n)
Definition: AltiVec/PacketMath.h:995
EIGEN_STRONG_INLINE Packet2d ploaddup< Packet2d >(const double *from)
Definition: LSX/PacketMath.h:1490
EIGEN_STRONG_INLINE Packet8us plset< Packet8us >(const unsigned short int &a)
Definition: AltiVec/PacketMath.h:1053
static Packet16uc p16uc_REVERSE32
Definition: AltiVec/PacketMath.h:95
__vector unsigned short int Packet8us
Definition: AltiVec/PacketMath.h:38
static Packet16uc p16uc_MERGEL16
Definition: AltiVec/PacketMath.h:113
EIGEN_STRONG_INLINE Packet2d pxor< Packet2d >(const Packet2d &a, const Packet2d &b)
Definition: LSX/PacketMath.h:962
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE void pscatter_common(__UNPACK_TYPE__(Packet) *to, const Packet &from, Index stride, const Index n=unpacket_traits< Packet >::size)
Definition: AltiVec/PacketMath.h:933
EIGEN_STRONG_INLINE Packet2d por< Packet2d >(const Packet2d &a, const Packet2d &b)
Definition: LSX/PacketMath.h:921
__vector __bool short Packet8bi
Definition: AltiVec/PacketMath.h:39
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE Packet8s pgather< short int, Packet8s >(const short int *from, Index stride)
Definition: AltiVec/PacketMath.h:863
EIGEN_STRONG_INLINE void pstore< bfloat16 >(bfloat16 *to, const Packet8bf &from)
Definition: AltiVec/PacketMath.h:662
EIGEN_STRONG_INLINE Packet2d pldexp< Packet2d >(const Packet2d &a, const Packet2d &exponent)
Definition: LSX/PacketMath.h:2753
EIGEN_STRONG_INLINE void pstore< unsigned short int >(unsigned short int *to, const Packet8us &from)
Definition: AltiVec/PacketMath.h:657
EIGEN_STRONG_INLINE Packet4i pdiv< Packet4i >(const Packet4i &a, const Packet4i &b)
Definition: AltiVec/PacketMath.h:1205
EIGEN_ALWAYS_INLINE void pstoreu_partial< unsigned char >(unsigned char *to, const Packet16uc &from, const Index n, const Index offset)
Definition: AltiVec/PacketMath.h:1848
EIGEN_STRONG_INLINE Packet8bf plog< Packet8bf >(const Packet8bf &a)
Definition: AltiVec/PacketMath.h:2352
EIGEN_STRONG_INLINE Packet8s ploadu< Packet8s >(const short int *from)
Definition: AltiVec/PacketMath.h:1541
EIGEN_STRONG_INLINE void pstoreu< signed char >(signed char *to, const Packet16c &from)
Definition: AltiVec/PacketMath.h:1776
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE void pscatter< int, Packet4i >(int *to, const Packet4i &from, Index stride)
Definition: AltiVec/PacketMath.h:959
EIGEN_STRONG_INLINE Packet4f ploaddup< Packet4f >(const float *from)
Definition: AltiVec/PacketMath.h:1640
EIGEN_STRONG_INLINE Packet2l pcast< Packet2d, Packet2l >(const Packet2d &a)
Definition: LSX/TypeCasting.h:433
EIGEN_STRONG_INLINE Packet4f por< Packet4f >(const Packet4f &a, const Packet4f &b)
Definition: AltiVec/PacketMath.h:1427
EIGEN_ALWAYS_INLINE Packet8bf ploadu_partial< Packet8bf >(const bfloat16 *from, const Index n, const Index offset)
Definition: AltiVec/PacketMath.h:1617
EIGEN_ALWAYS_INLINE Packet8s pload_partial< Packet8s >(const short int *from, const Index n, const Index offset)
Definition: AltiVec/PacketMath.h:603
EIGEN_STRONG_INLINE Packet4i plogical_shift_left(const Packet4i &a)
Definition: AltiVec/PacketMath.h:1983
EIGEN_STRONG_INLINE Packet8s plset< Packet8s >(const short int &a)
Definition: AltiVec/PacketMath.h:1049
EIGEN_STRONG_INLINE Packet16uc padd< Packet16uc >(const Packet16uc &a, const Packet16uc &b)
Definition: AltiVec/PacketMath.h:1090
EIGEN_STRONG_INLINE int predux_min< Packet4i >(const Packet4i &a)
Definition: AltiVec/PacketMath.h:2604
EIGEN_STRONG_INLINE Packet16uc psub< Packet16uc >(const Packet16uc &a, const Packet16uc &b)
Definition: AltiVec/PacketMath.h:1115
EIGEN_ALWAYS_INLINE void pstore_partial_common(__UNPACK_TYPE__(Packet) *to, const Packet &from, const Index n, const Index offset)
Definition: AltiVec/PacketMath.h:677
EIGEN_STRONG_INLINE Packet4i pxor< Packet4i >(const Packet4i &a, const Packet4i &b)
Definition: AltiVec/PacketMath.h:1452
EIGEN_STRONG_INLINE double predux_max< Packet2d >(const Packet2d &a)
Definition: LSX/PacketMath.h:2127
EIGEN_STRONG_INLINE Packet4f pmul< Packet4f >(const Packet4f &a, const Packet4f &b)
Definition: AltiVec/PacketMath.h:1162
static Packet16uc p16uc_PSET32_WEVEN
Definition: AltiVec/PacketMath.h:132
EIGEN_DEVICE_FUNC Packet pmax(const Packet &a, const Packet &b)
Definition: GenericPacketMath.h:663
EIGEN_STRONG_INLINE Packet4i pblend(const Selector< 4 > &ifPacket, const Packet4i &thenPacket, const Packet4i &elsePacket)
Definition: AltiVec/PacketMath.h:3075
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE Packet16uc pgather_partial< unsigned char, Packet16uc >(const unsigned char *from, Index stride, const Index n)
Definition: AltiVec/PacketMath.h:926
EIGEN_STRONG_INLINE Packet8bf padd< Packet8bf >(const Packet8bf &a, const Packet8bf &b)
Definition: AltiVec/PacketMath.h:2283
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE Packet4f pgather< float, Packet4f >(const float *from, Index stride)
Definition: AltiVec/PacketMath.h:853
EIGEN_STRONG_INLINE Packet8us pmax< Packet8us >(const Packet8us &a, const Packet8us &b)
Definition: AltiVec/PacketMath.h:1301
EIGEN_STRONG_INLINE Packet8bf pexp< Packet8bf >(const Packet8bf &a)
Definition: AltiVec/PacketMath.h:2309
EIGEN_STRONG_INLINE Packet4f pcmp_le(const Packet4f &a, const Packet4f &b)
Definition: AltiVec/PacketMath.h:1314
EIGEN_ALWAYS_INLINE Packet4i pload_partial< Packet4i >(const int *from, const Index n, const Index offset)
Definition: AltiVec/PacketMath.h:598
EIGEN_STRONG_INLINE Packet2d pset1< Packet2d >(const double &from)
Definition: LSX/PacketMath.h:503
EIGEN_STRONG_INLINE Packet4i plogical_shift_right(const Packet4i &a)
Definition: AltiVec/PacketMath.h:1979
EIGEN_DEFINE_FUNCTION_ALLOWING_MULTIPLE_DEFINITIONS Packet pcos_float(const Packet &x)
Definition: GenericPacketMathFunctions.h:825
static EIGEN_DECLARE_CONST_FAST_Packet4ui(SIGN, 0x80000000u)
EIGEN_STRONG_INLINE unsigned short int predux< Packet8us >(const Packet8us &a)
Definition: AltiVec/PacketMath.h:2483
EIGEN_STRONG_INLINE Packet4f pload< Packet4f >(const float *from)
Definition: AltiVec/PacketMath.h:492
__vector signed char Packet16c
Definition: AltiVec/PacketMath.h:40
EIGEN_STRONG_INLINE Packet16uc ploadquad< Packet16uc >(const unsigned char *from)
Definition: AltiVec/PacketMath.h:1724
EIGEN_STRONG_INLINE int predux_mul< Packet4i >(const Packet4i &a)
Definition: AltiVec/PacketMath.h:2529
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE Packet4f pgather_partial< float, Packet4f >(const float *from, Index stride, const Index n)
Definition: AltiVec/PacketMath.h:890
EIGEN_STRONG_INLINE Packet16uc pload< Packet16uc >(const unsigned char *from)
Definition: AltiVec/PacketMath.h:517
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE void pscatter_partial< short int, Packet8s >(short int *to, const Packet8s &from, Index stride, const Index n)
Definition: AltiVec/PacketMath.h:1007
EIGEN_STRONG_INLINE Packet8us ploadu< Packet8us >(const unsigned short int *from)
Definition: AltiVec/PacketMath.h:1545
EIGEN_STRONG_INLINE void pstore< int >(int *to, const Packet4i &from)
Definition: AltiVec/PacketMath.h:647
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE Packet8s pgather_partial< short int, Packet8s >(const short int *from, Index stride, const Index n)
Definition: AltiVec/PacketMath.h:902
EIGEN_STRONG_INLINE Packet8bf plset< Packet8bf >(const bfloat16 &a)
Definition: AltiVec/PacketMath.h:2428
EIGEN_STRONG_INLINE Packet4i pcmp_lt(const Packet4i &a, const Packet4i &b)
Definition: AltiVec/PacketMath.h:1341
EIGEN_STRONG_INLINE Packet8bf pmul< Packet8bf >(const Packet8bf &a, const Packet8bf &b)
Definition: AltiVec/PacketMath.h:2288
EIGEN_STRONG_INLINE Packet8us pmul< Packet8us >(const Packet8us &a, const Packet8us &b)
Definition: AltiVec/PacketMath.h:1174
EIGEN_STRONG_INLINE Packet8bf ploaddup< Packet8bf >(const bfloat16 *from)
Definition: AltiVec/PacketMath.h:2423
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE Packet16c pgather_partial< signed char, Packet16c >(const signed char *from, Index stride, const Index n)
Definition: AltiVec/PacketMath.h:920
__vector unsigned int Packet4ui
Definition: AltiVec/PacketMath.h:35
EIGEN_STRONG_INLINE Packet4f pcmp_lt_or_nan< Packet4f >(const Packet4f &a, const Packet4f &b)
Definition: LSX/PacketMath.h:1122
EIGEN_STRONG_INLINE Packet2cf preverse(const Packet2cf &a)
Definition: AltiVec/Complex.h:303
__vector __bool int Packet4bi
Definition: AltiVec/PacketMath.h:36
EIGEN_STRONG_INLINE void pstore< double >(double *to, const Packet4d &from)
Definition: AVX/PacketMath.h:1611
EIGEN_STRONG_INLINE Packet4i padd< Packet4i >(const Packet4i &a, const Packet4i &b)
Definition: AltiVec/PacketMath.h:1070
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE Packet pgather_common(const __UNPACK_TYPE__(Packet) *from, Index stride, const Index n=unpacket_traits< Packet >::size)
Definition: AltiVec/PacketMath.h:832
EIGEN_STRONG_INLINE Packet4f pfloor< Packet4f >(const Packet4f &a)
Definition: AltiVec/PacketMath.h:1497
EIGEN_STRONG_INLINE Packet4f pmadd(const Packet4f &a, const Packet4f &b, const Packet4f &c)
Definition: AltiVec/PacketMath.h:1218
EIGEN_STRONG_INLINE Packet4cf pmul(const Packet4cf &a, const Packet4cf &b)
Definition: AVX/Complex.h:88
EIGEN_STRONG_INLINE Packet4i pandnot< Packet4i >(const Packet4i &a, const Packet4i &b)
Definition: AltiVec/PacketMath.h:1469
EIGEN_STRONG_INLINE unsigned char predux_max< Packet16uc >(const Packet16uc &a)
Definition: AltiVec/PacketMath.h:2739
EIGEN_STRONG_INLINE signed char predux_max< Packet16c >(const Packet16c &a)
Definition: AltiVec/PacketMath.h:2727
EIGEN_STRONG_INLINE Packet8us pandnot< Packet8us >(const Packet8us &a, const Packet8us &b)
Definition: LSX/PacketMath.h:1027
EIGEN_STRONG_INLINE Packet4ui pandnot< Packet4ui >(const Packet4ui &a, const Packet4ui &b)
Definition: LSX/PacketMath.h:1031
EIGEN_STRONG_INLINE Packet8s ploaddup< Packet8s >(const short int *from)
Definition: AltiVec/PacketMath.h:1649
EIGEN_STRONG_INLINE void pstore< short int >(short int *to, const Packet8s &from)
Definition: AltiVec/PacketMath.h:652
EIGEN_DEVICE_FUNC Packet pmin(const Packet &a, const Packet &b)
Definition: GenericPacketMath.h:649
EIGEN_STRONG_INLINE Packet4f pdiv< Packet4f >(const Packet4f &a, const Packet4f &b)
Definition: AltiVec/PacketMath.h:1187
EIGEN_STRONG_INLINE Packet2d pload< Packet2d >(const double *from)
Definition: LSX/PacketMath.h:1407
EIGEN_STRONG_INLINE Packet8us pload< Packet8us >(const unsigned short int *from)
Definition: AltiVec/PacketMath.h:507
EIGEN_STRONG_INLINE Packet2d pmul< Packet2d >(const Packet2d &a, const Packet2d &b)
Definition: LSX/PacketMath.h:741
eigen_packet_wrapper< __vector unsigned short int, 0 > Packet8bf
Definition: AltiVec/PacketMath.h:42
EIGEN_STRONG_INLINE Packet2cf pnegate(const Packet2cf &a)
Definition: AltiVec/Complex.h:264
EIGEN_STRONG_INLINE Packet4f pfrexp< Packet4f >(const Packet4f &a, Packet4f &exponent)
Definition: AltiVec/PacketMath.h:2328
EIGEN_STRONG_INLINE float predux_mul< Packet4f >(const Packet4f &a)
Definition: AltiVec/PacketMath.h:2522
EIGEN_STRONG_INLINE Packet8bf pexp2< Packet8bf >(const Packet8bf &a)
Definition: AltiVec/PacketMath.h:2314
static Packet16uc p16uc_HALF64_0_16
Definition: AltiVec/PacketMath.h:135
EIGEN_STRONG_INLINE void prefetch< float >(const float *addr)
Definition: AltiVec/PacketMath.h:1854
EIGEN_STRONG_INLINE void pstoreu< bfloat16 >(bfloat16 *to, const Packet8bf &from)
Definition: AltiVec/PacketMath.h:1772
EIGEN_STRONG_INLINE Packet8bf pldexp< Packet8bf >(const Packet8bf &a, const Packet8bf &exponent)
Definition: AltiVec/PacketMath.h:2323
EIGEN_STRONG_INLINE Packet4i parithmetic_shift_right(const Packet4i &a)
Definition: AltiVec/PacketMath.h:1975
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE void pscatter_partial< unsigned char, Packet16uc >(unsigned char *to, const Packet16uc &from, Index stride, const Index n)
Definition: AltiVec/PacketMath.h:1034
EIGEN_STRONG_INLINE Packet4d pfrexp_generic_get_biased_exponent(const Packet4d &a)
Definition: AVX/PacketMath.h:1880
EIGEN_STRONG_INLINE Packet8bf F32ToBf16Both(Packet4f lo, Packet4f hi)
Definition: AltiVec/PacketMath.h:2237
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE void pscatter< short int, Packet8s >(short int *to, const Packet8s &from, Index stride)
Definition: AltiVec/PacketMath.h:964
EIGEN_STRONG_INLINE Packet pset1_size16(const __UNPACK_TYPE__(Packet) &from)
Definition: AltiVec/PacketMath.h:767
EIGEN_STRONG_INLINE Packet8s padd< Packet8s >(const Packet8s &a, const Packet8s &b)
Definition: AltiVec/PacketMath.h:1078
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void pscatter< double, Packet2d >(double *to, const Packet2d &from, Index stride)
Definition: LSX/PacketMath.h:1734
EIGEN_STRONG_INLINE void pstore_common(__UNPACK_TYPE__(Packet) *to, const Packet &from)
Definition: AltiVec/PacketMath.h:629
EIGEN_DEVICE_FUNC void pstoreu_partial(Scalar *to, const Packet &from, const Index n, const Index offset=0)
Definition: GenericPacketMath.h:917
EIGEN_STRONG_INLINE Packet8us ploaddup< Packet8us >(const unsigned short int *from)
Definition: AltiVec/PacketMath.h:1659
EIGEN_STRONG_INLINE Packet4i ploadu< Packet4i >(const int *from)
Definition: AltiVec/PacketMath.h:1537
EIGEN_STRONG_INLINE double predux_mul< Packet2d >(const Packet2d &a)
Definition: LSX/PacketMath.h:2019
__vector short int Packet8s
Definition: AltiVec/PacketMath.h:37
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE Packet8us pgather< unsigned short int, Packet8us >(const unsigned short int *from, Index stride)
Definition: AltiVec/PacketMath.h:868
EIGEN_STRONG_INLINE Packet2d pdiv< Packet2d >(const Packet2d &a, const Packet2d &b)
Definition: LSX/PacketMath.h:782
EIGEN_STRONG_INLINE Packet8bf psignbit(const Packet8bf &a)
Definition: AltiVec/PacketMath.h:1966
EIGEN_STRONG_INLINE Packet ploaddup_common(const __UNPACK_TYPE__(Packet) *from)
Definition: AltiVec/PacketMath.h:1631
EIGEN_ALWAYS_INLINE void pstoreu_partial< float >(float *to, const Packet4f &from, const Index n, const Index offset)
Definition: AltiVec/PacketMath.h:1820
static Packet4f p4f_MZERO
Definition: AltiVec/PacketMath.h:81
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE Packet4i pgather_partial< int, Packet4i >(const int *from, Index stride, const Index n)
Definition: AltiVec/PacketMath.h:896
EIGEN_STRONG_INLINE double predux_min< Packet2d >(const Packet2d &a)
Definition: LSX/PacketMath.h:2073
EIGEN_STRONG_INLINE Packet4f pset1< Packet4f >(const float &from)
Definition: AltiVec/PacketMath.h:773
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE void pscatter_partial< signed char, Packet16c >(signed char *to, const Packet16c &from, Index stride, const Index n)
Definition: AltiVec/PacketMath.h:1027
EIGEN_STRONG_INLINE void pstoreu< unsigned short int >(unsigned short int *to, const Packet8us &from)
Definition: AltiVec/PacketMath.h:1768
EIGEN_STRONG_INLINE void pstoreu< unsigned char >(unsigned char *to, const Packet16uc &from)
Definition: AltiVec/PacketMath.h:1780
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE void pscatter< unsigned char, Packet16uc >(unsigned char *to, const Packet16uc &from, Index stride)
Definition: AltiVec/PacketMath.h:989
EIGEN_STRONG_INLINE Packet4i psub< Packet4i >(const Packet4i &a, const Packet4i &b)
Definition: AltiVec/PacketMath.h:1099
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE void pscatter< float, Packet4f >(float *to, const Packet4f &from, Index stride)
Definition: AltiVec/PacketMath.h:954
EIGEN_STRONG_INLINE Packet2d plset< Packet2d >(const double &a)
Definition: LSX/PacketMath.h:563
EIGEN_STRONG_INLINE Packet8bf pfloor< Packet8bf >(const Packet8bf &a)
Definition: AltiVec/PacketMath.h:2356
EIGEN_STRONG_INLINE Packet8s pload< Packet8s >(const short int *from)
Definition: AltiVec/PacketMath.h:502
EIGEN_STRONG_INLINE Packet8us pxor< Packet8us >(const Packet8us &a, const Packet8us &b)
Definition: AltiVec/PacketMath.h:1456
EIGEN_STRONG_INLINE Packet2d pcast< Packet2l, Packet2d >(const Packet2l &a)
Definition: LSX/TypeCasting.h:514
EIGEN_STRONG_INLINE Packet8us padd< Packet8us >(const Packet8us &a, const Packet8us &b)
Definition: AltiVec/PacketMath.h:1082
EIGEN_STRONG_INLINE Packet4f pceil< Packet4f >(const Packet4f &a)
Definition: AltiVec/PacketMath.h:1493
EIGEN_STRONG_INLINE void pstore< float >(float *to, const Packet4f &from)
Definition: AltiVec/PacketMath.h:642
EIGEN_STRONG_INLINE Packet2l pset1< Packet2l >(const int64_t &from)
Definition: LSX/PacketMath.h:478
EIGEN_ALWAYS_INLINE void pstoreu_partial< short int >(short int *to, const Packet8s &from, const Index n, const Index offset)
Definition: AltiVec/PacketMath.h:1828
EIGEN_STRONG_INLINE Packet4f pabs(const Packet4f &a)
Definition: AltiVec/PacketMath.h:1936
static EIGEN_DECLARE_CONST_FAST_Packet4i(ZERO, 0)
EIGEN_STRONG_INLINE Packet4f ptrunc< Packet4f >(const Packet4f &a)
Definition: AltiVec/PacketMath.h:1501
EIGEN_STRONG_INLINE Packet4f Bf16ToF32Even(const Packet8bf &bf)
Definition: AltiVec/PacketMath.h:2023
static Packet2d p2d_ONE
Definition: ZVector/PacketMath.h:90
EIGEN_STRONG_INLINE bfloat16 pfirst(const Packet8bf &a)
Definition: AltiVec/PacketMath.h:2418
EIGEN_STRONG_INLINE Packet8us por< Packet8us >(const Packet8us &a, const Packet8us &b)
Definition: AltiVec/PacketMath.h:1439
EIGEN_ALWAYS_INLINE void pstore_partial< short int >(short int *to, const Packet8s &from, const Index n, const Index offset)
Definition: AltiVec/PacketMath.h:725
EIGEN_STRONG_INLINE void pstore< signed char >(signed char *to, const Packet16c &from)
Definition: AltiVec/PacketMath.h:667
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE Packet8us pgather_partial< unsigned short int, Packet8us >(const unsigned short int *from, Index stride, const Index n)
Definition: AltiVec/PacketMath.h:909
EIGEN_STRONG_INLINE void pbroadcast4< Packet2d >(const double *a, Packet2d &a0, Packet2d &a1, Packet2d &a2, Packet2d &a3)
Definition: SSE/PacketMath.h:1819
EIGEN_STRONG_INLINE Packet4f pset1frombits< Packet4f >(unsigned int from)
Definition: AltiVec/PacketMath.h:803
EIGEN_DEVICE_FUNC void pstore(Scalar *to, const Packet &from)
Definition: GenericPacketMath.h:891
EIGEN_STRONG_INLINE Packet4f pnmsub(const Packet4f &a, const Packet4f &b, const Packet4f &c)
Definition: LSX/PacketMath.h:835
static Packet16uc p16uc_PSET64_HI
Definition: AltiVec/PacketMath.h:139
EIGEN_STRONG_INLINE Packet4f pldexp< Packet4f >(const Packet4f &a, const Packet4f &exponent)
Definition: AltiVec/PacketMath.h:2319
EIGEN_STRONG_INLINE Packet2d ploadu< Packet2d >(const double *from)
Definition: LSX/PacketMath.h:1448
EIGEN_STRONG_INLINE Packet8bf pand< Packet8bf >(const Packet8bf &a, const Packet8bf &b)
Definition: AltiVec/PacketMath.h:1422
EIGEN_STRONG_INLINE void pstore< unsigned char >(unsigned char *to, const Packet16uc &from)
Definition: AltiVec/PacketMath.h:672
EIGEN_STRONG_INLINE Packet4f pcmp_lt< Packet4f >(const Packet4f &a, const Packet4f &b)
Definition: LSX/PacketMath.h:1081
EIGEN_STRONG_INLINE short int predux_mul< Packet8s >(const Packet8s &a)
Definition: AltiVec/PacketMath.h:2536
EIGEN_STRONG_INLINE Packet4f pxor< Packet4f >(const Packet4f &a, const Packet4f &b)
Definition: AltiVec/PacketMath.h:1448
EIGEN_STRONG_INLINE Packet4i pmin< Packet4i >(const Packet4i &a, const Packet4i &b)
Definition: AltiVec/PacketMath.h:1261
EIGEN_DEVICE_FUNC unpacket_traits< Packet >::type predux(const Packet &a)
Definition: GenericPacketMath.h:1232
EIGEN_STRONG_INLINE Packet8bf pcos< Packet8bf >(const Packet8bf &a)
Definition: AltiVec/PacketMath.h:2348
static EIGEN_DECLARE_CONST_FAST_Packet8us(ONE, 1)
EIGEN_DEFINE_FUNCTION_ALLOWING_MULTIPLE_DEFINITIONS Packet pexp_float(const Packet _x)
Definition: GenericPacketMathFunctions.h:509
EIGEN_STRONG_INLINE Packet8bf pnegate< Packet8bf >(const Packet8bf &a)
Definition: AltiVec/PacketMath.h:2298
EIGEN_STRONG_INLINE Packet16uc plset< Packet16uc >(const unsigned char &a)
Definition: AltiVec/PacketMath.h:1061
EIGEN_STRONG_INLINE Packet8bf psub< Packet8bf >(const Packet8bf &a, const Packet8bf &b)
Definition: AltiVec/PacketMath.h:2304
EIGEN_STRONG_INLINE Packet16c ploadu< Packet16c >(const signed char *from)
Definition: AltiVec/PacketMath.h:1553
EIGEN_STRONG_INLINE bfloat16 predux< Packet8bf >(const Packet8bf &a)
Definition: AltiVec/PacketMath.h:2455
EIGEN_STRONG_INLINE Packet2d pfrexp< Packet2d >(const Packet2d &a, Packet2d &exponent)
Definition: LSX/PacketMath.h:2677
EIGEN_STRONG_INLINE Packet2cf pcmp_eq(const Packet2cf &a, const Packet2cf &b)
Definition: AltiVec/Complex.h:353
EIGEN_ALWAYS_INLINE Packet8bf pload_partial< Packet8bf >(const bfloat16 *from, const Index n, const Index offset)
Definition: AltiVec/PacketMath.h:614
static Packet16uc p16uc_COUNTDOWN
Definition: AltiVec/PacketMath.h:93
EIGEN_STRONG_INLINE Packet8s pmin< Packet8s >(const Packet8s &a, const Packet8s &b)
Definition: AltiVec/PacketMath.h:1265
EIGEN_STRONG_INLINE Packet8s pset1< Packet8s >(const short int &from)
Definition: AltiVec/PacketMath.h:783
EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC Packet pldexp_generic(const Packet &a, const Packet &exponent)
Definition: GenericPacketMathFunctions.h:226
EIGEN_STRONG_INLINE Packet8bf pload< Packet8bf >(const bfloat16 *from)
Definition: AltiVec/PacketMath.h:522
EIGEN_STRONG_INLINE Packet8s pmul< Packet8s >(const Packet8s &a, const Packet8s &b)
Definition: AltiVec/PacketMath.h:1170
EIGEN_STRONG_INLINE Packet4f pmsub(const Packet4f &a, const Packet4f &b, const Packet4f &c)
Definition: LSX/PacketMath.h:819
EIGEN_DEVICE_FUNC void pstoreu(Scalar *to, const Packet &from)
Definition: GenericPacketMath.h:911
static Packet16uc p16uc_FORWARD
Definition: AltiVec/PacketMath.h:128
EIGEN_ALWAYS_INLINE Packet4i ploadu_partial< Packet4i >(const int *from, const Index n, const Index offset)
Definition: AltiVec/PacketMath.h:1604
EIGEN_STRONG_INLINE void pstoreu< int >(int *to, const Packet4i &from)
Definition: AltiVec/PacketMath.h:1760
EIGEN_STRONG_INLINE unsigned char pfirst< Packet16uc >(const Packet16uc &a)
Definition: AltiVec/PacketMath.h:1898
EIGEN_STRONG_INLINE Packet2d ptrunc< Packet2d >(const Packet2d &a)
Definition: LSX/PacketMath.h:2749
EIGEN_STRONG_INLINE Packet16uc pmin< Packet16uc >(const Packet16uc &a, const Packet16uc &b)
Definition: AltiVec/PacketMath.h:1277
EIGEN_STRONG_INLINE int pfirst< Packet4i >(const Packet4i &a)
Definition: AltiVec/PacketMath.h:1869
EIGEN_STRONG_INLINE Packet4i plset< Packet4i >(const int &a)
Definition: AltiVec/PacketMath.h:1045
EIGEN_STRONG_INLINE Packet4f Bf16ToF32Odd(const Packet8bf &bf)
Definition: AltiVec/PacketMath.h:2027
EIGEN_STRONG_INLINE __UNPACK_TYPE__(Packet) pfirst_common(const Packet &a)
Definition: AltiVec/PacketMath.h:1876
EIGEN_STRONG_INLINE float predux< Packet4f >(const Packet4f &a)
Definition: AltiVec/PacketMath.h:2435
EIGEN_STRONG_INLINE Packet8bf pfrexp< Packet8bf >(const Packet8bf &a, Packet8bf &e)
Definition: AltiVec/PacketMath.h:2332
EIGEN_ALWAYS_INLINE Packet8bf Bf16PackLow(Packet4f hi, Packet4f lo)
Definition: AltiVec/PacketMath.h:2145
EIGEN_STRONG_INLINE Packet2d pceil< Packet2d >(const Packet2d &a)
Definition: MSA/PacketMath.h:1186
EIGEN_STRONG_INLINE Packet4f pnmadd(const Packet4f &a, const Packet4f &b, const Packet4f &c)
Definition: LSX/PacketMath.h:827
EIGEN_STRONG_INLINE Packet4f ploadu< Packet4f >(const float *from)
Definition: AltiVec/PacketMath.h:1533
static Packet16uc p16uc_QUADRUPLICATE16
Definition: AltiVec/PacketMath.h:106
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE Packet16c pgather< signed char, Packet16c >(const signed char *from, Index stride)
Definition: AltiVec/PacketMath.h:879
EIGEN_STRONG_INLINE Packet4i pmul< Packet4i >(const Packet4i &a, const Packet4i &b)
Definition: AltiVec/PacketMath.h:1166
EIGEN_STRONG_INLINE Packet2d print< Packet2d >(const Packet2d &a)
Definition: LSX/PacketMath.h:2745
EIGEN_STRONG_INLINE Packet pset1_size4(const __UNPACK_TYPE__(Packet) &from)
Definition: AltiVec/PacketMath.h:755
EIGEN_ALWAYS_INLINE void pstoreu_partial< unsigned short int >(unsigned short int *to, const Packet8us &from, const Index n, const Index offset)
Definition: AltiVec/PacketMath.h:1833
static const Packet16uc p16uc_DUPLICATE16_EVEN
Definition: AltiVec/PacketMath.h:102
EIGEN_STRONG_INLINE Packet4i pand< Packet4i >(const Packet4i &a, const Packet4i &b)
Definition: AltiVec/PacketMath.h:1410
EIGEN_ALWAYS_INLINE Packet4f ploadu_partial< Packet4f >(const float *from, const Index n, const Index offset)
Definition: AltiVec/PacketMath.h:1600
EIGEN_STRONG_INLINE Packet2d pmin< Packet2d >(const Packet2d &a, const Packet2d &b)
Definition: LSX/PacketMath.h:1244
EIGEN_STRONG_INLINE Packet16uc ploaddup< Packet16uc >(const unsigned char *from)
Definition: AltiVec/PacketMath.h:1704
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE void pscatter< unsigned short int, Packet8us >(unsigned short int *to, const Packet8us &from, Index stride)
Definition: AltiVec/PacketMath.h:970
EIGEN_STRONG_INLINE Packet4f pselect(const Packet4f &mask, const Packet4f &a, const Packet4f &b)
Definition: AltiVec/PacketMath.h:1474
EIGEN_STRONG_INLINE int predux< Packet4i >(const Packet4i &a)
Definition: AltiVec/PacketMath.h:2445
static Packet2d p2d_COUNTDOWN
Definition: ZVector/PacketMath.h:109
EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC Packet pfrexp_generic(const Packet &a, Packet &exponent)
Definition: GenericPacketMathFunctions.h:184
EIGEN_STRONG_INLINE Packet4f pand< Packet4f >(const Packet4f &a, const Packet4f &b)
Definition: AltiVec/PacketMath.h:1406
EIGEN_STRONG_INLINE Packet16c ploadquad< Packet16c >(const signed char *from)
Definition: AltiVec/PacketMath.h:1714
static Packet16uc p16uc_PSET32_WODD
Definition: AltiVec/PacketMath.h:129
EIGEN_DEVICE_FUNC Packet psub(const Packet &a, const Packet &b)
Definition: GenericPacketMath.h:337
EIGEN_ALWAYS_INLINE Packet8bf pload_ignore< Packet8bf >(const bfloat16 *from)
Definition: AltiVec/PacketMath.h:548
EIGEN_STRONG_INLINE void pstoreu< short int >(short int *to, const Packet8s &from)
Definition: AltiVec/PacketMath.h:1764
EIGEN_STRONG_INLINE bfloat16 predux_min< Packet8bf >(const Packet8bf &a)
Definition: AltiVec/PacketMath.h:2609
EIGEN_ALWAYS_INLINE Packet8us pload_partial< Packet8us >(const unsigned short int *from, const Index n, const Index offset)
Definition: AltiVec/PacketMath.h:608
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE Packet4i pgather< int, Packet4i >(const int *from, Index stride)
Definition: AltiVec/PacketMath.h:858
static Packet16uc p16uc_PSET64_LO
Definition: AltiVec/PacketMath.h:141
EIGEN_ALWAYS_INLINE Packet16uc ploadu_partial< Packet16uc >(const unsigned char *from, const Index n, const Index offset)
Definition: AltiVec/PacketMath.h:1625
EIGEN_STRONG_INLINE int predux_max< Packet4i >(const Packet4i &a)
Definition: AltiVec/PacketMath.h:2684
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE void pscatter< bfloat16, Packet8bf >(bfloat16 *to, const Packet8bf &from, Index stride)
Definition: AltiVec/PacketMath.h:977
EIGEN_STRONG_INLINE Packet8us pset1< Packet8us >(const unsigned short int &from)
Definition: AltiVec/PacketMath.h:788
static Packet16uc p16uc_COMPLEX32_REV
Definition: AltiVec/PacketMath.h:148
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Packet2d pgather< double, Packet2d >(const double *from, Index stride)
Definition: LSX/PacketMath.h:1621
EIGEN_STRONG_INLINE Packet16c ploaddup< Packet16c >(const signed char *from)
Definition: AltiVec/PacketMath.h:1694
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE void pscatter< signed char, Packet16c >(signed char *to, const Packet16c &from, Index stride)
Definition: AltiVec/PacketMath.h:983
EIGEN_STRONG_INLINE unsigned short int pfirst< Packet8us >(const Packet8us &a)
Definition: AltiVec/PacketMath.h:1888
EIGEN_STRONG_INLINE Packet4i pmax< Packet4i >(const Packet4i &a, const Packet4i &b)
Definition: AltiVec/PacketMath.h:1293
static Packet16uc p16uc_QUADRUPLICATE16_HI
Definition: AltiVec/PacketMath.h:105
EIGEN_STRONG_INLINE Packet8bf ploadquad< Packet8bf >(const bfloat16 *from)
Definition: AltiVec/PacketMath.h:1689
EIGEN_STRONG_INLINE void pbroadcast4< Packet4f >(const float *a, Packet4f &a0, Packet4f &a1, Packet4f &a2, Packet4f &a3)
Definition: AltiVec/PacketMath.h:823
EIGEN_STRONG_INLINE signed char predux< Packet16c >(const Packet16c &a)
Definition: AltiVec/PacketMath.h:2510
EIGEN_DEFINE_FUNCTION_ALLOWING_MULTIPLE_DEFINITIONS Packet plog_float(const Packet _x)
Definition: GenericPacketMathFunctions.h:352
EIGEN_STRONG_INLINE unsigned short int predux_mul< Packet8us >(const Packet8us &a)
Definition: AltiVec/PacketMath.h:2547
EIGEN_STRONG_INLINE Packet16c padd< Packet16c >(const Packet16c &a, const Packet16c &b)
Definition: AltiVec/PacketMath.h:1086
static const Packet16uc p16uc_DUPLICATE16_ODD
Definition: AltiVec/PacketMath.h:103
EIGEN_STRONG_INLINE unsigned char predux_min< Packet16uc >(const Packet16uc &a)
Definition: AltiVec/PacketMath.h:2659
EIGEN_STRONG_INLINE short int predux< Packet8s >(const Packet8s &a)
Definition: AltiVec/PacketMath.h:2478
EIGEN_STRONG_INLINE void pbroadcast4_common(const __UNPACK_TYPE__(Packet) *a, Packet &a0, Packet &a1, Packet &a2, Packet &a3)
Definition: AltiVec/PacketMath.h:813
EIGEN_ALWAYS_INLINE Packet ploadu_partial_common(const __UNPACK_TYPE__(Packet) *from, const Index n, const Index offset)
Definition: AltiVec/PacketMath.h:1562
EIGEN_ALWAYS_INLINE void pstore_partial< float >(float *to, const Packet4f &from, const Index n, const Index offset)
Definition: AltiVec/PacketMath.h:715
EIGEN_STRONG_INLINE Packet2d pset1frombits< Packet2d >(uint64_t from)
Definition: LSX/PacketMath.h:513
EIGEN_STRONG_INLINE Packet4i pload< Packet4i >(const int *from)
Definition: AltiVec/PacketMath.h:497
EIGEN_ALWAYS_INLINE Packet8s ploadu_partial< Packet8s >(const short int *from, const Index n, const Index offset)
Definition: AltiVec/PacketMath.h:1608
__vector float Packet4f
Definition: AltiVec/PacketMath.h:33
EIGEN_STRONG_INLINE Packet2d psub< Packet2d >(const Packet2d &a, const Packet2d &b)
Definition: LSX/PacketMath.h:646
EIGEN_STRONG_INLINE Packet4f psub< Packet4f >(const Packet4f &a, const Packet4f &b)
Definition: AltiVec/PacketMath.h:1095
EIGEN_STRONG_INLINE Packet8s psub< Packet8s >(const Packet8s &a, const Packet8s &b)
Definition: AltiVec/PacketMath.h:1103
static Packet4f p4f_COUNTDOWN
Definition: AltiVec/PacketMath.h:87
EIGEN_DEFINE_FUNCTION_ALLOWING_MULTIPLE_DEFINITIONS Packet generic_exp2(const Packet &_x)
Definition: GenericPacketMathFunctions.h:2384
EIGEN_STRONG_INLINE Packet8bf pxor< Packet8bf >(const Packet8bf &a, const Packet8bf &b)
Definition: AltiVec/PacketMath.h:1460
EIGEN_STRONG_INLINE Packet4f plset< Packet4f >(const float &a)
Definition: AltiVec/PacketMath.h:1041
EIGEN_ALWAYS_INLINE Packet8us ploadu_partial< Packet8us >(const unsigned short int *from, const Index n, const Index offset)
Definition: AltiVec/PacketMath.h:1612
EIGEN_ALWAYS_INLINE Packet16c ploadu_partial< Packet16c >(const signed char *from, const Index n, const Index offset)
Definition: AltiVec/PacketMath.h:1621
EIGEN_STRONG_INLINE Packet8bf por< Packet8bf >(const Packet8bf &a, const Packet8bf &b)
Definition: AltiVec/PacketMath.h:1443
EIGEN_STRONG_INLINE Packet8s ploadquad< Packet8s >(const short int *from)
Definition: AltiVec/PacketMath.h:1669
EIGEN_STRONG_INLINE Packet8bf F32ToBf16(Packet4f p4f)
Definition: AltiVec/PacketMath.h:2059
EIGEN_STRONG_INLINE void pstoreu< float >(float *to, const Packet4f &from)
Definition: AltiVec/PacketMath.h:1756
EIGEN_STRONG_INLINE Packet2d pmax< Packet2d >(const Packet2d &a, const Packet2d &b)
Definition: LSX/PacketMath.h:1256
EIGEN_STRONG_INLINE Packet4f pround< Packet4f >(const Packet4f &a)
Definition: AltiVec/PacketMath.h:1479
EIGEN_STRONG_INLINE Packet4f pcmp_lt_or_nan(const Packet4f &a, const Packet4f &b)
Definition: AltiVec/PacketMath.h:1329
EIGEN_STRONG_INLINE Packet8bf ploadu< Packet8bf >(const bfloat16 *from)
Definition: AltiVec/PacketMath.h:1549
EIGEN_STRONG_INLINE Packet16c pset1< Packet16c >(const signed char &from)
Definition: AltiVec/PacketMath.h:793
EIGEN_STRONG_INLINE Packet8bf pmax< Packet8bf >(const Packet8bf &a, const Packet8bf &b)
Definition: AltiVec/PacketMath.h:2396
EIGEN_STRONG_INLINE Packet2d pround< Packet2d >(const Packet2d &a)
Definition: MSA/PacketMath.h:1206
EIGEN_STRONG_INLINE Packet8bf pset1< Packet8bf >(const bfloat16 &from)
Definition: AltiVec/PacketMath.h:808
EIGEN_STRONG_INLINE void prefetch< int >(const int *addr)
Definition: AltiVec/PacketMath.h:1858
EIGEN_STRONG_INLINE bfloat16 predux_max< Packet8bf >(const Packet8bf &a)
Definition: AltiVec/PacketMath.h:2689
EIGEN_STRONG_INLINE double pfirst< Packet2d >(const Packet2d &a)
Definition: LSX/PacketMath.h:1879
EIGEN_ALWAYS_INLINE Packet8bf Bf16PackHigh(Packet4f hi, Packet4f lo)
Definition: AltiVec/PacketMath.h:2154
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE void pscatter_partial< unsigned short int, Packet8us >(unsigned short int *to, const Packet8us &from, Index stride, const Index n)
Definition: AltiVec/PacketMath.h:1013
EIGEN_STRONG_INLINE unsigned char predux_mul< Packet16uc >(const Packet16uc &a)
Definition: AltiVec/PacketMath.h:2578
EIGEN_ALWAYS_INLINE Packet pload_partial_common(const __UNPACK_TYPE__(Packet) *from, const Index n, const Index offset)
Definition: AltiVec/PacketMath.h:553
eigen_packet_wrapper< __m128i, 7 > Packet2ul
Definition: LSX/PacketMath.h:45
EIGEN_STRONG_INLINE Packet16c pmul< Packet16c >(const Packet16c &a, const Packet16c &b)
Definition: AltiVec/PacketMath.h:1178
EIGEN_STRONG_INLINE Packet8us ploadquad< Packet8us >(const unsigned short int *from)
Definition: AltiVec/PacketMath.h:1679
EIGEN_STRONG_INLINE Packet4f print< Packet4f >(const Packet4f &a)
Definition: LSX/PacketMath.h:2711
EIGEN_STRONG_INLINE Packet2d pfloor< Packet2d >(const Packet2d &a)
Definition: MSA/PacketMath.h:1167
EIGEN_STRONG_INLINE void pbroadcast4< Packet4i >(const int *a, Packet4i &a0, Packet4i &a1, Packet4i &a2, Packet4i &a3)
Definition: AltiVec/PacketMath.h:827
EIGEN_STRONG_INLINE float predux_min< Packet4f >(const Packet4f &a)
Definition: AltiVec/PacketMath.h:2599
EIGEN_STRONG_INLINE Packet8bf psin< Packet8bf >(const Packet8bf &a)
Definition: AltiVec/PacketMath.h:2344
EIGEN_STRONG_INLINE void prefetch< double >(const double *addr)
Definition: AVX/PacketMath.h:1750
static Packet16uc p16uc_DUPLICATE32_HI
Definition: ZVector/PacketMath.h:113
EIGEN_STRONG_INLINE Packet pload_common(const __UNPACK_TYPE__(Packet) *from)
Definition: AltiVec/PacketMath.h:478
EIGEN_STRONG_INLINE Packet4f pmax< Packet4f >(const Packet4f &a, const Packet4f &b)
Definition: AltiVec/PacketMath.h:1282
static Packet16uc p16uc_TRANSPOSE64_HI
Definition: AltiVec/PacketMath.h:143
std::int64_t int64_t
Definition: Meta.h:43
Namespace containing all symbols from the Eigen library.
Definition: bench_norm.cpp:70
auto run(Kernel kernel, Args &&... args) -> decltype(kernel(args...))
Definition: gpu_test_helper.h:414
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition: Meta.h:83
const Product< Lhs, Rhs > prod(const Lhs &lhs, const Rhs &rhs)
Definition: evaluators.cpp:7
int c
Definition: calibrate.py:100
Definition: Eigen_Colamd.h:49
list x
Definition: plotDoE.py:28
t
Definition: plotPSD.py:36
Definition: BFloat16.h:101
Definition: GenericPacketMath.h:1407
Packet packet[N]
Definition: GenericPacketMath.h:1408
Definition: GenericPacketMath.h:1421
bool select[N]
Definition: GenericPacketMath.h:1422
Definition: GenericPacketMath.h:45
@ HasASin
Definition: GenericPacketMath.h:84
@ HasATanh
Definition: GenericPacketMath.h:87
@ HasRsqrt
Definition: GenericPacketMath.h:74
@ HasSin
Definition: GenericPacketMath.h:81
@ HasBlend
Definition: GenericPacketMath.h:66
@ HasErfc
Definition: GenericPacketMath.h:96
@ HasACos
Definition: GenericPacketMath.h:85
@ HasCos
Definition: GenericPacketMath.h:82
@ HasCmp
Definition: GenericPacketMath.h:69
@ HasShift
Definition: GenericPacketMath.h:50
@ HasExp
Definition: GenericPacketMath.h:75
@ HasSqrt
Definition: GenericPacketMath.h:73
@ HasErf
Definition: GenericPacketMath.h:95
@ HasLog
Definition: GenericPacketMath.h:77
@ HasTanh
Definition: GenericPacketMath.h:90
@ HasATan
Definition: GenericPacketMath.h:86
@ HasDiv
Definition: GenericPacketMath.h:71
Definition: GenericPacketMath.h:225
T m_val
Definition: GenericPacketMath.h:235
Packet8bf half
Definition: AltiVec/PacketMath.h:210
Packet8bf type
Definition: AltiVec/PacketMath.h:209
Packet4f type
Definition: AltiVec/PacketMath.h:165
Packet4f half
Definition: AltiVec/PacketMath.h:166
Packet4i type
Definition: AltiVec/PacketMath.h:247
Packet4i half
Definition: AltiVec/PacketMath.h:248
Packet8s type
Definition: AltiVec/PacketMath.h:270
Packet8s half
Definition: AltiVec/PacketMath.h:271
Packet16c type
Definition: AltiVec/PacketMath.h:306
Packet16c half
Definition: AltiVec/PacketMath.h:307
Packet16uc half
Definition: AltiVec/PacketMath.h:325
Packet16uc type
Definition: AltiVec/PacketMath.h:324
Packet8us half
Definition: AltiVec/PacketMath.h:289
Packet8us type
Definition: AltiVec/PacketMath.h:288
Definition: GenericPacketMath.h:108
T type
Definition: GenericPacketMath.h:109
@ size
Definition: GenericPacketMath.h:113
@ AlignedOnScalar
Definition: GenericPacketMath.h:114
@ Vectorizable
Definition: GenericPacketMath.h:112
T half
Definition: GenericPacketMath.h:110
@ HasSub
Definition: GenericPacketMath.h:118
@ HasMax
Definition: GenericPacketMath.h:124
@ HasNegate
Definition: GenericPacketMath.h:120
@ HasMul
Definition: GenericPacketMath.h:119
@ HasAdd
Definition: GenericPacketMath.h:117
@ HasMin
Definition: GenericPacketMath.h:123
@ HasAbs
Definition: GenericPacketMath.h:121
signed char type
Definition: AltiVec/PacketMath.h:392
Packet16c half
Definition: AltiVec/PacketMath.h:393
Packet16uc half
Definition: AltiVec/PacketMath.h:405
unsigned char type
Definition: AltiVec/PacketMath.h:404
Packet4i integer_packet
Definition: AltiVec/PacketMath.h:344
Packet4f half
Definition: AltiVec/PacketMath.h:343
float type
Definition: AltiVec/PacketMath.h:342
int type
Definition: AltiVec/PacketMath.h:355
Packet4i half
Definition: AltiVec/PacketMath.h:356
Packet8bf half
Definition: AltiVec/PacketMath.h:418
bfloat16 type
Definition: AltiVec/PacketMath.h:417
Packet8s half
Definition: AltiVec/PacketMath.h:368
short int type
Definition: AltiVec/PacketMath.h:367
unsigned short int type
Definition: AltiVec/PacketMath.h:379
Packet8us half
Definition: AltiVec/PacketMath.h:380
Definition: GenericPacketMath.h:134
numext::get_integer_by_size< sizeof(T)>::signed_type integer_packet
Definition: GenericPacketMath.h:137
T type
Definition: GenericPacketMath.h:135
T half
Definition: GenericPacketMath.h:136
@ masked_load_available
Definition: GenericPacketMath.h:142
@ size
Definition: GenericPacketMath.h:139
@ masked_store_available
Definition: GenericPacketMath.h:143
@ vectorizable
Definition: GenericPacketMath.h:141
@ alignment
Definition: GenericPacketMath.h:140
std::ofstream out("Result.txt")
void run(const string &dir_name, LinearSolver *linear_solver_pt, const unsigned nel_1d, bool mess_up_order)
Definition: two_d_poisson_compare_solvers.cc:317
Definition: ZVector/PacketMath.h:50