From 72b6907085050740b6b8d0283b5617e6fcd742b8 Mon Sep 17 00:00:00 2001 From: jodavies Date: Wed, 6 May 2026 20:12:47 +0100 Subject: [PATCH] perf: properly check for float mode in PutOut AC.DefaultPrecision is non-zero, even if we have not enabled floating point coefficients. Check for an allocated aux_ instead, to avoid searching terms for the floatstop unnecessarily. --- sources/sort.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/sort.c b/sources/sort.c index 1005e17c..12363562 100644 --- a/sources/sort.c +++ b/sources/sort.c @@ -1604,7 +1604,7 @@ WORD PutOut(PHEAD WORD *term, POSITION *position, FILEHANDLE *fi, WORD ncomp) } } #ifdef WITHFLOAT - else if ( AC.DefaultPrecision ) { + else if ( AT.aux_ != 0 ) { WORD *floatstop, *sa; sa = p + i; sa -= ABS(sa[-1]);