Improve the detection of sparc
authorSylvestre Ledru <sylvestre.ledru@scilab-enterprises.com>
Mon, 2 Jul 2012 00:51:38 +0000 (02:51 +0200)
committerSylvestre Ledru <sylvestre.ledru@scilab-enterprises.com>
Mon, 2 Jul 2012 00:51:38 +0000 (02:51 +0200)
driver/others/memory.c
param.h

index 9b8863f..af9b54e 100644 (file)
@@ -1128,7 +1128,7 @@ static BLASULONG   init_lock = 0UL;
 static void _touch_memory(blas_arg_t *arg, BLASLONG *range_m, BLASLONG *range_n, 
                          void *sa, void *sb, BLASLONG pos) {
 
-#ifndef ARCH_POWER
+#if !defined(ARCH_POWER) && !defined(ARCH_SPARC)
 
   long size;
   BLASULONG buffer;
diff --git a/param.h b/param.h
index 5465c1c..c6cd354 100644 (file)
--- a/param.h
+++ b/param.h
@@ -1482,7 +1482,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 #define GEMM_THREAD gemm_thread_mn
 #endif
 
-#if defined(SPARC) && defined(V9)
+#if (defined(SPARC) && defined(V9)) || defined(__sparc_v9__)
 
 #define SNUMOPT                2
 #define DNUMOPT                2