Commits

Takafumi Arakaki  committed f8eff22

added const to `int` and `double *` too (constinloop.c)

  • Participants
  • Parent commits 79de25c

Comments (0)

Files changed (1)

File cexp/ext/src/constinloop.c

 template = """
 inline void %(method)s(
     double ** restrict x, double ** restrict a,
-    double * restrict b, double%(const)s e, int num_s, int num_n)
+    double * restrict%(const)s b, double%(const)s e,
+    int%(const)s num_s, int%(const)s num_n)
 {
   int s, n;
   for (s = 1; s < num_s; ++s){
 
 inline void with_const(
     double ** restrict x, double ** restrict a,
-    double * restrict b, double const e, int num_s, int num_n)
+    double * restrict const b, double const e,
+    int const num_s, int const num_n)
 {
   int s, n;
   for (s = 1; s < num_s; ++s){
 
 inline void without_const(
     double ** restrict x, double ** restrict a,
-    double * restrict b, double e, int num_s, int num_n)
+    double * restrict b, double e,
+    int num_s, int num_n)
 {
   int s, n;
   for (s = 1; s < num_s; ++s){