diff options
| author | Clifford Wolf <clifford@clifford.at> | 2015-10-25 19:30:49 +0100 | 
|---|---|---|
| committer | Clifford Wolf <clifford@clifford.at> | 2015-10-25 19:30:49 +0100 | 
| commit | 207736b4ee0363ff6714071e64024965916eafc2 (patch) | |
| tree | 31092cfab4323500bc491d8b59deee9e297730d0 /backends | |
| parent | da923c198e770806a4abb749acc75fa337247920 (diff) | |
| download | yosys-207736b4ee0363ff6714071e64024965916eafc2.tar.gz yosys-207736b4ee0363ff6714071e64024965916eafc2.tar.bz2 yosys-207736b4ee0363ff6714071e64024965916eafc2.zip  | |
Import more std:: stuff into Yosys namespace
Diffstat (limited to 'backends')
| -rw-r--r-- | backends/smt2/smt2.cc | 4 | ||||
| -rw-r--r-- | backends/smv/smv.cc | 10 | 
2 files changed, 7 insertions, 7 deletions
diff --git a/backends/smt2/smt2.cc b/backends/smt2/smt2.cc index fa1c284dc..c852921ee 100644 --- a/backends/smt2/smt2.cc +++ b/backends/smt2/smt2.cc @@ -244,8 +244,8 @@ struct Smt2Worker  		int width = GetSize(sig_y);  		if (type == 's' || type == 'd' || type == 'b') { -			width = std::max(width, GetSize(cell->getPort("\\A"))); -			width = std::max(width, GetSize(cell->getPort("\\B"))); +			width = max(width, GetSize(cell->getPort("\\A"))); +			width = max(width, GetSize(cell->getPort("\\B")));  		}  		if (cell->hasPort("\\A")) { diff --git a/backends/smv/smv.cc b/backends/smv/smv.cc index fdf022c5a..b29a88ac2 100644 --- a/backends/smv/smv.cc +++ b/backends/smv/smv.cc @@ -244,13 +244,13 @@ struct SmvWorker  				int width_y = GetSize(cell->getPort("\\Y"));  				int shift_b_width = GetSize(sig_b); -				int width_ay = std::max(GetSize(sig_a), width_y); +				int width_ay = max(GetSize(sig_a), width_y);  				int width = width_ay;  				for (int i = 1, j = 0;; i <<= 1, j++)  					if (width_ay < i) {  						width = i-1; -						shift_b_width = std::min(shift_b_width, j); +						shift_b_width = min(shift_b_width, j);  						break;  					} @@ -361,8 +361,8 @@ struct SmvWorker  			if (cell->type.in("$div", "$mod"))  			{  				int width_y = GetSize(cell->getPort("\\Y")); -				int width = std::max(width_y, GetSize(cell->getPort("\\A"))); -				width = std::max(width, GetSize(cell->getPort("\\B"))); +				int width = max(width_y, GetSize(cell->getPort("\\A"))); +				width = max(width, GetSize(cell->getPort("\\B")));  				string expr_a, expr_b, op;  				if (cell->type == "$div")  op = "/"; @@ -384,7 +384,7 @@ struct SmvWorker  			if (cell->type.in("$eq", "$ne", "$eqx", "$nex", "$lt", "$le", "$ge", "$gt"))  			{ -				int width = std::max(GetSize(cell->getPort("\\A")), GetSize(cell->getPort("\\B"))); +				int width = max(GetSize(cell->getPort("\\A")), GetSize(cell->getPort("\\B")));  				string expr_a, expr_b, op;  				if (cell->type == "$eq")  op = "=";  | 
