Remove double indirection in array-fill!
authorDaniel Llorens <daniel.llorens@bluewin.ch>
Wed, 3 Apr 2013 20:40:40 +0000 (22:40 +0200)
committerLudovic Courtès <ludo@gnu.org>
Fri, 5 Apr 2013 20:54:14 +0000 (22:54 +0200)
commitab1ca17986ee758b7ec4088bf3f6a596872b1677
tree464b09e7c11c36e36b5a1eeac53af83ba9164ea5
parentb5159a471a1acbe1ad08ee5365d123912fcc607d
Remove double indirection in array-fill!

* libguile/array-map.c: new function rafill, like scm_array_fill_int,
  but factors GVSET out of the loop. Use it in scm_array_fill_x instead of
  scm_array_fill_int.
* test-suite/tests/arrays.test: add test for array-fill! with stride != 1.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
libguile/array-map.c
test-suite/tests/arrays.test