mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
factor: simplify add_ssaaaa default
* src/factor.c (add_ssaaaa): Simplify default implementation.
This commit is contained in:
1 parent
7cbc6c55cc
commit
a9a8e0db47
1 file changed
+1
-5
+1
-5
@@ -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. */
|
||||
|
||||
Reference in new issue
Block a user