17{
18 char TA;
19#ifdef F77_CHAR
21#else
22 #define F77_TA &TA
23#endif
24#ifdef F77_INT
26#else
27 #define F77_M M
28 #define F77_N N
29 #define F77_lda lda
30 #define F77_incX incx
31 #define F77_incY incY
32#endif
33
35 const float *xx= (const float *)X;
36 float ALPHA[2],BETA[2];
38 float *x=(float *)X, *y=(float *)Y, *st=0, *tx=0;
39 const float *stx = x;
43
45
47 {
51 else
52 {
56 return;
57 }
58 #ifdef F77_CHAR
60 #endif
63 }
65 {
67
71 {
72 ALPHA[0]= *( (const float *) alpha );
73 ALPHA[1]= -( *( (const float *) alpha+1) );
74 BETA[0]= *( (const float *) beta );
75 BETA[1]= -( *( (const float *) beta+1 ) );
76 TA = 'N';
77 if (M > 0)
78 {
79 n = M << 1;
80 x = malloc(n*sizeof(float));
81 tx = x;
82 if( incX > 0 ) {
83 i = incX << 1 ;
84 tincx = 2;
85 st= x+n;
86 } else {
87 i = incX *(-2);
88 tincx = -2;
89 st = x-2;
90 x +=(n-2);
91 }
92
93 do
94 {
95 *x = *xx;
96 x[1] = -xx[1];
97 x += tincx ;
98 xx += i;
99 }
100 while (x != st);
101 x=tx;
102
104
105 if(incY > 0)
106 tincY = incY;
107 else
108 tincY = -incY;
109
110 y++;
111
112 if (N > 0)
113 {
114 i = tincY << 1;
115 n = i * N ;
116 st = y + n;
117 do {
118 *y = -(*y);
119 y += i;
120 } while(y != st);
121 y -= n;
122 }
123 stx = x;
124 }
125 else stx = (const float *)X;
126 }
127 else
128 {
132 return;
133 }
134 #ifdef F77_CHAR
136 #endif
140 else
143
145 {
146 if (x != (const float *)X) free(x);
147 if (N > 0)
148 {
149 do
150 {
151 *y = -(*y);
152 y += i;
153 }
154 while (y != st);
155 }
156 }
157 }
161 return;
162}
void cblas_xerbla(CBLAS_INT p, const char *rout, const char *form,...)