Section 2.4: Operations on 16-bit Integers.
commita99b659e7c2c33d5d8793b089624df8ca3a22dc1
authorLudovic Court`es <ludovic.courtes@laas.fr>
Thu, 8 Feb 2007 14:49:11 +0000 (8 14:49 +0000)
committerLudovic Court`es <ludovic.courtes@laas.fr>
Thu, 8 Feb 2007 14:49:11 +0000 (8 14:49 +0000)
tree58a1df320dd2ee1f5bd7e2e5b1f3942b91eef26f
parent91ab45a01ca51b1dc64af69a9486311075da459a
Section 2.4: Operations on 16-bit Integers.

* modules/r6rs/bytevector.scm: Export the s16/u16 procedures.

* src/bytevector.c (INT_TYPE, INT_SWAP, INT_VALID_P): New macros.
  (INTEGER_ACCESSOR_PROLOGUE, INTEGER_REF, INTEGER_NATIVE_REF,
  INTEGER_SET, INTEGER_NATIVE_SET): New macros.
  (OCTET_ACCESSOR_PROLOGUE): Removed.
  (scm_r6rs_bytevector_{u8,s8}_{ref,set_x}): Use the new macros.
  (GENERIC_INTEGER_ACCESSOR_PROLOGUE, GENERIC_INTEGER_REF,
  GENERIC_INTEGER_SET): New name for the macros previously same-named but
  without `GENERIC_'.
  (scm_r6rs_bytevector_{u16,s16}_{ref,set_x}): New.

* tests/bytevector.test: New tests.

git-archimport-id: lcourtes@laas.fr--2006-libre/guile-r6rs-libs--devo--0--patch-4
ChangeLog
modules/r6rs/bytevector.scm
src/bytevector.c
tests/bytevector.test