Skip to content

Commit

Permalink
specialize on Byte/Short too
Browse files Browse the repository at this point in the history
  • Loading branch information
non committed Apr 2, 2013
1 parent 018b765 commit 72a27bb
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -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
Expand Down

0 comments on commit 72a27bb

Please sign in to comment.