Changeset: 087c9de4d6bf for MonetDB URL: https://dev.monetdb.org/hg/MonetDB/rev/087c9de4d6bf Modified Files: gdk/gdk_calc.c Branch: Jan2022 Log Message:
Just use roundl to round long doubles, don't use llroundl. Using llroundl gives different results on different architectures (in particular, ppc64be vs. x86_64). diffs (18 lines): diff --git a/gdk/gdk_calc.c b/gdk/gdk_calc.c --- a/gdk/gdk_calc.c +++ b/gdk/gdk_calc.c @@ -6756,14 +6756,7 @@ typedef long double ldouble; #ifdef TRUNCATE_NUMBERS #define rounddbl(x) (x) #else -#ifdef HAVE_HGE -/* can't round to hge via lng since we might loose significant bits, so - * just keep it long double */ #define rounddbl(x) roundl(x) -#else -/* round long double to long long int in one go */ -#define rounddbl(x) llroundl(x) -#endif #endif #endif _______________________________________________ checkin-list mailing list -- checkin-list@monetdb.org To unsubscribe send an email to checkin-list-le...@monetdb.org