summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorLoic Dachary <loic@dachary.org>2014-03-06 15:11:24 +0100
committerLoic Dachary <loic@dachary.org>2014-03-06 17:48:38 +0100
commit191b86b5d25a42e747e1bd7733de6c532c9df45c (patch)
treed8ed427c84ddc052e43045cec4fbff3ff1fcf5bb /test
parent59cb51046bf9a6b24e9abd622ea33fbaf7bb80e7 (diff)
downloadgf-complete-191b86b5d25a42e747e1bd7733de6c532c9df45c.tar.gz
remove unused variables from #if SSE blocs
Signed-off-by: Loic Dachary <loic@dachary.org>
Diffstat (limited to 'test')
-rw-r--r--test/gf_unit.c16
1 files changed, 3 insertions, 13 deletions
diff --git a/test/gf_unit.c b/test/gf_unit.c
index 22d4905..3384d8e 100644
--- a/test/gf_unit.c
+++ b/test/gf_unit.c
@@ -70,18 +70,15 @@ int main(int argc, char **argv)
{
signal(SIGSEGV, SigHandler);
- int w, i, verbose, single, region, tested, top;
+ int w, i, verbose, single, region, top;
int s_start, d_start, bytes, xor, alignment_test;
gf_t gf, gf_def;
time_t t0;
gf_internal_t *h;
- gf_general_t *a, *b, *c, *d, *ai, *bi;
- uint8_t a8, b8, c8, *mult4, *div4, *mult8, *div8;
- uint16_t a16, b16, c16, d16, *log16, *alog16;
- char as[50], bs[50], cs[50], ds[50], ais[50], bis[50];
- uint32_t mask;
+ gf_general_t *a, *b, *c, *d;
uint8_t a8, b8, c8, *mult4 = NULL, *mult8 = NULL;
uint16_t a16, b16, c16, *log16 = NULL, *alog16 = NULL;
+ char as[50], bs[50], cs[50], ds[50];
uint32_t mask = 0;
char *ra, *rb, *rc, *rd, *target;
int align;
@@ -118,8 +115,6 @@ int main(int argc, char **argv)
b = (gf_general_t *) malloc(sizeof(gf_general_t));
c = (gf_general_t *) malloc(sizeof(gf_general_t));
d = (gf_general_t *) malloc(sizeof(gf_general_t));
- ai = (gf_general_t *) malloc(sizeof(gf_general_t));
- bi = (gf_general_t *) malloc(sizeof(gf_general_t));
//15 bytes extra to make sure it's 16byte aligned
ra = (char *) malloc(sizeof(char)*REGION_SIZE+15);
@@ -148,12 +143,10 @@ int main(int argc, char **argv)
problem("No default for this value of w");
if (w == 4) {
mult4 = gf_w4_get_mult_table(&gf);
- div4 = gf_w4_get_div_table(&gf);
}
if (w == 8) {
mult8 = gf_w8_get_mult_table(&gf);
- div8 = gf_w8_get_div_table(&gf);
}
if (w == 16) {
@@ -243,7 +236,6 @@ int main(int argc, char **argv)
}
}
- tested = 0;
gf_general_multiply(&gf, a, b, c);
/* If w is 4, 8 or 16, then there are inline multiplication/division methods.
@@ -288,7 +280,6 @@ int main(int argc, char **argv)
/* If this is not composite, then first test against the default: */
if (h->mult_type != GF_MULT_COMPOSITE) {
- tested = 1;
gf_general_multiply(&gf_def, a, b, d);
if (!gf_general_are_equal(c, d, w)) {
@@ -309,7 +300,6 @@ int main(int argc, char **argv)
if (gf_general_is_zero(a, w) || gf_general_is_zero(b, w) ||
gf_general_is_one(a, w) || gf_general_is_one(b, w)) {
- tested = 1;
if (((gf_general_is_zero(a, w) || gf_general_is_zero(b, w)) && !gf_general_is_zero(c, w)) ||
(gf_general_is_one(a, w) && !gf_general_are_equal(b, c, w)) ||
(gf_general_is_one(b, w) && !gf_general_are_equal(a, c, w))) {