/usr/include/atlas/atlas_ssyr.h is in libatlas-dev 3.10.2-9.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 | /*
* This file generated on line 432 of /build/atlas-O4mcM_/atlas-3.10.2/build/atlas-base/../..//tune/blas/ger/r1hgen.c
*/
#ifndef ATLAS_SSYR1_H
#define ATLAS_SSYR1_H
#include "atlas_sr1.h"
#define ATL_s1U_NU 4
#define ATL_s1L_NU 4
#define ATL_GetPartS1 ATL_GetPartR1
#define ATL_MIN_RESTRICTED_M 2
#define ATL_URGERK ATL_sgerk__900001
static void ATL_GENGERK(ATL_CINT M, ATL_CINT N, const TYPE *X,
const TYPE *Y, TYPE *A, ATL_CINT lda)
{
int nu, minM, minN, i, FNU, aX, aX2A, aY;
ATL_INT CEL;
ATL_r1kern_t gerk;
gerk = ATL_GetR1Kern(M, N, A, lda, &i, &nu, &minM, &minN,
&aX, &aX2A, &aY, &FNU, &CEL);
if (aX2A)
aX = ((size_t)A) % ATL_Cachelen == ((size_t)X) % ATL_Cachelen;
else
aX = (aX) ? (((size_t)X)/aX)*aX == (size_t)X : 1;
aY = (aY) ? (((size_t)Y)/aY)*aY == (size_t)Y : 1;
if (M >= minM && N >= minN && aX && aY)
{
if (FNU)
{
ATL_CINT n = (N/nu)*nu, nr=N-n;
gerk(M, n, X, Y, A, lda);
if (nr)
ATL_sgerk_axpy(M, nr, ATL_rone, X, 1, Y+n, 1, A+n*lda, lda);
} /* end if (FNU) */
else
gerk(M, N, X, Y, A, lda);
} /* end if can call optimized kernel */
else
ATL_sgerk_Mlt16(M, N, ATL_rone, X, 1, Y, 1, A, lda);
}
#define ATL_SYR1U_nu(A_, lda_, x_, y_) \
{ \
TYPE *aa=(A_); \
ATL_CINT lda0_ = 0, lda1_ = lda0_+(lda_), lda2_ = lda1_+(lda_), lda3_ = lda2_+(lda_); \
const TYPE x0_=*(x_), x1_=(x_)[1], x2_=(x_)[2], x3_=(x_)[3]; \
const TYPE y0_=*(y_), y1_=(y_)[1], y2_=(y_)[2], y3_=(y_)[3]; \
aa[lda0_+0] += x0_*y0_; \
aa[lda1_+0] += x0_*y1_; \
aa[lda1_+1] += x1_*y1_; \
aa[lda2_+0] += x0_*y2_; \
aa[lda2_+1] += x1_*y2_; \
aa[lda2_+2] += x2_*y2_; \
aa[lda3_+0] += x0_*y3_; \
aa[lda3_+1] += x1_*y3_; \
aa[lda3_+2] += x2_*y3_; \
aa[lda3_+3] += x3_*y3_; \
}
#define ATL_SYR1L_nu(A_, lda_, x_, y_) \
{ \
TYPE *aa=(A_); \
ATL_CINT lda0_ = 0, lda1_ = lda0_+(lda_), lda2_ = lda1_+(lda_), lda3_ = lda2_+(lda_); \
const TYPE x0_=*(x_), x1_=(x_)[1], x2_=(x_)[2], x3_=(x_)[3]; \
const TYPE y0_=*(y_), y1_=(y_)[1], y2_=(y_)[2], y3_=(y_)[3]; \
aa[lda0_+0] += x0_*y0_; \
aa[lda0_+1] += x1_*y0_; \
aa[lda0_+2] += x2_*y0_; \
aa[lda0_+3] += x3_*y0_; \
aa[lda1_+1] += x1_*y1_; \
aa[lda1_+2] += x2_*y1_; \
aa[lda1_+3] += x3_*y1_; \
aa[lda2_+2] += x2_*y2_; \
aa[lda2_+3] += x3_*y2_; \
aa[lda3_+3] += x3_*y3_; \
}
#endif
|