Templatized the IEEE-754 double-precision code.
commitc430f2a890f3d30b9704052e7f1b9faa17e74bae
authorLudovic Court`es <ludovic.courtes@laas.fr>
Tue, 20 Feb 2007 15:07:48 +0000 (20 15:07 +0000)
committerLudovic Court`es <ludovic.courtes@laas.fr>
Tue, 20 Feb 2007 15:07:48 +0000 (20 15:07 +0000)
tree6ab360082fdce60fca88e6239920aef923e3c082
parentd0b214c4a5e41e9cdf30d93f6d4929aa3b74f5f8
Templatized the IEEE-754 double-precision code.

* src/Makefile.am (noinst_HEADERS): Reflect renaming of
  `ieee754-double.h' to `ieee-754.h'.

* src/bytevector.c: Include "ieee-754.h".
  (float_to_foreign_endianness, float_from_foreign_endianness): New.
  (IEEE754_UNION, IEEE754_TO_SCM, IEEE754_FROM_SCM,
  IEEE754_FROM_FOREIGN_ENDIANNESS, IEEE754_TO_FOREIGN_ENDIANNESS): New.
  (DOUBLE_*): Renamed to `IEEE754_*'.  Take a TYPE parameter.  Updated
  users.

* src/ieee-754.h (scm_r6rs_ieee754_float): New union.
  (ieee754_double): Renamed to `scm_r6rs_ieee754_double'.

git-archimport-id: lcourtes@laas.fr--2006-libre/guile-r6rs-libs--devo--0--patch-20
ChangeLog
src/Makefile.am
src/bytevector.c
src/ieee-754.h [moved from src/ieee754-double.h with 77% similarity]