From: Paul Eggert Date: Fri, 27 Sep 2024 03:22:06 +0000 (-0700) Subject: factor: simplify table count X-Git-Tag: v9.6~149 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=335f6fa2ec578986b840fa668a9daad7878455a3;p=thirdparty%2Fcoreutils.git factor: simplify table count * src/factor.c (PRIMES_PTAB_ENTRIES): Simplify. --- diff --git a/src/factor.c b/src/factor.c index 9b90dbab0d..4bb4d4a53a 100644 --- a/src/factor.c +++ b/src/factor.c @@ -637,8 +637,7 @@ static const unsigned char primes_diff[] = { }; #undef P -#define PRIMES_PTAB_ENTRIES \ - (sizeof (primes_diff) / sizeof (primes_diff[0]) - 8 + 1) +#define PRIMES_PTAB_ENTRIES (ARRAY_CARDINALITY (primes_diff) - 8 + 1) #define P(a,b,c,d) b, static const unsigned char primes_diff8[] = {