projects
/
platform
/
upstream
/
openblas.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
21072e5
)
Add ifdefs around call to altivec microkernel
author
Martin Kroeker
<martin@ruby.chemie.uni-freiburg.de>
Thu, 23 Jul 2020 18:30:42 +0000
(18:30 +0000)
committer
GitHub
<noreply@github.com>
Thu, 23 Jul 2020 18:30:42 +0000
(18:30 +0000)
kernel/power/crot.c
patch
|
blob
|
history
diff --git
a/kernel/power/crot.c
b/kernel/power/crot.c
index
fb4860d
..
84ba5d9
100644
(file)
--- a/
kernel/power/crot.c
+++ b/
kernel/power/crot.c
@@
-185,7
+185,7
@@
int CNAME(BLASLONG n, FLOAT *x, BLASLONG inc_x, FLOAT *y, BLASLONG inc_y, FLOAT
\r
if ( (inc_x == 1) && (inc_y == 1) )
\r
{
\r
-
\r
+#if defined(__VEC__) || defined(__ALTIVEC__)
\r
BLASLONG n1 = n & -8;
\r
if ( n1 > 0 )
\r
{
\r
@@
-193,7
+193,7
@@
int CNAME(BLASLONG n, FLOAT *x, BLASLONG inc_x, FLOAT *y, BLASLONG inc_y, FLOAT
i=n1;
\r
ix=2*n1;
\r
}
\r
-
\r
+#endif
\r
while(i < n)
\r
{
\r
temp[0] = c*x[ix] + s*y[ix] ;
\r