diff oct-conf-post.in.h @ 18005:79653c5b6147

make int64 ops implemented with long double work again (bug #40607) * oct-conf-post.in.h : Use SIZEOF_LONG_DOUBLE < 16 in condition used to define OCTAVE_ENSURE_LONG_DOUBLE_OPERATIONS_ARE_NOT_TRUNCATED. * oct-inttypes.h, oct-inttypes.cc: Return octave_int64 or octave_uint64 from external long double operation functions instead of returning long double.
author John W. Eaton <jwe@octave.org>
date Mon, 25 Nov 2013 16:24:47 -0500
parents ac9fd5010620
children
line wrap: on
line diff
--- a/oct-conf-post.in.h	Mon Nov 25 20:39:44 2013 +0100
+++ b/oct-conf-post.in.h	Mon Nov 25 16:24:47 2013 -0500
@@ -108,7 +108,7 @@
    FIXME: Maybe substitute this by a more precise check in the future?  */
 #if (SIZEOF_LONG_DOUBLE >= 10) && defined (HAVE_ROUNDL)
 # define OCTAVE_INT_USE_LONG_DOUBLE
-# if (SIZEOF_LONG_DOUBLE == 10 \
+# if (SIZEOF_LONG_DOUBLE < 16 \
       && (defined __i386__ || defined __x86_64__) && defined __GNUC__)
 #define OCTAVE_ENSURE_LONG_DOUBLE_OPERATIONS_ARE_NOT_TRUNCATED 1
 # endif