Add ifdefs around call to altivec microkernel
authorMartin Kroeker <martin@ruby.chemie.uni-freiburg.de>
Thu, 23 Jul 2020 18:30:42 +0000 (18:30 +0000)
committerGitHub <noreply@github.com>
Thu, 23 Jul 2020 18:30:42 +0000 (18:30 +0000)
kernel/power/crot.c

index fb4860d..84ba5d9 100644 (file)
@@ -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