Mercurial > octave
diff liboctave/system/mach-info.h @ 23820:1a08d0ac510f
move union field type punning code to C (bug #51638)
* cmach-info.h, cmach-info.c: New files, extracted and adapted from
mach-info.h and mach-info.cc.
* liboctave/system/module.mk: Update.
* mach-info.cc: Include cmach-info.h.
* mach-info.h (enum float_format): Set explicit values and note that
other code must change if the values change.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 01 Aug 2017 15:38:34 -0400 |
parents | 26e19cf8e0d9 |
children | 194eb4bd202b |
line wrap: on
line diff
--- a/liboctave/system/mach-info.h Tue Aug 01 14:44:02 2017 -0400 +++ b/liboctave/system/mach-info.h Tue Aug 01 15:38:34 2017 -0400 @@ -33,9 +33,12 @@ { enum float_format { - flt_fmt_unknown, - flt_fmt_ieee_little_endian, - flt_fmt_ieee_big_endian, + // If these values change, you must also change the values + // returned by octave_get_float_format. + + flt_fmt_unknown = 0, + flt_fmt_ieee_little_endian = 1, + flt_fmt_ieee_big_endian = 2, }; float_format native_float_format (void);