From c9845b96f406e260d9113d794ca01995d633348e Mon Sep 17 00:00:00 2001 From: cturek Date: Thu, 26 May 2022 00:01:51 +0000 Subject: [PATCH] Renamed variables for readability --- pipelined/srt/exptestgen.c | 71 ++++++++++++++++++++------------------ pipelined/srt/testvectors | 2 +- 2 files changed, 38 insertions(+), 35 deletions(-) diff --git a/pipelined/srt/exptestgen.c b/pipelined/srt/exptestgen.c index 09166c1f..bd51126e 100644 --- a/pipelined/srt/exptestgen.c +++ b/pipelined/srt/exptestgen.c @@ -21,7 +21,7 @@ /* Prototypes */ -void output(FILE *fptr, int signa, int e1, double a, int signb, int e2, double b, int r_sign, int r_exp, double r_mantissa); +void output(FILE *fptr, int aSign, int aExp, double aFrac, int bSign, int bExp, double bFrac, int rSign, int rExp, double rFrac); void printhex(FILE *fptr, double x); double random_input(void); double random_input_e(void); @@ -31,12 +31,13 @@ double random_input_e(void); void main(void) { FILE *fptr; - // e1 & e2 are exponents - // a & b are mantissas - // r_mantissa is result of mantissa divsion - // r_exp is result of exponent division - double a, b, r_mantissa, r_exp, r_sign; - int e1, e2, signa, signb; + // aExp & bExp are exponents + // aFrac & bFrac are mantissas + // rFrac is result of fractional divsion + // rExp is result of exponent division + double aFrac, bFrac, rFrac; + int aExp, bExp, rExp; + int aSign, bSign, rSign; double mantissa[ENTRIES] = {1, 1.5, 1.25, 1.125, 1.0625, 1.75, 1.875, 1.99999, 1.1, 1.2, 1.01, 1.001, 1.0001, @@ -51,28 +52,28 @@ void main(void) } for (i=0; i