]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
factor: remove SINGLE_WORKS
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 10 Jul 2025 05:26:39 +0000 (22:26 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 10 Jul 2025 05:27:29 +0000 (22:27 -0700)
* src/factor.c (SINGLE_WORKS): Remove, and remove its use,
as the buggy code that it is referring to has been removed.

src/factor.c

index 548583a3fb4f09d40de30c24e96fda84e1781df3..44c0deb6a50181f2a549a4c66576c488220600d8 100644 (file)
@@ -1886,15 +1886,8 @@ print_factors (char const *input)
 
   switch (err)
     {
-    case LONGINT_OK:;
-      /* Use single-precision code only when W_TYPE_SIZE is 32 or 64,
-         as <https://bugs.gnu.org/78476> suggests that it fails when
-         W_TYPE_SIZE is 128 and the code has not been well tested with
-         other values.  FIXME: Either remove the single-precision
-         code, or fix its assumptions about W_TYPE_SIZE.  */
-      enum { SINGLE_WORKS = W_TYPE_SIZE == 32 || W_TYPE_SIZE == 64 };
-
-      if (SINGLE_WORKS && hi (u) >> (W_TYPE_SIZE - 1) == 0)
+    case LONGINT_OK:
+      if (hi (u) >> (W_TYPE_SIZE - 1) == 0)
         {
           devmsg ("[using single-precision arithmetic] ");
           print_factors_single (u);