Permalink
Browse files

specialize on Byte/Short too

  • Loading branch information...
1 parent 018b765 commit 72a27bb7d07f789fbfdcea38759a660201cb433e @non committed Apr 2, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 benchmark/src/main/scala/spire/benchmark/AnyValAddBenchmarks.scala
@@ -36,7 +36,7 @@ class AnyValAddBenchmarks extends MyBenchmark {
doubles = init(size)(nextDouble)
}
- def addGeneric[@spec(Int, Long, Float, Double) A:Ring](data:Array[A]):A = {
+ def addGeneric[@spec(Byte, Short, Int, Long, Float, Double) A:Ring](data:Array[A]):A = {
var total = Ring[A].zero
var i = 0
val len = data.length

0 comments on commit 72a27bb

Please sign in to comment.