From b99db83e678dc85053d542968c36a7bc1e3aa8ae Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Wed, 27 Apr 2016 00:28:39 -0700 Subject: [PATCH] Avoid needless Vec generation --- rocket/src/main/scala/util.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rocket/src/main/scala/util.scala b/rocket/src/main/scala/util.scala index 18dec13e..c0b89bd1 100644 --- a/rocket/src/main/scala/util.scala +++ b/rocket/src/main/scala/util.scala @@ -160,5 +160,5 @@ object Random private def round(x: Double): Int = if (x.toInt.toDouble == x) x.toInt else (x.toInt + 1) & -2 private def partition(value: UInt, slices: Int) = - Vec.tabulate(slices)(i => value < round((i << value.getWidth).toDouble / slices)) + Seq.tabulate(slices)(i => value < round((i << value.getWidth).toDouble / slices)) }