diff options
author | Andy Wingo <wingo@pobox.com> | 2013-02-18 16:38:24 +0100 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2013-02-18 16:38:24 +0100 |
commit | 336c921146957a7416bc1717289a01f1b556ad82 (patch) | |
tree | a06277914da095c42005622e45997d5ae8b3b3a4 /lib/sys_socket.c | |
parent | 18cd9aff9429c99ffae34448507f9b468e20e06f (diff) | |
download | guile-336c921146957a7416bc1717289a01f1b556ad82.tar.gz |
optimize access to arrays of rank 1 or 2
* libguile/array-handle.c (scm_array_handle_pos_1):
(scm_array_handle_pos_2): New functions.
* libguile/generalized-arrays.c (scm_c_array_ref_1, scm_c_array_ref_2):
(scm_c_array_set_1_x, scm_c_array_set_2_x): New functions.
(scm_i_array_ref, scm_i_array_set_x): New subr bindings for array-ref
and array-set! that avoid consing for arrays of rank 1 or 2.
* test-suite/tests/arrays.test ("array-set!"): Fix expected exception
for wrong number of indices.
Diffstat (limited to 'lib/sys_socket.c')
0 files changed, 0 insertions, 0 deletions