Changeset: 7cd2579e4764 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/7cd2579e4764
Modified Files:
        monetdb5/modules/kernel/vss.c
Branch: nested
Log Message:

use GCC_Pragma to make it compile with clang and other non gcc's


diffs (39 lines):

diff --git a/monetdb5/modules/kernel/vss.c b/monetdb5/modules/kernel/vss.c
--- a/monetdb5/modules/kernel/vss.c
+++ b/monetdb5/modules/kernel/vss.c
@@ -316,7 +316,7 @@ metric_l1_##NAME(MalStkPtr stk, InstrPtr
 {                                                                             \
     R dist = 0;                                                               \
     /* SIMD optimization hints */                                             \
-    _Pragma("GCC ivdep")                                                      \
+    GCC_Pragma("GCC ivdep")                                                    
  \
     for (size_t i=0; i < dim; i++) {                                          \
         T ai = *getArgReference_##T(stk, pci, 1 + i);                         \
         T bi = *getArgReference_##T(stk, pci, 1 + dim + i);                   \
@@ -344,7 +344,7 @@ metric_ip_##NAME(MalStkPtr stk, InstrPtr
 {                                                                              
 \
     R ab = 0;                                                                  
 \
     /* SIMD optimization hints */                                              
 \
-    _Pragma("GCC ivdep")                                                       
 \
+    GCC_Pragma("GCC ivdep")                                                    
    \
     for (size_t i=0; i < dim; i++) {                                           
 \
         T ai = *getArgReference_##T(stk, pci, 1 + i);                          
 \
         T bi = *getArgReference_##T(stk, pci, 1 + dim + i);                    
 \
@@ -371,7 +371,7 @@ metric_l2sq_##NAME(MalStkPtr stk, InstrP
 {                                                                              
 \
     R dist = 0;                                                                
 \
     /* SIMD optimization hints */                                              
 \
-    _Pragma("GCC ivdep")                                                       
 \
+    GCC_Pragma("GCC ivdep")                                                    
    \
     for (size_t i=0; i < dim; i++) {                                           
 \
         T ai = *getArgReference_##T(stk, pci, 1 + i);                          
 \
         T bi = *getArgReference_##T(stk, pci, 1 + dim + i);                    
 \
@@ -403,7 +403,7 @@ metric_cos_##NAME(MalStkPtr stk, InstrPt
     R ab = 0, a2 = 0, b2 = 0;                                                  
\
                                                                                
\
     /* SIMD optimization hints */                                              
\
-    _Pragma("GCC ivdep")                                                       
\
+    GCC_Pragma("GCC ivdep")                                                    
   \
     for (size_t i = 0; i < dim; i++) {                                         
\
         T ai = *getArgReference_##T(stk, pci, 1 + i);                          
 \
         T bi = *getArgReference_##T(stk, pci, 1 + dim + i);                    
 \
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to