]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
factor: simplify add_ssaaaa default
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 1 Jul 2025 10:34:21 +0000 (03:34 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 10 Jul 2025 00:12:40 +0000 (17:12 -0700)
* src/factor.c (add_ssaaaa): Simplify default implementation.

src/factor.c

index 8d1a6fc5e54cad1255f76d2cf0b33ce72922dc38..6fd98bd65b192e7a4f104ce08a156e2bc4c40ee4 100644 (file)
@@ -380,11 +380,7 @@ static void factor_up (struct factors *, mp_limb_t, mp_limb_t,
 /* Set (sh,sl) = (ah,al) + (bh,bl).  Overflow wraps around.  */
 #if !defined add_ssaaaa
 # define add_ssaaaa(sh, sl, ah, al, bh, bl)                             \
-  do {                                                                  \
-    mp_limb_t _add_x;                                                  \
-    (sh) = (ah) + (bh) + ckd_add (&_add_x, al, bl);                    \
-    (sl) = _add_x;                                                      \
-  } while (0)
+   ((sh) = (ah) + (bh) + ckd_add (&(sl), al, bl))
 #endif
 
 /* Set (rh,rl) = (ah,al) >> cnt, where 0 < cnt < W_TYPE_SIZE.  */