summaryrefslogtreecommitdiff
path: root/st.c
diff options
context:
space:
mode:
Diffstat (limited to 'st.c')
-rw-r--r--st.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/st.c b/st.c
index a48d11e9aa..a4bee22c61 100644
--- a/st.c
+++ b/st.c
@@ -66,10 +66,9 @@ static void rehash();
#define MINSIZE 8
/*
-Table of irreducible polynomials to efficiently cycle through
-GF(2^n)-{0}, 2<=n<=30.
+Table of prime numbers 2^n+a, 2<=n<=30.
*/
-static long polys[] = {
+static long primes[] = {
8 + 3,
16 + 3,
32 + 5,
@@ -108,10 +107,10 @@ new_size(size)
int i, newsize;
for (i = 0, newsize = MINSIZE;
- i < sizeof(polys)/sizeof(polys[0]);
+ i < sizeof(primes)/sizeof(primes[0]);
i++, newsize <<= 1)
{
- if (newsize > size) return polys[i];
+ if (newsize > size) return primes[i];
}
/* Ran out of polynomials */
return -1; /* should raise exception */