Section 2.5: Operations on 32- and 64-bit Integers.
commitdbaddc41e2c0261e38d1ce470e7aea8ddba47edf
authorLudovic Court`es <ludovic.courtes@laas.fr>
Thu, 8 Feb 2007 16:43:25 +0000 (8 16:43 +0000)
committerLudovic Court`es <ludovic.courtes@laas.fr>
Thu, 8 Feb 2007 16:43:25 +0000 (8 16:43 +0000)
tree60c632ccd99c0b49355deb586a4f292659cb30dd
parenta99b659e7c2c33d5d8793b089624df8ca3a22dc1
Section 2.5: Operations on 32- and 64-bit Integers.

* modules/r6rs/bytevector.scm: Exported the 32/64 functions.

* src/bytevector.c (SIGNEDNESS_signed, SIGNEDNESS_unsigned, SIGNEDNESS):
  New macros.
  (BV_SIGNED_signed, BV_SIGNED_unsigned): Removed.
  (GENERIC_INTEGER_REF): Use `SIGNEDNESS ()'.
  (GENERIC_INTEGER_SET): Likewise.
  (LARGE_INTEGER_REF, LARGE_INTEGER_SET, LARGE_INTEGER_NATIVE_REF,
  LARGE_INTEGER_NATIVE_SET): New macros.
  (scm_r6rs_bytevector_*{32,64}*): New functions.

* tests/bytevector.test: Improved the 16-bit tests.  New tests.

* configure.ac: Check for `sizeof (void *)'.

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