1
0

don't wastefully read 2x the bits from D$ RAMs

This commit is contained in:
Andrew Waterman
2012-11-26 20:34:30 -08:00
parent 352bb464b5
commit 608f65e716
2 changed files with 71 additions and 28 deletions

View File

@ -18,6 +18,7 @@ object AVec
require(elts.tail.forall(elts.head.getClass == _.getClass))
Vec(elts) { elts.head.clone }
}
def apply[T <: Data](elts: Vec[T]): Vec[T] = apply(elts.toSeq)
def apply[T <: Data](elt0: T, elts: T*): Vec[T] = apply(elt0 :: elts.toList)
}