aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNadesh Ramanathan <nadeshramanathan88@gmail.com>2020-06-24 14:12:49 +0100
committerNadesh Ramanathan <nadeshramanathan88@gmail.com>2020-06-24 14:12:49 +0100
commit41b8439e0a5199bfaf50d71ff3728c0b4ddee0bd (patch)
tree809ec13a983b80bc5abd4eecdcdb7ad34a60c03a
parentae33e6a4c48ccc298a3ff6f01d89ba0c469cdbd6 (diff)
downloadvericert-kvx-41b8439e0a5199bfaf50d71ff3728c0b4ddee0bd.tar.gz
vericert-kvx-41b8439e0a5199bfaf50d71ff3728c0b4ddee0bd.zip
Revert back to original gsm_norm
-rwxr-xr-xbenchmarks/CHStone/gsm/gsm.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/benchmarks/CHStone/gsm/gsm.c b/benchmarks/CHStone/gsm/gsm.c
index 61172a4..ff472c3 100755
--- a/benchmarks/CHStone/gsm/gsm.c
+++ b/benchmarks/CHStone/gsm/gsm.c
@@ -110,21 +110,6 @@ gsm_norm (longword a)
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
};
- int ret;
- if (a <= -1073741824) ret = 0;
- else{
- if (a < 0)
- {
- if (a > -1073741824)
- a = ~a;
- }
-
- ret = a & 0xffff0000 ?
- (a & 0xff000000 ? -1 + bitoff[0xFF & (a >> 24)] :
- 7 + bitoff[0xFF & (a >> 16)])
- : (a & 0xff00 ? 15 + bitoff[0xFF & (a >> 8)] : 23 + bitoff[0xFF & a]);
- }
- /*
if (a < 0)
{
if (a <= -1073741824)
@@ -136,9 +121,6 @@ gsm_norm (longword a)
(a & 0xff000000 ? -1 + bitoff[0xFF & (a >> 24)] :
7 + bitoff[0xFF & (a >> 16)])
: (a & 0xff00 ? 15 + bitoff[0xFF & (a >> 8)] : 23 + bitoff[0xFF & a]);
- */
-
- return ret;
}
word