aboutsummaryrefslogtreecommitdiffstats
path: root/passes/opt
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2014-08-01 19:01:10 +0200
committerClifford Wolf <clifford@clifford.at>2014-08-01 19:01:10 +0200
commitbd74ed7da467de11128c57c4c424febe4a7e2f39 (patch)
tree8c6f55776de2d385193c12a2cacfa2733be0b09d /passes/opt
parent1e224506be6d824ea9ed1855fa46d039e5ffefd5 (diff)
downloadyosys-bd74ed7da467de11128c57c4c424febe4a7e2f39.tar.gz
yosys-bd74ed7da467de11128c57c4c424febe4a7e2f39.tar.bz2
yosys-bd74ed7da467de11128c57c4c424febe4a7e2f39.zip
Replaced sha1 implementation
Diffstat (limited to 'passes/opt')
-rw-r--r--passes/opt/opt_reduce.cc1
-rw-r--r--passes/opt/opt_share.cc7
2 files changed, 1 insertions, 7 deletions
diff --git a/passes/opt/opt_reduce.cc b/passes/opt/opt_reduce.cc
index 80ec89744..f947e9724 100644
--- a/passes/opt/opt_reduce.cc
+++ b/passes/opt/opt_reduce.cc
@@ -22,7 +22,6 @@
#include "kernel/sigtools.h"
#include "kernel/log.h"
#include "kernel/celltypes.h"
-#include "libs/sha1/sha1.h"
#include <stdlib.h>
#include <stdio.h>
#include <set>
diff --git a/passes/opt/opt_share.cc b/passes/opt/opt_share.cc
index 26d19414a..3532b124e 100644
--- a/passes/opt/opt_share.cc
+++ b/passes/opt/opt_share.cc
@@ -107,12 +107,7 @@ struct OptShareWorker
hash_string += "\n";
}
- unsigned char hash[20];
- char hash_hex_string[41];
- sha1::calc(hash_string.c_str(), hash_string.size(), hash);
- sha1::toHexString(hash, hash_hex_string);
- cell_hash_cache[cell] = hash_hex_string;
-
+ cell_hash_cache[cell] = sha1(hash_string);
return cell_hash_cache[cell];
}
#endif