commit
7f11e33e8d
|
@ -56,11 +56,11 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
#if !defined(XCONJ)
|
#if !defined(XCONJ)
|
||||||
#define OP0 +=
|
#define OP0 +=
|
||||||
#define OP1 -=
|
#define OP1 -=
|
||||||
#define OP2 -=
|
#define OP2 +=
|
||||||
#else
|
#else
|
||||||
#define OP0 -=
|
#define OP0 -=
|
||||||
#define OP1 -=
|
#define OP1 -=
|
||||||
#define OP2 +=
|
#define OP2 -=
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -32,7 +32,8 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
#undef OP1
|
#undef OP1
|
||||||
#undef OP2
|
#undef OP2
|
||||||
|
|
||||||
#if ( !defined(CONJ) && !defined(XCONJ) ) || ( defined(CONJ) && defined(XCONJ) )
|
#if !defined(CONJ)
|
||||||
|
#if !defined(XCONJ)
|
||||||
#define OP0 -=
|
#define OP0 -=
|
||||||
#define OP1 +=
|
#define OP1 +=
|
||||||
#define OP2 +=
|
#define OP2 +=
|
||||||
|
@ -41,6 +42,17 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
#define OP1 +=
|
#define OP1 +=
|
||||||
#define OP2 -=
|
#define OP2 -=
|
||||||
#endif
|
#endif
|
||||||
|
#else
|
||||||
|
#if !defined(XCONJ)
|
||||||
|
#define OP0 +=
|
||||||
|
#define OP1 -=
|
||||||
|
#define OP2 +=
|
||||||
|
#else
|
||||||
|
#define OP0 -=
|
||||||
|
#define OP1 -=
|
||||||
|
#define OP2 -=
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#define CGEMV_T_8x4() \
|
#define CGEMV_T_8x4() \
|
||||||
LD_SP4(pa0 + k, 4, t0, t1, t2, t3); \
|
LD_SP4(pa0 + k, 4, t0, t1, t2, t3); \
|
||||||
|
|
|
@ -184,7 +184,7 @@ int CNAME(BLASLONG n, BLASLONG dummy0, BLASLONG dummy1, FLOAT dummy3,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else if ((inc_x != 0) && (inc_y != 0))
|
||||||
{
|
{
|
||||||
for (i = (n >> 3); i--;)
|
for (i = (n >> 3); i--;)
|
||||||
{
|
{
|
||||||
|
@ -248,6 +248,32 @@ int CNAME(BLASLONG n, BLASLONG dummy0, BLASLONG dummy1, FLOAT dummy3,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (inc_x == inc_y)
|
||||||
|
{
|
||||||
|
if (n & 1)
|
||||||
|
{
|
||||||
|
x0 = *srcx;
|
||||||
|
*srcx = *srcy;
|
||||||
|
*srcy = x0;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
return (0);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
BLASLONG ix = 0, iy = 0;
|
||||||
|
while (i < n)
|
||||||
|
{
|
||||||
|
x0 = srcx[ix];
|
||||||
|
srcx[ix] = srcy[iy];
|
||||||
|
srcy[iy] = x0;
|
||||||
|
ix += inc_x;
|
||||||
|
iy += inc_y;
|
||||||
|
i++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
|
|
@ -198,7 +198,7 @@ int CNAME(BLASLONG n, BLASLONG dummy0, BLASLONG dummy1, FLOAT dummy3,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else if ((inc_x != 0) && (inc_y != 0))
|
||||||
{
|
{
|
||||||
for (i = (n >> 3); i--;)
|
for (i = (n >> 3); i--;)
|
||||||
{
|
{
|
||||||
|
@ -262,6 +262,33 @@ int CNAME(BLASLONG n, BLASLONG dummy0, BLASLONG dummy1, FLOAT dummy3,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (inc_x == inc_y)
|
||||||
|
{
|
||||||
|
if (n & 1)
|
||||||
|
{
|
||||||
|
x0 = *srcx;
|
||||||
|
*srcx = *srcy;
|
||||||
|
*srcy = x0;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
return (0);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
BLASLONG ix = 0, iy = 0;
|
||||||
|
while (i < n)
|
||||||
|
{
|
||||||
|
x0 = srcx[ix];
|
||||||
|
srcx[ix] = srcy[iy];
|
||||||
|
srcy[iy] = x0;
|
||||||
|
ix += inc_x;
|
||||||
|
iy += inc_y;
|
||||||
|
i++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
|
|
@ -56,11 +56,11 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
#if !defined(XCONJ)
|
#if !defined(XCONJ)
|
||||||
#define OP0 +=
|
#define OP0 +=
|
||||||
#define OP1 -=
|
#define OP1 -=
|
||||||
#define OP2 -=
|
#define OP2 +=
|
||||||
#else
|
#else
|
||||||
#define OP0 -=
|
#define OP0 -=
|
||||||
#define OP1 -=
|
#define OP1 -=
|
||||||
#define OP2 +=
|
#define OP2 -=
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,8 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
#undef OP3
|
#undef OP3
|
||||||
#undef OP4
|
#undef OP4
|
||||||
|
|
||||||
#if ( !defined(CONJ) && !defined(XCONJ) ) || ( defined(CONJ) && defined(XCONJ) )
|
#if !defined(CONJ)
|
||||||
|
#if !defined(XCONJ)
|
||||||
#define OP0 -=
|
#define OP0 -=
|
||||||
#define OP1 +=
|
#define OP1 +=
|
||||||
#define OP2 +=
|
#define OP2 +=
|
||||||
|
@ -43,6 +44,17 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
#define OP1 +=
|
#define OP1 +=
|
||||||
#define OP2 -=
|
#define OP2 -=
|
||||||
#endif
|
#endif
|
||||||
|
#else
|
||||||
|
#if !defined(XCONJ)
|
||||||
|
#define OP0 +=
|
||||||
|
#define OP1 -=
|
||||||
|
#define OP2 +=
|
||||||
|
#else
|
||||||
|
#define OP0 -=
|
||||||
|
#define OP1 -=
|
||||||
|
#define OP2 -=
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#define ZGEMV_T_8x1() \
|
#define ZGEMV_T_8x1() \
|
||||||
LD_DP4(pa0, 2, t0, t1, t2, t3); \
|
LD_DP4(pa0, 2, t0, t1, t2, t3); \
|
||||||
|
|
Loading…
Reference in New Issue