Commits

Takafumi Arakaki  committed 0388781

use const in rnn_opt{3,4}.c

  • Participants
  • Parent commits 907a4c1

Comments (0)

Files changed (2)

 #define Xc(i,j)  self->xc[ self->num_c*(i) + (j) ]
 
 static inline double
-ddot(double * restrict array1, double * restrict array2, int num)
+ddot(const double * restrict array1, const double * restrict array2,
+     const int num)
 {
   int i;
   double val=0;
 #define VXc(i)   self->xc[i]
 
 static inline double
-ddot(double * restrict array1, double * restrict array2, int num)
+ddot(const double * restrict array1, const double * restrict array2,
+     const int num)
 {
   int i;
   double val=0;