Mercurial > hg > octave-nkf
diff liboctave/sun-utils.h @ 9179:5be2e6696772
use access_double and assign_double on sparc only
author | Carsten Clark <tantumquantum+gnuoctave@gmail.com> |
---|---|
date | Tue, 05 May 2009 11:27:06 -0400 |
parents | a1dbe9d80eee |
children | 16f53d29049f |
line wrap: on
line diff
--- a/liboctave/sun-utils.h +++ b/liboctave/sun-utils.h @@ -24,12 +24,12 @@ #define octave_sun_utils_h 1 // This is only needed to dereference pointers to doubles if mixing -// GCC and Sun f77/cc compiled code. See the GCC manual (where the +// GCC and Sun SPARC f77/cc compiled code. See the GCC manual (where the // function access_double() is described) and the Sun f77 manual, // which explains that doubles are not always aligned on 8 byte // boundaries. -#if defined (sun) && defined (__GNUC__) +#if defined (__sparc) && defined (__GNUC__) inline double access_double (double *unaligned_ptr)