bytevector: IEEE754 unaligned access fixes.
commit5d57ccfc53ef0fbda6cb5244e320880a928d8719
authorLudovic Court`es <ludovic.courtes@laas.fr>
Fri, 3 Aug 2007 09:12:25 +0000 (3 09:12 +0000)
committerLudovic Court`es <ludovic.courtes@laas.fr>
Fri, 3 Aug 2007 09:12:25 +0000 (3 09:12 +0000)
tree8dc65a8863a904b5ae08d6056a3d0fe77605a7ea
parent9c9c1cd901853b9b838d61fb09c8bccaabb84340
bytevector: IEEE754 unaligned access fixes.

* src/bytevector.c (IEEE754_REF): Use `memcpy' rather than raw
  dereferences to avoid unaligned accesses and "bus errors" on SPARC.
  (IEEE754_NATIVE_REF): Likewise.
  (IEEE754_SET): Likewise.
  (IEEE754_NATIVE_SET): Likewise.

* tests/bytevector.test (2.6 Operations on IEEE-754 Numbers)
  [bytevector-ieee-single-{ref,set!} [unaligned]]: New.

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